diff --git a/Makefile b/Makefile index d3b29c7ffdbd681273b176193524e19b16495e29..6c74edcf2fa524a7d36a303e272e5b30b9aba565 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,12 @@ # DEALINGS IN THE SOFTWARE. # +# CUB is released in cuda 11. Using c++11 or c++14 fixed the ieee128 issue. + NVARCH ?= 70 all: - nvcc -O3 -I. -I${CUBROOT} --compiler-options='-fPIC' -arch=sm_${NVARCH} --shared FOAM2CSR.cu -o libFOAM2CSR.so + nvcc -O3 -I. -I${CUBROOT} -std=c++14 --compiler-options='-fPIC -std=c++14' -arch=sm_${NVARCH} --shared FOAM2CSR.cu -o libFOAM2CSR.so clean: rm -rf libFOAM2CSR.so