#[repr(C)]pub struct IPLOpenCLDeviceDesc {Show 13 fields
pub platform: *mut c_void,
pub platformName: IPLstring,
pub platformVendor: IPLstring,
pub platformVersion: IPLstring,
pub device: *mut c_void,
pub deviceName: IPLstring,
pub deviceVendor: IPLstring,
pub deviceVersion: IPLstring,
pub type_: IPLOpenCLDeviceType,
pub numConvolutionCUs: IPLint32,
pub numIRUpdateCUs: IPLint32,
pub granularity: IPLint32,
pub perfScore: IPLfloat32,
}Expand description
Describes the properties of an OpenCL device. This information can be used to select the most suitable device for your application.
Fields§
§platform: *mut c_voidThe OpenCL platform id. Can be cast to \c cl_platform_id.
platformName: IPLstringThe OpenCL platform name.
platformVendor: IPLstringThe OpenCL platform vendor’s name.
platformVersion: IPLstringThe OpenCL platform version.
device: *mut c_voidThe OpenCL device id. Can be cast to \c cl_device_id.
deviceName: IPLstringThe OpenCL device name.
deviceVendor: IPLstringThe OpenCL device vendor’s name.
deviceVersion: IPLstringThe OpenCL device version.
type_: IPLOpenCLDeviceTypeThe type of OpenCL device.
numConvolutionCUs: IPLint32The number of CUs reserved for convolution. May be \c 0 if CU reservation is not supported.
numIRUpdateCUs: IPLint32The number of CUs reserved for IR update. May be \c 0 if CU reservation is not supported.
granularity: IPLint32The CU reservation granularity. CUs can only be reserved on this device in multiples of this number.
perfScore: IPLfloat32A relative performance score of a single CU of this device. Only applicable to supported AMD GPUs.
Trait Implementations§
Source§impl Clone for IPLOpenCLDeviceDesc
impl Clone for IPLOpenCLDeviceDesc
Source§fn clone(&self) -> IPLOpenCLDeviceDesc
fn clone(&self) -> IPLOpenCLDeviceDesc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more