Skip to content

Debugger: local variables #338

@akharche

Description

@akharche

Implement info locals for all the kernel arguments and local variables.

Expected:

  • Debugger shows all the local variables names inside the numba-dppy kernel when a user calls info locals.
  • Debugger shows the values of these local variables when a user calls info locals or print variable.
  • Debugger shows a type of the local variables ptype variable.
  • User can reset local variable value.

Current state and issues:

  1. Some kernel arguments are optimized out when we set optimization level to 1 (by default). Disabling optimization ("-O0") causes segfault due to unsafe address space cast. Solution is in progress: Removing kernel wrapper function #364
  2. Local variables created inside a kernel don't have a LLVM debug tag Debugger: DWARF tag is not generated for local kernel variables #320. Temporary workaround was made to Numba (Remove checking on user variable to emit all debug info numba#217). TODO: update results with Numba 0.53.
  3. For some reason GDB with Numba shows variable values only on the second entry to the compiled function. Double function call in Numba #382

Metadata

Metadata

Assignees

Labels

debugRelated to #149

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions