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

Function oidnIsCUDADeviceSupported

api/api.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 OIDN_API bool oidnIsCUDADeviceSupported(int deviceID)
226 {
227 OIDN_TRY
228 OIDN_INIT_CONTEXT(ctx, DeviceType::CUDA);
229 if (!ctx.isDeviceSupported(DeviceType::CUDA))
230 return false;
231 auto factory = static_cast<CUDADeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::CUDA));
232 return factory->isDeviceSupported(deviceID);
233 OIDN_CATCH
234 return false;
235 }
236
237 OIDN_API bool oidnIsHIPDeviceSupported(int deviceID)
238 {

Callers 1

isCUDADeviceSupportedFunction · 0.85

Calls 2

isDeviceSupportedMethod · 0.80
getDeviceFactoryMethod · 0.80

Tested by

no test coverage detected