Skip to content

Commit e54c058

Browse files
author
Diptorup Deb
committed
New config flags to dump LLVM IR and debug messages.
1 parent 97a7266 commit e54c058

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

numba_dpex/config.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ def __getattr__(name):
5959
"NUMBA_DPEX_DEBUGINFO", int, config.DEBUGINFO_DEFAULT
6060
)
6161

62-
# Emit LLVM assembly language format(.ll)
63-
DUMP_KERNEL_LLVM = _readenv(
64-
"NUMBA_DPEX_DUMP_KERNEL_LLVM", int, config.DUMP_OPTIMIZED
65-
)
62+
# Emit LLVM IR generated for kernel decorated function
63+
DUMP_KERNEL_LLVM = _readenv("NUMBA_DPEX_DUMP_KERNEL_LLVM", int, 0)
64+
65+
# Emit LLVM module generated to launch a kernel decorated function
66+
DUMP_KERNEL_LAUNCHER = _readenv("NUMBA_DPEX_DUMP_KERNEL_LAUNCHER", int, 0)
67+
68+
# Enables debug printf messages inside the kernel launcher module generated for
69+
# a kernel decorated function
70+
DEBUG_KERNEL_LAUNCHER = _readenv("NUMBA_DPEX_DEBUG_KERNEL_LAUNCHER", int, 0)
6671

6772
# configs for caching
6873
# To see the debug messages for the caching.

0 commit comments

Comments
 (0)