diff --git a/src/Makefile b/src/Makefile index 8a09b491..feac46ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,7 +30,7 @@ LDFLAGS+= -L$(LIBLOC)/lib CUDA_LDLIBS=-lcudadevrt -lcudart_static $(LDLIBS) CUDA_LDFLAGS =-L$(LIBLOC)/lib -L${CUDA_HOME}/targets/x86_64-linux/lib/stubs -L${CUDA_HOME}/targets/x86_64-linux/lib -CUDAFLAGS +=-Xcompiler -std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-code=true --expt-relaxed-constexpr -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 +CUDAFLAGS +=-std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-code=true --expt-relaxed-constexpr -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 ifdef GPU CXXFLAGS += -DGPU_AVAILABLE CUDAFLAGS += -gencode arch=compute_86,code=sm_86 diff --git a/src/Makefile_fedora38 b/src/Makefile_fedora38 index 3081a85b..8666d238 100644 --- a/src/Makefile_fedora38 +++ b/src/Makefile_fedora38 @@ -34,7 +34,7 @@ LDFLAGS+= -L$(LIBLOC)/lib -L"/home/linuxbrew/.linuxbrew/lib" -L/usr/local/cuda-1 CUDA_LDLIBS=-lcudadevrt -lcudart_static $(LDLIBS) CUDA_LDFLAGS =-L$(LIBLOC)/lib -L${CUDA_HOME}/targets/x86_64-linux/lib/stubs -L${CUDA_HOME}/targets/x86_64-linux/lib -CUDAFLAGS +=-ccbin /home/linuxbrew/.linuxbrew/bin/g++-11 -Xcompiler -std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-code=true --expt-relaxed-constexpr -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 +CUDAFLAGS +=-ccbin /home/linuxbrew/.linuxbrew/bin/g++-11 -std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-code=true --expt-relaxed-constexpr -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 ifdef GPU CXXFLAGS += -DGPU_AVAILABLE CUDAFLAGS += -gencode arch=compute_86,code=sm_86