Correctly detect NVRTC and lack of stl support.

This commit is contained in:
Robert Chisholm
2021-05-13 22:13:04 +01:00
parent 4abd46483a
commit f0f95bd3de
2 changed files with 5 additions and 1 deletions

View File

@@ -122,7 +122,9 @@
# 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 >= 8000
# if defined(__CUDACC_RTC__)
# define GLM_COMPILER GLM_COMPILER_CUDA_RTC
# elif CUDA_VERSION >= 8000
# define GLM_COMPILER GLM_COMPILER_CUDA80
# elif CUDA_VERSION >= 7500
# define GLM_COMPILER GLM_COMPILER_CUDA75