True if a CUDA device is present and enabled in TVM_TEST_TARGETS.
()
| 173 | |
| 174 | |
| 175 | def has_cuda() -> bool: |
| 176 | """True if a CUDA device is present and enabled in TVM_TEST_TARGETS.""" |
| 177 | return _device_usable("cuda") |
| 178 | |
| 179 | |
| 180 | def has_rocm() -> bool: |
no test coverage detected
searching dependent graphs…