Bundles spine-opt, llc, opt, mlir-translate when LLVM tools are available
Bundles libSpeIRRuntimeLibs.so and builds libSpineTritonRuntime.so
Reuses backend artifacts from either a build directory or an install prefix
Optionally bundles spine-triton-opt when SPINE_TRITON_OPT_PATH is provided
Important runtime note:
test_smt_mm.py still needs spine-triton-opt for the frontend TTIR->Linalg lowering step.
If the frontend wheel does not expose this binary itself, set SPINE_TRITON_OPT_PATH
at runtime.
triton-spacemit-backend
triton-spacemit-backendis a standalone backend/runtime split extracted fromspine-mlir-0527without modifying the original source tree.Included components:
include/andlib/tools/spine-optruntime/cmake/third_party/tracy,mimalloc-src,spine-arch-info-srcbackend/setup.py/pyproject.tomlIntentionally excluded from the default build:
test/-DTRITON_SPACEMIT_BACKEND_ENABLE_RUNTIME_TESTS=ONTypical RISC-V build flow:
Build output:
Install output when
installis run:Backend Plugin Wheel
This project can build a standalone Triton backend plugin wheel that installs resources into
triton.backends.spine_triton.Example:
Recommended invocation with explicit artifact/tool paths:
Wheel build behavior:
spine-opt,llc,opt,mlir-translatewhen LLVM tools are availablelibSpeIRRuntimeLibs.soand buildslibSpineTritonRuntime.sospine-triton-optwhenSPINE_TRITON_OPT_PATHis providedImportant runtime note:
test_smt_mm.pystill needsspine-triton-optfor the frontend TTIR->Linalg lowering step. If the frontend wheel does not expose this binary itself, setSPINE_TRITON_OPT_PATHat runtime.