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

Function has_hexagon_toolchain

python/tvm/testing/env.py:410–419  ·  view source on GitHub ↗

True if the Hexagon toolchain is available for compilation.

()

Source from the content-addressed store, hash-verified

408
409@functools.cache
410def has_hexagon_toolchain() -> bool:
411 """True if the Hexagon toolchain is available for compilation."""
412 try:
413 from tvm.contrib.hexagon import ( # pylint: disable=import-outside-toplevel
414 _ci_env_check,
415 )
416
417 return _build_flag_enabled("USE_HEXAGON") and _ci_env_check._compile_time_check() is True
418 except Exception: # pylint: disable=broad-except
419 return False
420
421
422@functools.cache

Callers 1

has_hexagonFunction · 0.85

Calls 1

_build_flag_enabledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…