MCPcopy Create free account
hub / github.com/RenderKit/oidn / OIDNDevice oidnNewSYCLDevice

Function OIDNDevice oidnNewSYCLDevice

api/api.cpp:422–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

getDeviceFactoryMethod · 0.80
newDeviceMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected