From 0b48eecae8be1626116aef5c44fbf5afebe6d789 Mon Sep 17 00:00:00 2001 From: BlahGeek Date: Tue, 28 Feb 2017 10:30:50 +0800 Subject: [PATCH] properly set cuda compiler version --- glm/simd/platform.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/glm/simd/platform.h b/glm/simd/platform.h index a3642418..2181cf28 100644 --- a/glm/simd/platform.h +++ b/glm/simd/platform.h @@ -146,8 +146,12 @@ # endif # if CUDA_VERSION < 7000 # 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 // Clang