Skip to content

[codex] Port SuperNPUBench to PTO v0.57 block flow#17

Closed
zhoubot wants to merge 1 commit into
mainfrom
linx-isa-0.57
Closed

[codex] Port SuperNPUBench to PTO v0.57 block flow#17
zhoubot wants to merge 1 commit into
mainfrom
linx-isa-0.57

Conversation

@zhoubot

@zhoubot zhoubot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Ports SuperNPUBench to the PTO v0.57 block/API flow:

  • updates LinxISA and PTO ISA benchmark kernels for the v0.57 TileOP API and descriptor syntax
  • keeps TFILLPAD and TCONCAT as real instruction-backed benchmark APIs
  • removes reliance on nonexistent or non-encoded instruction surfaces from the hardware path
  • makes compile_all.sh return nonzero when any operator build fails

Issue #14

This closes the compile/API gap for the 29 hardware-visible PTO operations discussed in #14. Sync, communication, pipe lifecycle, and IR-only PTO surfaces remain outside the hardware encoding scope.

Validation

From the LinxISA superproject:

  • COMPILER_DIR=/Users/zhoubot/linx-isa/compiler/llvm/build-linxisa-clang/bin bash workloads/SuperNPUBench/compile_all.sh all
  • result: RC:0
  • result: 26 successful operator groups
  • result: 49 LinxISA ELFs and 56 PTO ISA ELFs
  • result: 0 failure markers

The LinxISA and PTO ISA benchmark trees now use the v0.57 tile descriptor syntax, updated TileOP API surface, synced kernel wrappers, and stricter compile wrappers that fail when an operator fails.

Constraint: Issue #14 requires the hardware-visible memory, reduction, and elementwise TileOP API surface to compile without encoding sync, comm, pipe lifecycle, or IR-only PTO operations

Rejected: Keep compile_all.sh exit-zero on failed operators | hidden failures made prior flow evidence unreliable

Confidence: high

Scope-risk: broad

Directive: Keep benchmark-linxisa and benchmark-ptoisa wrapper APIs aligned when adding v0.57 TileOP forms

Tested: COMPILER_DIR=/Users/zhoubot/linx-isa/compiler/llvm/build-linxisa-clang/bin bash workloads/SuperNPUBench/compile_all.sh all returned RC:0

Tested: 26 successful operator groups, 49 LinxISA ELFs, 56 PTO ISA ELFs, zero failure markers
@zhoubot

zhoubot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Temporarily discarding the PTO v0.57 block-flow port. Non-ISA benchmark/runtime fixes remain out of scope for this closure.

@zhoubot zhoubot closed this Jul 2, 2026
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.

1 participant