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:
parent
4677c40195
commit
e03b64dc06
13
configure.ac
13
configure.ac
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user