tchanged order of NVCC flags - sphere - GPU-based 3D discrete element method al… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit dcc2ab859cc3baaf0e40a897b221081f8e52364b | |
parent ca4c45e37ce173a2030edbd7f20dcbc0663d5316 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 4 Oct 2013 14:40:02 +0200 | |
changed order of NVCC flags | |
Diffstat: | |
M src/CMakeLists.txt | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |
t@@ -14,10 +14,10 @@ INCLUDE(FindCUDA) | |
# NOTE: Multiple arguments must be semi-colon selimited | |
IF (GPU_GENERATION EQUAL 1) # Kepler | |
SET(CUDA_NVCC_FLAGS | |
- "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\… | |
+ "--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\… | |
ELSE() # Fermi | |
SET(CUDA_NVCC_FLAGS | |
- "--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\… | |
+ "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\… | |
ENDIF (GPU_GENERATION EQUAL 1) | |
# Rule to build executable program |