ROCm XIO environment variables#
2026-04-27
2 min read time
ROCm XIO reads several environment variables at runtime to
control library behaviour. All ROCm XIO variables use the
ROCXIO_ prefix, following ROCm ecosystem conventions.
Logging#
ROCXIO_LOG_LEVELControls the verbosity of library diagnostic output. Integer value from 0 to 5. The default is 2 (warn).
Value
Level
Description
0
None
Suppress all library output
1
Error
Fatal errors only
2
Warn
Errors and warnings (default)
3
Info
Informational messages
4
Debug
Detailed debug diagnostics
5
Trace
Maximum verbosity
Example:
ROCXIO_LOG_LEVEL=3 sudo ./build/xio-tester nvme-ep \ --controller /dev/nvme0 --read-io 10
ROCXIO_VERBOSEBoolean. Accepts
"1"or"true"(case-insensitive) to enable verbose output from the library. The xio-tester-vflag also sets this internally.ROCXIO_VERBOSE=1 sudo ./build/xio-tester test-ep
Device configuration#
ROCXIO_NVME_DEVICEDefault NVMe controller device path (for example,
/dev/nvme0). Used by unit tests when no--controllerargument is supplied. Falls back to the legacyNVME_DEVICEenvironment variable for backward compatibility.ROCXIO_NVME_DEVICE=/dev/nvme2 ctest -R nvme
Interaction with ROCm variables#
ROCm XIO also respects standard ROCm environment variables:
HSA_FORCE_FINE_GRAIN_PCIEMust be set to
1for PCIe peer-to-peer DMA operations with fine-grained device memory.ROCM_PATHROCm installation prefix. Defaults to
/opt/rocmwhen not set.HIP_VISIBLE_DEVICESRestrict visible GPU devices for the HIP runtime.