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:
parent
95e6433fc7
commit
251cd3d269
@ -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
2
src/configure
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user