浏览代码

properly set cuda compiler version

BlahGeek 8 年之前
父节点
当前提交
0b48eecae8
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      glm/simd/platform.h

+ 6 - 2
glm/simd/platform.h

@@ -146,8 +146,12 @@
 #	endif
 #	endif
 #	if CUDA_VERSION < 7000
 #	if CUDA_VERSION < 7000
 #		error "GLM requires CUDA 7.0 or higher"
 #		error "GLM requires CUDA 7.0 or higher"
-#	else
-#		define GLM_COMPILER GLM_COMPILER_CUDA
+#	elif (CUDA_VERSION >= 7000 && CUDA_VERSION < 7500)
+#		define GLM_COMPILER GLM_COMPILER_CUDA70
+#	elif (CUDA_VERSION >= 7500 && CUDA_VERSION < 8000)
+#		define GLM_COMPILER GLM_COMPILER_CUDA75
+#	elif (CUDA_VERSION >= 8000)
+#		define GLM_COMPILER GLM_COMPILER_CUDA80
 #	endif
 #	endif
 
 
 // Clang
 // Clang