| 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 | { |
nothing calls this directly
no test coverage detected