1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

HIP default flaags to work on ROCM

This commit is contained in:
Peter Boyle 2020-09-16 00:33:09 +01:00
parent 4677c40195
commit e03b64dc06

View File

@ -53,11 +53,11 @@ AC_TYPE_UINT64_T
############### OpenMP
AC_OPENMP
ac_openmp=no
if test "${ac_cv_prog_cxx_openmp}X" != "noX"; then
ac_openmp=yes
AM_CXXFLAGS="$OPENMP_CXXFLAGS $AM_CXXFLAGS"
AM_LDFLAGS="$OPENMP_CXXFLAGS $AM_LDFLAGS"
fi
#if test "${ac_cv_prog_cxx_openmp}X" != "noX"; then
# ac_openmp=yes
## AM_CXXFLAGS="$OPENMP_CXXFLAGS $AM_CXXFLAGS"
# AM_LDFLAGS="$OPENMP_CXXFLAGS $AM_LDFLAGS"
#fi
############### Checks for header files
@ -330,7 +330,8 @@ case ${CXXTEST} in
fi
;;
hipcc)
CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing --expt-extended-lambda --expt-relaxed-constexpr"
# CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing --expt-extended-lambda --expt-relaxed-constexpr"
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
CXXLD=${CXX}
if test $ac_openmp = yes; then
CXXFLAGS="$CXXFLAGS -Xcompiler -fopenmp"