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

Function has_tensorcore

python/tvm/testing/env.py:368–375  ·  view source on GitHub ↗

True if a CUDA device with Tensor Core support (compute >= 7) exists.

()

Source from the content-addressed store, hash-verified

366
367@functools.cache
368def has_tensorcore() -> bool:
369 """True if a CUDA device with Tensor Core support (compute >= 7) exists."""
370 try:
371 from tvm.support import nvcc # pylint: disable=import-outside-toplevel
372
373 return has_cuda() and bool(nvcc.have_tensorcore(tvm.cuda().compute_version))
374 except Exception: # pylint: disable=broad-except
375 return False
376
377
378@functools.cache

Callers

nothing calls this directly

Calls 2

has_cudaFunction · 0.85
cudaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…