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

Function has_metal

python/tvm/testing/env.py:190–192  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

188
189
190def has_metal() -> bool:
191 """True if a Metal device is present and enabled in TVM_TEST_TARGETS."""
192 return _device_usable("metal")
193
194
195def has_opencl() -> bool:

Callers

nothing calls this directly

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…