Skip to content

Commit

Permalink
Adjust debug info argument for HIP compiler
Browse files Browse the repository at this point in the history
It is reported in AMReX-Codes#3742 that ROCm 5.3.0-5.7.1 fail at the link stage since
`-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 committed Feb 14, 2024
1 parent 392d068 commit 2e35215
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 @@ -91,10 +91,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 += -gline-tables-only -fdebug-info-for-profiling -O3
F90FLAGS += -gline-tables-only -fdebug-info-for-profiling -O3

endif

Expand Down

0 comments on commit 2e35215

Please sign in to comment.