pass OpenMP flag to host compiler

This commit is contained in:
gfilaci committed 2019-09-03 12:12:25 +01:00
1 parent fdd9b14e82
commit 0c1efa5235
1 file changed
+3
+3
View File
@@ -287,6 +287,9 @@ case ${CXX} in
CXX="nvcc -x cu "
CXXLD="nvcc -link"
CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing -Xcompiler -Wno-unusable-partial-specialization --expt-extended-lambda --expt-relaxed-constexpr"
if test $ac_openmp = yes; then
CXXFLAGS="$CXXFLAGS -Xcompiler -fopenmp"
fi
;;
*)
CXXLD=${CXX}