Introduction
Introduction Statistics Contact Development Disclaimer Help
tCMakeLists.txt: add native support for ampere - sphere - GPU-based 3D discrete…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 46c834186a46296c37ce2856db0258bdaeb9d35f
parent f34dd6a1255c60e0824849c9411aa7ce679e4aa1
Author: Anders Damsgaard <[email protected]>
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(-)
---
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\…
+ELSEIF (GPU_GENERATION EQUAL 1) # Kepler
SET(CUDA_NVCC_FLAGS
"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35\…
#"--use_fast_math;-O3;-gencode=arch=compute_35,code=\"sm_35,compute_35…
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)
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.