Skip to content

Commit

Permalink
New config flags to dump LLVM IR and debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Oct 24, 2023
1 parent 03fe578 commit 6466a57
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions numba_dpex/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ def __getattr__(name):
"NUMBA_DPEX_DEBUGINFO", int, config.DEBUGINFO_DEFAULT
)

# Emit LLVM assembly language format(.ll)
DUMP_KERNEL_LLVM = _readenv(
"NUMBA_DPEX_DUMP_KERNEL_LLVM", int, config.DUMP_OPTIMIZED
)
# Emit LLVM IR generated for kernel decorated function
DUMP_KERNEL_LLVM = _readenv("NUMBA_DPEX_DUMP_KERNEL_LLVM", int, 0)

# Emit LLVM module generated to launch a kernel decorated function
DUMP_KERNEL_LAUNCHER = _readenv("NUMBA_DPEX_DUMP_KERNEL_LAUNCHER", int, 0)

# Enables debug printf messages inside the kernel launcher module generated for
# a kernel decorated function
DEBUG_KERNEL_LAUNCHER = _readenv("NUMBA_DPEX_DEBUG_KERNEL_LAUNCHER", int, 0)

# configs for caching
# To see the debug messages for the caching.
Expand Down

0 comments on commit 6466a57

Please sign in to comment.