True if an OpenCL device is present and enabled in TVM_TEST_TARGETS.
()
| 193 | |
| 194 | |
| 195 | def has_opencl() -> bool: |
| 196 | """True if an OpenCL device is present and enabled in TVM_TEST_TARGETS.""" |
| 197 | return _device_usable("opencl") |
| 198 | |
| 199 | |
| 200 | def has_nvptx() -> bool: |
nothing calls this directly
no test coverage detected
searching dependent graphs…