From 779f4c00e46a2b170ffa0b6cfbca4ce5b7c117b3 Mon Sep 17 00:00:00 2001 From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it> Date: Thu, 12 Jun 2025 13:21:06 +0200 Subject: [PATCH] fix configure script to correctly set USE_TARGET_OFFLOAD if offload is enabled --- build/configure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/configure.sh b/build/configure.sh index 51a40a3..e2574a8 100755 --- a/build/configure.sh +++ b/build/configure.sh @@ -805,7 +805,7 @@ EOF fi if [ "x$result" = "x0" ]; then echo "yes" - OFFLOADFLAGS=" -fcf-protection=check -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fcf-protection=check -fopt-info -lm -latomic -lgomp\"" + OFFLOADFLAGS=" -DUSE_TARGET_OFFLOAD -fcf-protection=check -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fcf-protection=check -fopt-info -lm -latomic -lgomp\"" if [ "x${OMPFLAGS}" = "x" ]; then OFFLOADFLAGS="${OFFLOADFLAGS} -fopenmp" fi -- GitLab