| 211 | } |
| 212 | |
| 213 | OIDN_API bool oidnIsSYCLDeviceSupported(const sycl::device* device) |
| 214 | { |
| 215 | OIDN_TRY |
| 216 | OIDN_INIT_CONTEXT(ctx, DeviceType::SYCL); |
| 217 | if (!ctx.isDeviceSupported(DeviceType::SYCL)) |
| 218 | return false; |
| 219 | auto factory = static_cast<SYCLDeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::SYCL)); |
| 220 | return factory->isDeviceSupported(device); |
| 221 | OIDN_CATCH |
| 222 | return false; |
| 223 | } |
| 224 | |
| 225 | OIDN_API bool oidnIsCUDADeviceSupported(int deviceID) |
| 226 | { |
no test coverage detected