amrex icon indicating copy to clipboard operation
amrex copied to clipboard

CMake flags for HIP and SYCL debug builds

Open n01r opened this issue 1 year ago • 2 comments

Using the flag -g1 instead of -g for the modes Debug and RelWithDebInfo was observed to avoid hanging builds, e.g., on Crusher (OLCF). This could be useful to make a default for HIP and SYCL.

n01r avatar Aug 30 '23 23:08 n01r

In GNU Make, we use -gline-tables-only -fdebug-info-for-profiling for Intel's oneAPI compiler. These flags are recommended by Intel VTune for device profiling. For SYCL codes, it produces executables slightly bigger than -g1 does, but much smaller than -g.

WeiqunZhang avatar Aug 30 '23 23:08 WeiqunZhang

@WeiqunZhang, I tested -gline-tables-only -fdebug-info-for-profiling and it compiled successfully on Crusher as well

n01r avatar Sep 01 '23 01:09 n01r