From 0c1efa523582a2b9f6121b2da036016ada623894 Mon Sep 17 00:00:00 2001 From: gfilaci Date: Wed, 7 Aug 2019 12:11:18 +0100 Subject: [PATCH] pass OpenMP flag to host compiler --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index ed7b9a17..b8f94fce 100644 --- a/configure.ac +++ b/configure.ac @@ -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}