Skip to content
Snippets Groups Projects
Commit 779f4c00 authored by Mulas, Giacomo's avatar Mulas, Giacomo
Browse files

fix configure script to correctly set USE_TARGET_OFFLOAD if offload is enabled

parent 93521048
Branches
Tags
No related merge requests found
...@@ -805,7 +805,7 @@ EOF ...@@ -805,7 +805,7 @@ EOF
fi fi
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
echo "yes" 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 if [ "x${OMPFLAGS}" = "x" ]; then
OFFLOADFLAGS="${OFFLOADFLAGS} -fopenmp" OFFLOADFLAGS="${OFFLOADFLAGS} -fopenmp"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment