Browse Source

Bug 5196977: Include helper_gl.h before cuda_gl_interop.h

pull/53/merge
shawnz 3 months ago
parent
commit
952d6edf92
  1. 2
      Samples/4_CUDA_Libraries/oceanFFT/oceanFFT.cpp
  2. 2
      Samples/5_Domain_Specific/marchingCubes/marchingCubes.cpp
  3. 2
      Samples/5_Domain_Specific/nbody/render_particles.cpp
  4. 2
      Samples/5_Domain_Specific/smokeParticles/ParticleSystem.cpp
  5. 2
      Samples/5_Domain_Specific/smokeParticles/ParticleSystem_cuda.cu

2
Samples/4_CUDA_Libraries/oceanFFT/oceanFFT.cpp

@ -46,12 +46,12 @@ @@ -46,12 +46,12 @@
#endif
// includes
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <cufft.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <helper_gl.h>
#include <math.h>
#include <math_constants.h>
#include <stdio.h>

2
Samples/5_Domain_Specific/marchingCubes/marchingCubes.cpp

@ -87,11 +87,11 @@ @@ -87,11 +87,11 @@
#endif
// includes
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h> // includes cuda.h and cuda_runtime_api.h
#include <helper_functions.h>
#include <helper_gl.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

2
Samples/5_Domain_Specific/nbody/render_particles.cpp

@ -29,10 +29,10 @@ @@ -29,10 +29,10 @@
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
#include <assert.h>
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>
#include <helper_gl.h>
#include <math.h>
#define GL_POINT_SPRITE_ARB 0x8861

2
Samples/5_Domain_Specific/smokeParticles/ParticleSystem.cpp

@ -33,11 +33,11 @@ @@ -33,11 +33,11 @@
#include <memory.h>
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <helper_gl.h>
#include "ParticleSystem.cuh"
#include "ParticleSystem.h"

2
Samples/5_Domain_Specific/smokeParticles/ParticleSystem_cuda.cu

@ -31,9 +31,9 @@ This file contains simple wrapper functions that call the CUDA kernels @@ -31,9 +31,9 @@ This file contains simple wrapper functions that call the CUDA kernels
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
#include <cstdio>
#include <cstdlib>
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <helper_cuda.h>
#include <helper_gl.h>
#include <string.h>
#include "ParticleSystem.cuh"

Loading…
Cancel
Save