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

Function oidnIsSYCLDeviceSupported

api/api.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 OIDN_API bool oidnIsSYCLDeviceSupported(const sycl::device* device)
214 {
215 OIDN_TRY
216 OIDN_INIT_CONTEXT(ctx, DeviceType::SYCL);
217 if (!ctx.isDeviceSupported(DeviceType::SYCL))
218 return false;
219 auto factory = static_cast<SYCLDeviceFactoryBase*>(ctx.getDeviceFactory(DeviceType::SYCL));
220 return factory->isDeviceSupported(device);
221 OIDN_CATCH
222 return false;
223 }
224
225 OIDN_API bool oidnIsCUDADeviceSupported(int deviceID)
226 {

Callers 1

isSYCLDeviceSupportedFunction · 0.85

Calls 2

isDeviceSupportedMethod · 0.80
getDeviceFactoryMethod · 0.80

Tested by

no test coverage detected