tsrc/CMakeLists.txt: remove arch and code specification - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 75a51fc9ac35e999426be7aee9e30d474c358eb0
(DIR) parent b8646f096438a38f9aafe4ff7df8566091963e01
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 11 Jan 2021 10:30:49 +0100
src/CMakeLists.txt: remove arch and code specification
cuda 11 warns of future removal of options
Diffstat:
M src/CMakeLists.txt | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
---
(DIR) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
t@@ -17,20 +17,12 @@ INCLUDE(FindCUDA)
# Additional NVCC command line arguments
# 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_35,code=\"sm_35,compute_35\";--fmad=false -ccbin gcc")
- #"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\";--fmad=false -ccbin gcc-8.3")
- #"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\";--fmad=false -ccbin gcc-4.6")
- #"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\";--fmad=false -ccbin gcc;-Xcompiler -fPIC")
- #"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\";--fmad=false;-ccbin clang-3.8")
-ELSE() # Fermi
- SET(CUDA_NVCC_FLAGS
- "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false -ccbin gcc")
- #"--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false -ccbin gcc-8.3")
- #"--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false -ccbin gcc;-Xcompiler -fPIC")
- #"--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false;-ccbin clang-3.8")
-ENDIF (GPU_GENERATION EQUAL 1)
+SET(CUDA_NVCC_FLAGS
+ "--use_fast_math;-O3;--fmad=false -ccbin gcc")
+ #"--use_fast_math;-O3;--fmad=false -ccbin gcc-8.3")
+ #"--use_fast_math;-O3;--fmad=false -ccbin gcc-4.6")
+ #"--use_fast_math;-O3;--fmad=false -ccbin gcc;-Xcompiler -fPIC")
+ #"--use_fast_math;-O3;--fmad=false;-ccbin clang-3.8")
SET(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")