|
@@ -211,6 +211,9 @@
|
|
|
|
|
|
|
|
// CUDA
|
|
// CUDA
|
|
|
#elif defined(__CUDACC__)
|
|
#elif defined(__CUDACC__)
|
|
|
|
|
+# if !defined(CUDA_VERSION) && !defined(GLM_FORCE_CUDA)
|
|
|
|
|
+# include <cuda.h> // make sure version is defined since nvcc does not define it itself!
|
|
|
|
|
+# endif
|
|
|
# if CUDA_VERSION < 3000
|
|
# if CUDA_VERSION < 3000
|
|
|
# error "GLM requires CUDA 3.0 or higher"
|
|
# error "GLM requires CUDA 3.0 or higher"
|
|
|
# else
|
|
# else
|