Keep the build and the target separate
Jetson Orin is an SM87 target. Running inspection and capture tools on its host is a different task from running the Hopper attention transformation. The current build can omit LLVM/MLIR while retaining the generated decoder, scanner, ABI plugin launcher and PSIR verification path.
From a source checkout with its probed opcodes/ data and normal host build
dependencies available, configure a separate minimal tree:
cmake -S . -B build-minimal -DSASS2MLIR_ENABLE_MLIR=OFF
cmake --build build-minimal --target sass-mlir sassdump -- -j1
build-minimal/sass-mlir inspect kernel.cubin
build-minimal/sass-mlir verify kernel.cubin --psir-only --threads 1The actual option is SASS2MLIR_ENABLE_MLIR. This configuration does not
provide MLIR analyses or transformation passes. The old SASS_MLIR and
SASS_ACTIVE_SMS examples were not current CMake options.
Use the same ABI plugin
For a CUDA application running on the device:
SASSDUMP_DIR="$PWD/capture" \
build-minimal/sass-mlir intercept \
"$PWD/build-minimal/passes/sassdump/sass2mlir-pass-sassdump.so" \
-- ./applicationThe capture guide explains the cubin files and launch CSV. Keep the original images and recorded geometry when moving a capture to a host with an MLIR-enabled build.
See installation, the
CMakeLists.txt
and writing a pass.