MCPcopy Index your code
hub / github.com/apache/tvm / has_rocm

Function has_rocm

python/tvm/testing/env.py:180–182  ·  view source on GitHub ↗

True if a ROCm device is present and enabled in TVM_TEST_TARGETS.

()

Source from the content-addressed store, hash-verified

178
179
180def has_rocm() -> bool:
181 """True if a ROCm device is present and enabled in TVM_TEST_TARGETS."""
182 return _device_usable("rocm")
183
184
185def has_vulkan() -> bool:

Callers 2

has_hipblasFunction · 0.85
has_matrixcoreFunction · 0.85

Calls 1

_device_usableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…