mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Added workaround in configure to still catch Cuda compiler when nvcc with extra arguments (eg -ccbin) is used as CXX
This commit is contained in:
parent
dd3ebc2ce4
commit
dee96cbf82
14
configure.ac
14
configure.ac
@ -274,12 +274,20 @@ case ${ac_gen_scalar} in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
##################### Compiler dependent choices
|
##################### Compiler dependent choices
|
||||||
case ${CXX} in
|
|
||||||
|
#Strip any optional compiler arguments from nvcc call (eg -ccbin) for compiler comparison
|
||||||
|
CXXBASE=${CXX}
|
||||||
|
CXXTEST=${CXX}
|
||||||
|
if echo "${CXX}" | grep -q "nvcc"; then
|
||||||
|
CXXTEST="nvcc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
case ${CXXTEST} in
|
||||||
nvcc)
|
nvcc)
|
||||||
# CXX="nvcc -keep -v -x cu "
|
# CXX="nvcc -keep -v -x cu "
|
||||||
# CXXLD="nvcc -v -link"
|
# CXXLD="nvcc -v -link"
|
||||||
CXX="nvcc -x cu "
|
CXX="${CXXBASE} -x cu "
|
||||||
CXXLD="nvcc -link"
|
CXXLD="${CXXBASE} -link"
|
||||||
# CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing -Xcompiler -Wno-unusable-partial-specialization --expt-extended-lambda --expt-relaxed-constexpr"
|
# CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing -Xcompiler -Wno-unusable-partial-specialization --expt-extended-lambda --expt-relaxed-constexpr"
|
||||||
CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing --expt-extended-lambda --expt-relaxed-constexpr"
|
CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing --expt-extended-lambda --expt-relaxed-constexpr"
|
||||||
if test $ac_openmp = yes; then
|
if test $ac_openmp = yes; then
|
||||||
|
Loading…
Reference in New Issue
Block a user