You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for every kernel Numba-dpex generates two functions: a wrapper spir_kernel and a spir_func. All the kernel code is inside the spir_kernel.
Enabling debug metadata only adds DWARF symbols to the spir_kernel and not the outer spir_function. At O1 compilation levels the spir_func gents inlined into the spir_kernel and GDB is able to set break points. But, at -O0 inlining is turned off and GDB fails to register any breakpoint as the wrapper spir_function has no debug metadata.
The wrapper function is generated at target.py:generate_kernel_wrapper
The text was updated successfully, but these errors were encountered:
@akharche I am thinking of a design where we do not need a wrapper function and generate a single spir_kernel. Till that happens, can you see if we can add debug metadata to the wrapper function that we generate inside target.py:generate_kernel_wrapper?
Currently, for every kernel Numba-dpex generates two functions: a wrapper
spir_kernel
and aspir_func
. All the kernel code is inside thespir_kernel
.Enabling debug metadata only adds DWARF symbols to the
spir_kernel
and not the outerspir_function
. AtO1
compilation levels thespir_func
gents inlined into thespir_kernel
and GDB is able to set break points. But, at-O0
inlining is turned off and GDB fails to register any breakpoint as the wrapperspir_function
has no debug metadata.The wrapper function is generated at
target.py:generate_kernel_wrapper
The text was updated successfully, but these errors were encountered: