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 |
|---|---|
|
Deprecated. Use |
|
Deprecated. Set the level in |
|
Deprecated. Mapped to the top-level |
|
Preferred logging control. Accepts |
|
Verbose PyTorch Inductor logging |
|
Suppress |
Compiler configuration
Variable |
Effect |
|---|---|
|
Number of Spyre cores to target (default 32) |
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 |
|
Comma-separated list of device indices to use (e.g., |
|
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