MCPcopy Create free account
hub / github.com/RenderKit/oidn / oidnIsHIPDeviceSupported

Function oidnIsHIPDeviceSupported

api/api.cpp:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 OIDN_API bool oidnIsHIPDeviceSupported(int deviceID)
238 {
239 OIDN_TRY
240 OIDN_INIT_CONTEXT(ctx, DeviceType::HIP);
241 if (!ctx.isDeviceSupported(DeviceType::HIP))
242 return false;
243 auto factory = static_cast<HIPDeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::HIP));
244 return factory->isDeviceSupported(deviceID);
245 OIDN_CATCH
246 return false;
247 }
248
249 OIDN_API bool oidnIsMetalDeviceSupported(MTLDevice_id device)
250 {

Callers 1

isHIPDeviceSupportedFunction · 0.85

Calls 2

isDeviceSupportedMethod · 0.80
getDeviceFactoryMethod · 0.80

Tested by

no test coverage detected