mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01: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
|
############### OpenMP
|
||||||
AC_OPENMP
|
AC_OPENMP
|
||||||
ac_openmp=no
|
ac_openmp=no
|
||||||
if test "${ac_cv_prog_cxx_openmp}X" != "noX"; then
|
#if test "${ac_cv_prog_cxx_openmp}X" != "noX"; then
|
||||||
ac_openmp=yes
|
# ac_openmp=yes
|
||||||
AM_CXXFLAGS="$OPENMP_CXXFLAGS $AM_CXXFLAGS"
|
## AM_CXXFLAGS="$OPENMP_CXXFLAGS $AM_CXXFLAGS"
|
||||||
AM_LDFLAGS="$OPENMP_CXXFLAGS $AM_LDFLAGS"
|
# AM_LDFLAGS="$OPENMP_CXXFLAGS $AM_LDFLAGS"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
############### Checks for header files
|
############### Checks for header files
|
||||||
@ -330,7 +330,8 @@ case ${CXXTEST} in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
hipcc)
|
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}
|
CXXLD=${CXX}
|
||||||
if test $ac_openmp = yes; then
|
if test $ac_openmp = yes; then
|
||||||
CXXFLAGS="$CXXFLAGS -Xcompiler -fopenmp"
|
CXXFLAGS="$CXXFLAGS -Xcompiler -fopenmp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user