Commit 4e0bdaa8 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Reintroduce math library flag in offload compilation options

parent fa30a5a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -887,7 +887,7 @@ EOF
    if [ "x$result" = "x0" ]; then
	echo "yes"
	echo "yes" >>configure.log
	OFFLOADFLAGS=" -DUSE_TARGET_OFFLOAD -fno-strict-aliasing -foffload=nvptx-none=\"-O2 -march=sm_70 -mptx=7.3\""
	OFFLOADFLAGS=" -DUSE_TARGET_OFFLOAD -fno-strict-aliasing -foffload=nvptx-none=\"-O2 -march=sm_70 -mptx=7.3 -lm\""
	OFFLOADLDFLAGS=" -lgomp"
	if [ "x${OMPFLAGS}" = "x" ]; then
	    OFFLOADFLAGS="-fopenmp ${OFFLOADFLAGS}"