Skip to content

Run and Validate

Most runnable PyPTO-Lib scripts use the local Golden Harness to turn a kernel definition into a correctness result. A few specialized smoke, regeneration, or external-runtime drivers call PyPTO's compile/runtime APIs directly; inspect the selected script's __main__ block and --help before assuming that it performs golden validation.

The common flow is:

PyPTO compile
input generation
PyTorch golden computation
simpler runtime execution
output validation

Use the following references:

For a first end-to-end command, start with Run Your First Kernel.