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.

Create sub-devices by partitioning an OpenCL device.

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

CL_VERSION_3_0

CL_VERSION_3_0

CL_VERSION_3_0

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.