From 09d1ba7cdfd9ffc62bb00cd22f181ee3590ed011 Mon Sep 17 00:00:00 2001 From: Simone Bna <s.bn@cineca.it> Date: Wed, 28 Oct 2020 10:17:34 +0100 Subject: [PATCH] Added c++14 to compile flags to fix the ieee128 issue --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d3b29c7..6c74edc 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 -- GitLab