What problem does it solve?
This Skill coordinates the complete PTOAS runtime validation workflow for A5 targets, reducing the manual effort required to generate testcases, build kernel and host binaries, run them on NPU hardware or a simulator, and verify outputs against golden data.
Core Features & Use Cases
- Testcase Generation: Creates npu_validation projects from PTOAS EmitC sample output and prepares the host runner, kernel wrapper, launch code, and build system.
- Build and Runtime Validation: Configures and builds testcase binaries, optionally replaces the device kernel with an LLVM or VPTO-generated shared library, and runs validation on an NPU or simulator.
- Golden and Compare Checks: Generates input data, creates missing expected outputs when required, and validates runtime results with compare.py.
- Runtime Troubleshooting: Diagnoses common blockers involving PTO_ISA_ROOT, CANN and bisheng setup, simulator libraries, device visibility, permissions, and aclrtSetDevice failures.
- Use Case: Use this Skill to validate an A5 PTO kernel end to end, determine whether a failure is caused by the generated kernel or the runtime environment, and report the testcase artifacts and first concrete execution blocker.
Quick Start
Use the PTOAS A5 validation skill to generate, build, run, and compare the requested testcase on the available NPU or simulator.