MCPcopy
hub / github.com/apache/tvm / has_matrixcore

Function has_matrixcore

python/tvm/testing/env.py:379–386  ·  view source on GitHub ↗

True if a ROCm device with Matrix Core support (compute >= 8) exists.

()

Source from the content-addressed store, hash-verified

377
378@functools.cache
379def has_matrixcore() -> bool:
380 """True if a ROCm device with Matrix Core support (compute >= 8) exists."""
381 try:
382 from tvm.support import rocm # pylint: disable=import-outside-toplevel
383
384 return has_rocm() and bool(rocm.have_matrixcore(tvm.rocm().compute_version))
385 except Exception: # pylint: disable=broad-except
386 return False
387
388
389@functools.cache

Callers

nothing calls this directly

Calls 2

has_rocmFunction · 0.85
rocmMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…