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

Function has_nvptx

python/tvm/testing/env.py:200–202  ·  view source on GitHub ↗

True if NVPTX is usable: a (CUDA) device, plus the LLVM backend it needs.

()

Source from the content-addressed store, hash-verified

198
199
200def has_nvptx() -> bool:
201 """True if NVPTX is usable: a (CUDA) device, plus the LLVM backend it needs."""
202 return _device_usable("nvptx") and has_llvm()
203
204
205def has_llvm() -> bool:

Callers

nothing calls this directly

Calls 2

_device_usableFunction · 0.85
has_llvmFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…