Skip to content

Commit cc948c1

Browse files
gflegarThe jax_triton Authors
authored andcommitted
Only print out diagnostic messages if an environment variable is set
This prevents crashes in test_core.py due to too many diagnostics emitted in llvm/llvm-project#78228 It should also speed up compile times, as we can use multithreading, and avoid handling diagnostic messages. PiperOrigin-RevId: 607293980
1 parent 3666738 commit cc948c1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

jax_triton/triton_lib.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ def aval_size_bytes(aval):
153153
return np.dtype(aval.dtype).itemsize * aval.size
154154

155155

156-
# Triton unconditionally enables debug mode in all of its stages. Ideally,
157-
# this should be controlled by cb.CUDAOptions.debug, but for simplicity we
158-
# disable debug mode entirely until https://github.com/openai/triton/pull/3127
159-
# is merged.
160-
tl_ir.pass_manager.enable_debug = lambda self: None
161-
162-
163156
def compile_ttir_to_ptx_inplace(
164157
ttir,
165158
cuda_backend: cb.CUDABackend,

0 commit comments

Comments
 (0)