From 251cd3d269f527f703d8c110f4b0b632467ab55e Mon Sep 17 00:00:00 2001 From: "Paul T. Bauman" Date: Fri, 4 Mar 2022 14:40:35 -0600 Subject: [PATCH] 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). --- src/config/configure.in | 2 +- src/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/configure.in b/src/config/configure.in index 4ad6925f8..fe8db0ce4 100644 --- a/src/config/configure.in +++ b/src/config/configure.in @@ -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}"],) diff --git a/src/configure b/src/configure index 75a223a07..a63f14f22 100755 --- a/src/configure +++ b/src/configure @@ -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