Disabling Deferred GPU Image Loading
The HIP runtime normally does not load GPU ELF images onto the GPUs until a kernel is launched. However, it supports a feature that allows loading the GPU images onto the GPU before the program enters main(). As a result, the debugger can read the GPU symbol table information before the kernel is launched, allowing you to plant breakpoints and inspect the actual kernel code.
Setting the HIP_ENABLE_DEFERRED_LOADING environment variable to 0 disables deferred image loading by the HIP runtime. For example:
export HIP_ENABLE_DEFERRED_LOADING=0
See the AMD documentation for more information on the use and implications of this environment variable.