tCMakeLists.txt: add native support for ampere - 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 46c834186a46296c37ce2856db0258bdaeb9d35f
 (DIR) parent f34dd6a1255c60e0824849c9411aa7ce679e4aa1
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu,  9 Feb 2023 12:26:18 +0100
       
       CMakeLists.txt: add native support for ampere
       
       Diffstat:
         M src/CMakeLists.txt                  |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
       t@@ -13,7 +13,10 @@ INCLUDE(FindCUDA)
        
        # Additional NVCC command line arguments
        # NOTE: Multiple arguments must be semi-colon selimited
       -IF (GPU_GENERATION EQUAL 1) # Kepler
       +IF (GPU_GENERATION EQUAL 2) # Ampere
       +    SET(CUDA_NVCC_FLAGS
       +        "--use_fast_math;-O3;-gencode=arch=compute_80,code=\"sm_80,compute_80\";--fmad=false -ccbin gcc")
       +ELSEIF (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")
       t@@ -30,7 +33,7 @@ ENDIF (GPU_GENERATION EQUAL 1)
        
        SET(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
        
       -# Rule to build executable program 
       +# Rule to build executable program
        CUDA_ADD_EXECUTABLE(sphere
            main.cpp file_io.cpp sphere.cpp device.cu utility.cu utility.cpp
            navierstokes.cpp darcy.cpp)