Disable XLA command buffers in JAX examples - #6449
Open
rostan-t wants to merge 1 commit into
Open
Conversation
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Collaborator
Author
|
!build |
Contributor
|
| Filename | Overview |
|---|---|
| docs/examples/frameworks/jax/jax-basic_example.ipynb | Replaces the compilation warmup with an early command-buffer disable and initializes the model immediately before training. |
| docs/examples/custom_operations/jax_operator_multi_gpu.ipynb | Sets the XLA option before spawning the second process and before the notebook imports JAX. |
| docs/examples/frameworks/jax/index.rst | Documents why DALI buffer lifetime synchronization conflicts with XLA command buffers. |
| qa/TL0_jupyter/test_jax.sh | Exports the command-buffer setting before notebook execution. |
| qa/TL1_jupyter_conda/test_jax.sh | Exports the command-buffer setting before notebook execution in the Conda suite. |
Reviews (1): Last reviewed commit: "Disable XLA command buffers in JAX examp..." | Re-trigger Greptile
Collaborator
|
CI MESSAGE: [62169436]: BUILD STARTED |
JanuszL
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
PR #6286 changed the JAX training example to compile its
jax.jitfunction before DALI runs. This doesn't actually fix the issue of XLA doing CUDA graph captures while DALI is running since even after the function is compiled, it's possible that XLA needs to capture new CUDA graphs.This PR recommends setting the environment variable
XLA_FLAGSto disable XLA command buffer.Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A