Repository navigation
Fix: pass pin-resolved PTO_ISA_ROOT by value / -D - #1416
yanghaoran29 wants to merge 1 commit into
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe change removes PTO-ISA environment-variable transport, stores resolved paths in runtime state or metadata, passes paths to host CMake with ChangesPTO-ISA path transport
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant RuntimeCompiler
participant RuntimeBuilder
participant HostCMake
participant PTOISAHeaders
RuntimeCompiler->>RuntimeBuilder: provide resolved PTO-ISA path
RuntimeBuilder->>HostCMake: pass -DPTO_ISA_ROOT=path
HostCMake->>PTOISAHeaders: use path/include
HostCMake-->>RuntimeBuilder: configure host build
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request refactors how the PTO_ISA_ROOT path is propagated to CMake and downstream builds. Instead of exporting it as an ambient environment variable (os.environ["PTO_ISA_ROOT"]), it is now passed explicitly as a CMake define (-DPTO_ISA_ROOT=). This change is implemented across several setup scripts, test configurations, CMake files, and documentation. There are no review comments to assess, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
53b5ad2 to
98e84c6
Compare
98e84c6 to
81e1aad
Compare
Stop smuggling the managed pto-isa checkout through os.environ /
$ENV{PTO_ISA_ROOT}. ensure_pto_isa_root() remains the pin source of
truth; RuntimeBuilder passes -DPTO_ISA_ROOT= to host CMake (a2a3 always,
a5 when an async overlay is ON).
- Drop ambient env writes in runtime_compiler, build_runtimes, conftest,
scene_test, and runtime_fatal_codes
- a2a3/a5 host CMakeLists require -DPTO_ISA_ROOT= instead of $ENV
- l0_swimlane bakes the path into run_collect.sh / CACHE PATH
- Scene-test compile cache keys include the pin SHA
- Embedding platforms fail closed when pto_isa_build.json is missing
- KernelCompiler rejects pto_isa_root that does not match pto_isa.pin
- docs/skills: fail-closed metadata, SIMPLER_PTO_ISA_BUILD_COMMIT naming,
no ambient-export guidance for simpler itself; MD060 table align
- docs/a5-sdma-overlay.md: libopapi probe, 2026-07-21 9.1.T500 repro,
no Option B on broken CANN; hw-native-sys#1351 marked done
Fixes hw-native-sys#1403
Related to hw-native-sys#1315
Summary
os.environ["PTO_ISA_ROOT"]/$ENV{PTO_ISA_ROOT}.ensure_pto_isa_root()remains the pin source of truth; host CMake gets-DPTO_ISA_ROOT=(a2a3 always; a5 when an async overlay is ON).runtime_compiler,build_runtimes,conftest,scene_test,runtime_fatal_codes, and bake the path inl0_swimlane.docs/a5-sdma-overlay.mdwith the 2026-07-21 CANN 9.1.T500 repro (libopapi.soprobe,507018/0x715002a), mark [Code Health] Extend PTO-ISA build/run version guard to a5 onboard SDMA overlay (missed after #1179) #1351 done, and keep SDMA default OFF (no Option B on broken CANN).Test plan
pytest tests/ut/py/test_runtime_builder.py tests/ut/py/test_pto_isa.py(71 passed)-DPTO_ISA_ROOT=and no reliance on ambientPTO_ISA_ROOTFixes #1403
Related to #1315