Expand description
OIDN logical device (CPU or GPU backend) and physical device queries. Full API: type-based and physical-ID/UUID/LUID/PCI/CUDA/HIP/Metal device creation.
Structs§
- Oidn
Device - Open Image Denoise logical device.
Enums§
- Oidn
Device Type - OIDN device type (CPU, GPU backends, or default auto-select).
Functions§
- get_
physical_ device_ bool - Returns a boolean parameter of the physical device.
nameis e.g."type","name". - get_
physical_ device_ data - Returns opaque data and its size for the physical device. Pointer valid until next OIDN call.
- get_
physical_ device_ int - Returns an integer parameter of the physical device.
- get_
physical_ device_ string - Returns a string parameter of the physical device. Pointer valid until next OIDN call.
- is_
cpu_ device_ supported - Whether the CPU device is supported.
- is_
cuda_ device_ supported - Whether the given CUDA device ID is supported.
- is_
hip_ device_ supported - Whether the given HIP device ID is supported.
- is_
metal_ ⚠device_ supported - Whether the given Metal device (MTLDevice, passed as raw pointer) is supported.
- num_
physical_ devices - Number of physical devices supported by OIDN. Valid IDs are
0 .. num_physical_devices(). - take_
global_ error - Returns the first unqueried error for the current thread (e.g. from a failed device creation)
and clears it. Can be called without a device to check why
OidnDevice::new()or similar failed.