| 420 | } |
| 421 | |
| 422 | OIDN_API OIDNDevice oidnNewSYCLDevice(const sycl::queue* queues, int numQueues) |
| 423 | { |
| 424 | Ref<Device> device = nullptr; |
| 425 | OIDN_TRY |
| 426 | OIDN_INIT_CONTEXT(ctx, DeviceType::SYCL); |
| 427 | auto factory = static_cast<SYCLDeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::SYCL)); |
| 428 | device = factory->newDevice(queues, numQueues); |
| 429 | OIDN_CATCH |
| 430 | return reinterpret_cast<OIDNDevice>(device.detach()); |
| 431 | } |
| 432 | |
| 433 | OIDN_API OIDNDevice oidnNewCUDADevice(const int* deviceIDs, const cudaStream_t* streams, int numPairs) |
| 434 | { |
nothing calls this directly
no test coverage detected