Need -O1 instead of -O0 for HIP in debug mode (#588)

This PR changes -O0 in debug mode to -O1 with HIP (at this time).
This commit is contained in:
Paul T. Bauman 2022-03-04 14:40:35 -06:00 committed by GitHub
parent 95e6433fc7
commit 251cd3d269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2311,7 +2311,7 @@ AS_IF([test x"$hypre_using_hip" == x"yes"],
dnl with HIPCXXFLAGS on the configure line. If in debug mode, -O0 -Wall
dnl plus flags for debugging symbols
AS_IF([test x"$hypre_using_debug" == x"yes"],
[HIPCXXFLAGS="-O0 -Wall -g -ggdb ${HIPCXXFLAGS}"],
[HIPCXXFLAGS="-O1 -Wall -g -ggdb ${HIPCXXFLAGS}"],
[HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}"],)

2
src/configure vendored
View File

@ -9218,7 +9218,7 @@ $as_echo "#define HYPRE_USING_HIP 1" >>confdefs.h
HIPCXXFLAGS="-x hip -std=c++14 ${HIPCXXFLAGS}"
if test x"$hypre_using_debug" == x"yes"; then :
HIPCXXFLAGS="-O0 -Wall -g -ggdb ${HIPCXXFLAGS}"
HIPCXXFLAGS="-O1 -Wall -g -ggdb ${HIPCXXFLAGS}"
elif HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}"; then :
fi