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

Function OIDNDevice oidnNewHIPDevice

api/api.cpp:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 OIDN_API OIDNDevice oidnNewHIPDevice(const int* deviceIDs, const hipStream_t* streams, int numPairs)
445 {
446 Ref<Device> device = nullptr;
447 OIDN_TRY
448 OIDN_INIT_CONTEXT(ctx, DeviceType::HIP);
449 auto factory = static_cast<HIPDeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::HIP));
450 device = factory->newDevice(deviceIDs, streams, numPairs);
451 OIDN_CATCH
452 return reinterpret_cast<OIDNDevice>(device.detach());
453 }
454
455 OIDN_API OIDNDevice oidnNewMetalDevice(const MTLCommandQueue_id* commandQueues, int numQueues)
456 {

Callers

nothing calls this directly

Calls 3

getDeviceFactoryMethod · 0.80
newDeviceMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected