Repository navigation
fix: Preserve Warp compiler settings and portable exports - #112
Merged
frlai merged 2 commits intoDec 2, 2026
Merged
Conversation
Signed-off-by: Octi Zhang <zhengyuz@nvidia.com>
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.
Importing LEAPP currently changes Warp compilation for the entire application:
In Isaac Lab, importing LEAPP's tensor semantics is enough to activate this. Warp 1.20's CUDA 13.4 conditional-graph helper then fails with CUDA error 222 on our CI runner's 595.58.03 driver (CUDA 13.2). Warp's default CUBIN selection works on that runner.
Remove both import-time assignments. Preserve export portability at the export boundary instead:
This packages compiled modules and generated CUDA source. A compatible binary loads directly; otherwise Warp recompiles the source for the destination GPU. Update the shared native replay loader to
wp_apic_load_graph_ex()with the inference environment's Warp headers, and require Warp >=1.19, which introduced these APIs. The existing native build already resolves that environment's Warp directory. No saved compiler settings, restore hooks, or compatibility aliases are added.Regression tests verify that importing LEAPP preserves both default and explicitly configured Warp settings. A GPU test precompiles a kernel before tracing, deliberately invalidates the exported CUBIN, then checks native PT2 replay with fresh inputs. This exercises source packaging and destination recompilation together.
Validation:
This addresses the CUDA 222 failure in Isaac Lab #9270 without requiring a runner driver upgrade for that failure. Isaac Lab can adopt the fixed LEAPP release after this merges.