Environment Variables for Profiling
Stack: torch-spyre (new, Inductor-based).
Variables that affect profile capture, telemetry, and observability.
Debug-oriented variables (TORCH_SPYRE_DEBUG, TORCH_COMPILE_DEBUG,
TORCHINDUCTOR_FORCE_DISABLE_CACHES, INDUCTOR_PROVENANCE,
TORCH_TRACE) live under Debugging.
Logging
Variable |
Effect |
|---|---|
|
Enable Spyre-specific Inductor logging |
|
Set Spyre Inductor log verbosity ( |
|
Redirect Spyre Inductor log output to a file |
|
Verbose PyTorch Inductor logging |
|
Suppress |
Compiler configuration
Variable |
Effect |
|---|---|
|
Number of Spyre cores to target (default 32) |
|
Enable LX scratchpad memory planning |
Device enumeration
Read by torch-spyre
(spyre_device_enum.cpp)
at startup to discover the Spyre devices visible to the process.
Variable |
Effect |
|---|---|
|
Comma-separated list of PCI bus IDs assigned to the container (set by the OpenShift AIU operator or manually) |
|
PCI bus ID bound to rank |
|
Override the device list explicitly (takes priority over |
|
Per-process rank set by |
Runtime / driver (for aiu-smi and aiu-trace-analyzer)
Variable |
Effect |
|---|---|
|
Point the Spyre driver ( |
|
Keep compiler export directories around after a run; required for |
|
Where the runtime / compiler write export artifacts; set to the same path in the workload and monitoring shells |
|
Override the compiler export location (defaults to CWD when unset) |
|
Quiet runtime logs when capturing traces for |
Quick-reference recipes
aiu-smi workload shell
export DTCOMPILER_KEEP_EXPORT=true
export SENLIB_DEVEL_CONFIG_FILE=$HOME/.local/etc/senlib_config_aiusmi.json
# Optional: co-locate compiler exports and aiu-smi lookups
export DEEPRT_EXPORT_DIR=$PWD
aiu-smi monitoring shell (run in parallel)
export DEEPRT_EXPORT_DIR=$PWD # matches the workload shell
aiu-smi