Skip to content

fix: Preserve Warp compiler settings and portable exports - #112

Merged
frlai merged 2 commits into
nvidia-isaac:developfrom
ooctipus:codex/preserve-warp-compiler-settings
Dec 2, 2026
Merged

frlai merged 2 commits into
nvidia-isaac:developfrom
ooctipus:codex/preserve-warp-compiler-settings

Conversation

@ooctipus

@ooctipus ooctipus commented Dec 2, 2026

Copy link
Copy Markdown

Importing LEAPP currently changes Warp compilation for the entire application:

wp.config.cuda_output = "ptx"
wp.config.ptx_target_arch = 75

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:

wp.capture_save(..., source_fallback=True)

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:

  • On the original Isaac Lab CI runner and exact image, the two affected RSL-RL wrapper cases pass with only the import change applied to LEAPP 0.8.1. They fail with the original assignments. The driver and standard Warp 1.20 wheel are unchanged.
  • 27 focused runtime and Warp/Torch boundary unit tests pass.
  • The new recompilation test and existing multi-segment PT2 replay test pass with both Warp 1.19 and 1.20, using native adapters built against each version. Local PT2 validation omitted the unused ONNX setup because downloading ONNX Runtime's public headers returned HTTP 404; the ONNX adapter was not rebuilt locally.
  • Ruff formatting, lock consistency, strict HTML documentation, and spelling checks pass. The lock update changes only Warp 1.18 -> 1.19 and its requirement metadata.

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.

Signed-off-by: Octi Zhang <zhengyuz@nvidia.com>
@ooctipus
ooctipus changed the base branch from main to develop December 2, 2026 22:33
@frlai
frlai merged commit e43b364 into nvidia-isaac:develop Dec 2, 2026
@ooctipus
ooctipus deleted the codex/preserve-warp-compiler-settings branch December 2, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants