True if ``kind`` is enabled for this run and a ``kind`` device exists. The TVM_TEST_TARGETS opt-out is checked first so that an excluded backend never probes a (possibly crashy) device.
(kind: str)
| 161 | |
| 162 | |
| 163 | def _device_usable(kind: str) -> bool: |
| 164 | """True if ``kind`` is enabled for this run and a ``kind`` device exists. |
| 165 | |
| 166 | The TVM_TEST_TARGETS opt-out is checked first so that an excluded backend |
| 167 | never probes a (possibly crashy) device. |
| 168 | """ |
| 169 | return _target_enabled(kind) and _device_exists(kind) |
| 170 | |
| 171 | |
| 172 | # --- runtime device probes ------------------------------------------------- |
no test coverage detected
searching dependent graphs…