MCPcopy Create free account
hub / github.com/apache/tvm / has_opencl

Function has_opencl

python/tvm/testing/env.py:195–197  ·  view source on GitHub ↗

True if an OpenCL device is present and enabled in TVM_TEST_TARGETS.

()

Source from the content-addressed store, hash-verified

193
194
195def has_opencl() -> bool:
196 """True if an OpenCL device is present and enabled in TVM_TEST_TARGETS."""
197 return _device_usable("opencl")
198
199
200def has_nvptx() -> 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…