CANN/pto-isa后端配置文件与一致性
11. Backend Profiles and Conformance【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa11.1 ScopeThis chapter defines how backend capability subsets are described and how conformance levels are evaluated.11.2 Backend profile modelA backend profile MUST document:supported instruction families and operation formssupported dtype/layout/location/shape tuplessynchronization and memory-ordering limitationsimplementation-defined behavior surfacediagnostics policy for unsupported featuresProfiles MAY correspond to concrete targets (for example A2/A3/A5/CPU simulator).11.3 Capability gatingToolchains MUST gate backend-specific specialization by declared profile capability. If requested behavior is outside profile support:compilation/legalization MUST fail deterministically, oran explicitly defined fallback path MUST be selected.11.4 Conformance dimensionsConformance is evaluated along these dimensions:semantic conformance (instruction behavior)legality conformance (contract validation)ordering conformance (sync and memory visibility)diagnostic conformance (deterministic actionable errors)11.5 Conformance levelsRecommended levels:Level 0 (parse/shape): structural toolchain correctness only.Level 1 (family legality): documented family-level legality and diagnostics.Level 2 (instruction semantic): per-op semantics validated on representative suites.Level 3 (cross-layer stability): semantic, ordering, and diagnostics stability across AS/bytecode/backend transitions.A backend SHOULD publish the highest validated level and known gaps.11.6 Required test matrixA profile conformance suite SHOULD include:legal/illegal tuple tests by instruction familysynchronization and memory-ordering scenariosprecision/mode interaction tests (including mixed precision paths)round-trip toolchain tests (text/AS/bytecode)deterministic diagnostics snapshots11.7 Change managementWhen backend behavior changes:profile documents MUST be updated in the same change setconformance impact MUST be statedregressions against published levels MUST be treated as release blockers unless explicitly waived with rationale【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考