pto-isa-cpu-sim-kernel-test

Validate PTOAS-generated PTO kernels against the local PTO ISA CPU simulator.

30|74|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/hw-native-sys/PTOAS --skill pto-isa-cpu-sim-kernel-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pto-isa-cpu-sim-kernel-test
Source: https://github.com/hw-native-sys/PTOAS/tree/main/.codex/skills/pto-isa-cpu-sim-kernel-test
Command: npx skills add https://github.com/hw-native-sys/PTOAS --skill pto-isa-cpu-sim-kernel-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill validates PTO programs and PTOAS-generated C++ kernels against the local PTO ISA CPU simulator, helping identify integration, build, runtime, and numerical correctness issues.

Core Features & Use Cases

  • PTO Generation and Compilation: Generate PTO input from samples and compile it with PTOAS into C++ kernels.
  • CPU Simulator Integration: Adapt generated kernels into existing or new PTO ISA CPU system-test cases with host launchers, test data, and CMake wiring.
  • Failure Diagnosis: Investigate configuration, compilation, file lookup, wrapper mismatch, and numeric validation failures across Windows, WSL, and Linux.
  • Use Case: When a PTOAS-generated matrix multiplication kernel needs functional verification, integrate it with the local CPU simulator testcase harness and run the targeted test with generated input and golden output data.

Quick Start

Use the pto-isa-cpu-sim-kernel-test skill to validate the specified PTOAS-generated kernel with the local PTO ISA CPU simulator.

Frequently Asked Questions about pto-isa-cpu-sim-kernel-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate PTOAS-generated C++ kernels against a CPU simulator?

To validate PTOAS-generated C++ kernels, integrate them into existing or new PTO ISA CPU system-test cases with host launchers, test data, and CMake wiring, then run the targeted test using the local CPU simulator test harness.

What dependencies do I need to run PTO ISA CPU simulator kernel tests?

Running PTO ISA CPU simulator kernel tests requires a local PTO ISA checkout, compatible PTOAS and LLVM tooling, Python, CMake, and the CPU simulator test harness installed on your system.

Does PTOAS kernel validation work on Windows, WSL, and Linux?

Yes, PTOAS kernel validation works across Windows, WSL, and Linux, diagnosing configuration, compilation, file lookup, wrapper mismatch, and numeric validation failures on these platforms.

How do I debug functional failures in PTO ISA CPU simulator test cases?

Debug functional failures in PTO ISA CPU simulator test cases by investigating configuration issues, compilation errors, file lookup problems, wrapper mismatches, and numeric validation failures using the local test harness.

Can I generate PTO input from samples and compile it with PTOAS for simulator testing?

Yes, you can generate PTO input from samples and compile it with PTOAS into C++ kernels, then adapt those generated kernels into PTO ISA CPU system-test cases for functional verification.

Why is my PTOAS-generated matrix multiplication kernel failing numerical validation?

Numerical validation failures in PTOAS-generated kernels often stem from wrapper mismatches, incorrect test data generation, or CMake wiring issues, which can be diagnosed by integrating the kernel with the CPU simulator testcase harness and comparing against golden output data.