spdl.io.utils.built_with_rocm

built_with_rocm() → bool[source]

Check if SPDL is compiled with ROCm support.

It loads neither the ROCm extension nor the HIP runtime.

Returns:

True if SPDL is compiled with ROCm support.

Added in version 0.10.0.