diff --git a/CMakeLists.txt b/CMakeLists.txt index d2959164..cda30f44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ if(CMAKE_CUDA_COMPILER) enable_language(CUDA) set(CUDA_OPTS "-Wreorder -Xcompiler -fPIC -Xcompiler -Wall -Xcompiler -fopenmp -Xptxas -dlcm=ca --cudart static --relocatable-device-code=false") if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) - set(CMAKE_CUDA_ARCHITECTURES 70 75 80 86) + set(CMAKE_CUDA_ARCHITECTURES 80 86 90) endif() if(CMAKE_BUILD_TYPE MATCHES Debug) string(APPEND CUDA_OPTS " -G") diff --git a/src/Makefile b/src/Makefile index 4ce170db..70d5ac25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,7 +22,7 @@ PYTHON_LIB = SCE$(shell python3-config --extension-suffix) ifdef GENARCH GENCODE=${GENARCH} else - GENCODE=-gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 + GENCODE=-gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 endif CUDA_LDFLAGS =-L$(LIBLOC)/lib -L${CUDA_HOME}/targets/x86_64-linux/lib/stubs -L${CUDA_HOME}/targets/x86_64-linux/lib CUDAFLAGS +=-Xcompiler -fPIC -Xptxas -dlcm=ca --cudart static --relocatable-device-code=true $(GENCODE)