True if the Hexagon toolchain is available for compilation.
()
| 408 | |
| 409 | @functools.cache |
| 410 | def 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 |
no test coverage detected
searching dependent graphs…