Struct opencl3::device::Device [−][src]
pub struct Device { /* fields omitted */ }
Expand description
An OpenCL device id and methods to query it.
The query methods calls clGetDeviceInfo with the relevant param_name, see:
Device Queries.
Implementations
Accessor for the underlying device id.
pub fn create_sub_devices(
&self,
properties: &[cl_device_partition_property]
) -> Result<Vec<SubDevice>>
pub fn create_sub_devices(
&self,
properties: &[cl_device_partition_property]
) -> Result<Vec<SubDevice>>
Create sub-devices by partitioning an OpenCL device.
properties
- the slice of cl_device_partition_property, see Subdevice Partition.
returns a Result containing a vector of available SubDevices or the error code from the OpenCL C API function.
The OpenCL device type, see Device Types.
A unique device vendor identifier: a PCI vendor ID or a Khronos vendor ID if the vendor does not have a PCI vendor ID.
The number of parallel compute units on the device, minimum 1.
Maximum dimensions for global and local work-item IDs, minimum 3 if device is not CL_DEVICE_TYPE_CUSTOM.
Maximum number of work-items for each dimension of a work-group, minimum [1, 1, 1] if device is not CL_DEVICE_TYPE_CUSTOM.
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_1_2
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_0
CL_VERSION_2_1
CL_VERSION_2_1
CL_VERSION_2_1
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
CL_VERSION_3_0
pub fn integer_dot_product_acceleration_properties_8bit_khr(
&self
) -> Result<cl_device_integer_dot_product_acceleration_properties_khr>
pub fn integer_dot_product_acceleration_properties_4x8bit_packed_khr(
&self
) -> Result<cl_device_integer_dot_product_acceleration_properties_khr>
pub fn device_feature_capabilities_intel(
&self
) -> Result<cl_device_feature_capabilities_intel>
Get data about an OpenCL device. Calls clGetDeviceInfo to get the desired data about the device.
Determine if the device supports the given half floating point capability.
Returns true if the device supports it, false otherwise.
Determine if the device supports the given double floating point capability.
Returns true if the device supports it, false otherwise.
CL_VERSION_1_2
Determine if the device supports SVM and, if so, what kind of SVM.
Returns zero if the device does not support SVM.
CL_VERSION_2_0
Trait Implementations
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more