[−][src]Struct opencl_core::device::Device
Methods
impl Device
[src]
pub fn new(device_id: ClDeviceID) -> Device
[src]
impl Device
[src]
pub fn low_level_device(&self) -> &ClDeviceID
[src]
pub fn list_devices_by_type(
platform: &Platform,
device_type: DeviceType
) -> Output<Vec<Device>>
[src]
platform: &Platform,
device_type: DeviceType
) -> Output<Vec<Device>>
pub fn list_default_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
pub fn list_all_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
pub fn list_cpu_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
pub fn list_gpu_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
pub fn list_accelerator_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
pub fn list_custom_devices(platform: &Platform) -> Output<Vec<Device>>
[src]
Trait Implementations
impl Clone for Device
[src]
impl Debug for Device
[src]
impl DevicePtr for Device
[src]
unsafe fn device_ptr(&self) -> cl_device_id
[src]
fn is_usable(&self) -> bool
[src]
fn usability_check(&self) -> Result<(), Error>
[src]
fn global_mem_cacheline_size(&self) -> Result<u32, Error>
[src]
fn native_vector_width_double(&self) -> Result<u32, Error>
[src]
fn native_vector_width_half(&self) -> Result<u32, Error>
[src]
fn address_bits(&self) -> Result<u32, Error>
[src]
fn max_clock_frequency(&self) -> Result<u32, Error>
[src]
fn max_compute_units(&self) -> Result<u32, Error>
[src]
fn max_constant_args(&self) -> Result<u32, Error>
[src]
fn max_read_image_args(&self) -> Result<u32, Error>
[src]
fn max_samplers(&self) -> Result<u32, Error>
[src]
fn max_work_item_dimensions(&self) -> Result<u32, Error>
[src]
fn max_write_image_args(&self) -> Result<u32, Error>
[src]
fn mem_base_addr_align(&self) -> Result<u32, Error>
[src]
fn min_data_type_align_size(&self) -> Result<u32, Error>
[src]
fn native_vector_width_char(&self) -> Result<u32, Error>
[src]
fn native_vector_width_short(&self) -> Result<u32, Error>
[src]
fn native_vector_width_int(&self) -> Result<u32, Error>
[src]
fn native_vector_width_long(&self) -> Result<u32, Error>
[src]
fn native_vector_width_float(&self) -> Result<u32, Error>
[src]
fn partition_max_sub_devices(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_char(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_short(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_int(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_long(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_float(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_double(&self) -> Result<u32, Error>
[src]
fn preferred_vector_width_half(&self) -> Result<u32, Error>
[src]
fn vendor_id(&self) -> Result<u32, Error>
[src]
fn available(&self) -> Result<bool, Error>
[src]
fn compiler_available(&self) -> Result<bool, Error>
[src]
fn endian_little(&self) -> Result<bool, Error>
[src]
fn error_correction_support(&self) -> Result<bool, Error>
[src]
fn host_unified_memory(&self) -> Result<bool, Error>
[src]
fn image_support(&self) -> Result<bool, Error>
[src]
fn linker_available(&self) -> Result<bool, Error>
[src]
fn preferred_interop_user_sync(&self) -> Result<bool, Error>
[src]
fn name(&self) -> Result<String, Error>
[src]
fn opencl_c_version(&self) -> Result<String, Error>
[src]
fn profile(&self) -> Result<String, Error>
[src]
fn vendor(&self) -> Result<String, Error>
[src]
fn version(&self) -> Result<String, Error>
[src]
fn driver_version(&self) -> Result<String, Error>
[src]
fn global_mem_cache_size(&self) -> Result<u64, Error>
[src]
fn global_mem_size(&self) -> Result<u64, Error>
[src]
fn local_mem_size(&self) -> Result<u64, Error>
[src]
fn max_constant_buffer_size(&self) -> Result<u64, Error>
[src]
fn max_mem_alloc_size(&self) -> Result<u64, Error>
[src]
fn image2d_max_width(&self) -> Result<usize, Error>
[src]
fn image2d_max_height(&self) -> Result<usize, Error>
[src]
fn image3d_max_width(&self) -> Result<usize, Error>
[src]
fn image3d_max_height(&self) -> Result<usize, Error>
[src]
fn image3d_max_depth(&self) -> Result<usize, Error>
[src]
fn image_max_buffer_size(&self) -> Result<usize, Error>
[src]
fn image_max_array_size(&self) -> Result<usize, Error>
[src]
fn max_parameter_size(&self) -> Result<usize, Error>
[src]
fn max_work_group_size(&self) -> Result<usize, Error>
[src]
fn printf_buffer_size(&self) -> Result<usize, Error>
[src]
fn profiling_timer_resolution(&self) -> Result<usize, Error>
[src]
fn max_work_item_sizes(&self) -> Result<Vec<usize>, Error>
[src]
fn local_mem_type(&self) -> Result<DeviceLocalMemType, Error>
[src]
fn execution_capabilities(&self) -> Result<DeviceExecCapabilities, Error>
[src]
fn global_mem_cache_type(&self) -> Result<DeviceMemCacheType, Error>
[src]
fn partition_affinity_domain(&self) -> Result<DeviceAffinityDomain, Error>
[src]
fn device_type(&self) -> Result<DeviceType, Error>
[src]
impl Drop for Device
[src]
impl Eq for Device
[src]
impl PartialEq<Device> for Device
[src]
impl Send for Device
[src]
impl Sync for Device
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,