Skip to content

Commit

Permalink
Adjust debug info argument for HIP compiler (AMReX-Codes#3761)
Browse files Browse the repository at this point in the history
It is reported in AMReX-Codes#3759 that ROCm 5.3.0-5.7.1 fail at the link stage
since AMReX-Codes#3742. Replacing `-g` with `-gline-tables-only
-fdebug-info-for-profiling` solves the issue. Note that for Intel SYCL
compilers, we use these two arguments too.

No changes are made to CMake because in Realease build type, no debug
info is added.
  • Loading branch information
WeiqunZhang authored Feb 23, 2024
1 parent d8d4828 commit c3e7060
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/GNUMake/comps/hip.mak
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ ifeq ($(HIP_COMPILER),clang)

else # DEBUG=FALSE flags

CXXFLAGS += -g -O3 -munsafe-fp-atomics
CFLAGS += -g -O3
FFLAGS += -g -O3
F90FLAGS += -g -O3
CXXFLAGS += -gline-tables-only -fdebug-info-for-profiling -O3 -munsafe-fp-atomics
CFLAGS += -gline-tables-only -fdebug-info-for-profiling -O3
FFLAGS += -g1 -O3
F90FLAGS += -g1 -O3

endif

Expand Down

0 comments on commit c3e7060

Please sign in to comment.