[][src]Enum ocl_core::types::enums::DeviceInfoResult

pub enum DeviceInfoResult {
    Type(DeviceType),
    VendorId(u32),
    MaxComputeUnits(u32),
    MaxWorkItemDimensions(u32),
    MaxWorkGroupSize(usize),
    MaxWorkItemSizes(Vec<usize>),
    PreferredVectorWidthChar(u32),
    PreferredVectorWidthShort(u32),
    PreferredVectorWidthInt(u32),
    PreferredVectorWidthLong(u32),
    PreferredVectorWidthFloat(u32),
    PreferredVectorWidthDouble(u32),
    MaxClockFrequency(u32),
    AddressBits(u32),
    MaxReadImageArgs(u32),
    MaxWriteImageArgs(u32),
    MaxMemAllocSize(u64),
    Image2dMaxWidth(usize),
    Image2dMaxHeight(usize),
    Image3dMaxWidth(usize),
    Image3dMaxHeight(usize),
    Image3dMaxDepth(usize),
    ImageSupport(bool),
    MaxParameterSize(usize),
    MaxSamplers(u32),
    MemBaseAddrAlign(u32),
    MinDataTypeAlignSize(u32),
    SingleFpConfig(DeviceFpConfig),
    GlobalMemCacheType(DeviceMemCacheType),
    GlobalMemCachelineSize(u32),
    GlobalMemCacheSize(u64),
    GlobalMemSize(u64),
    MaxConstantBufferSize(u64),
    MaxConstantArgs(u32),
    LocalMemType(DeviceLocalMemType),
    LocalMemSize(u64),
    ErrorCorrectionSupport(bool),
    ProfilingTimerResolution(usize),
    EndianLittle(bool),
    Available(bool),
    CompilerAvailable(bool),
    ExecutionCapabilities(DeviceExecCapabilities),
    QueueProperties(CommandQueueProperties),
    Name(String),
    Vendor(String),
    DriverVersion(String),
    Profile(String),
    Version(OpenclVersion),
    Extensions(String),
    Platform(PlatformId),
    DoubleFpConfig(DeviceFpConfig),
    HalfFpConfig(DeviceFpConfig),
    PreferredVectorWidthHalf(u32),
    HostUnifiedMemory(bool),
    NativeVectorWidthChar(u32),
    NativeVectorWidthShort(u32),
    NativeVectorWidthInt(u32),
    NativeVectorWidthLong(u32),
    NativeVectorWidthFloat(u32),
    NativeVectorWidthDouble(u32),
    NativeVectorWidthHalf(u32),
    OpenclCVersion(String),
    LinkerAvailable(bool),
    BuiltInKernels(String),
    ImageMaxBufferSize(usize),
    ImageMaxArraySize(usize),
    ParentDevice(Option<DeviceId>),
    PartitionMaxSubDevices(u32),
    PartitionProperties(Vec<DevicePartitionProperty>),
    PartitionAffinityDomain(DeviceAffinityDomain),
    PartitionType(Vec<DevicePartitionProperty>),
    ReferenceCount(u32),
    PreferredInteropUserSync(bool),
    PrintfBufferSize(usize),
    ImagePitchAlignment(u32),
    ImageBaseAddressAlignment(u32),
}

A device info result.

Variants

Type(DeviceType)VendorId(u32)MaxComputeUnits(u32)MaxWorkItemDimensions(u32)MaxWorkGroupSize(usize)MaxWorkItemSizes(Vec<usize>)PreferredVectorWidthChar(u32)PreferredVectorWidthShort(u32)PreferredVectorWidthInt(u32)PreferredVectorWidthLong(u32)PreferredVectorWidthFloat(u32)PreferredVectorWidthDouble(u32)MaxClockFrequency(u32)AddressBits(u32)MaxReadImageArgs(u32)MaxWriteImageArgs(u32)MaxMemAllocSize(u64)Image2dMaxWidth(usize)Image2dMaxHeight(usize)Image3dMaxWidth(usize)Image3dMaxHeight(usize)Image3dMaxDepth(usize)ImageSupport(bool)MaxParameterSize(usize)MaxSamplers(u32)MemBaseAddrAlign(u32)MinDataTypeAlignSize(u32)SingleFpConfig(DeviceFpConfig)GlobalMemCacheType(DeviceMemCacheType)GlobalMemCachelineSize(u32)GlobalMemCacheSize(u64)GlobalMemSize(u64)MaxConstantBufferSize(u64)MaxConstantArgs(u32)LocalMemType(DeviceLocalMemType)LocalMemSize(u64)ErrorCorrectionSupport(bool)ProfilingTimerResolution(usize)EndianLittle(bool)Available(bool)CompilerAvailable(bool)ExecutionCapabilities(DeviceExecCapabilities)QueueProperties(CommandQueueProperties)Name(String)Vendor(String)DriverVersion(String)Profile(String)Version(OpenclVersion)Extensions(String)Platform(PlatformId)DoubleFpConfig(DeviceFpConfig)HalfFpConfig(DeviceFpConfig)PreferredVectorWidthHalf(u32)HostUnifiedMemory(bool)NativeVectorWidthChar(u32)NativeVectorWidthShort(u32)NativeVectorWidthInt(u32)NativeVectorWidthLong(u32)NativeVectorWidthFloat(u32)NativeVectorWidthDouble(u32)NativeVectorWidthHalf(u32)OpenclCVersion(String)LinkerAvailable(bool)BuiltInKernels(String)ImageMaxBufferSize(usize)ImageMaxArraySize(usize)ParentDevice(Option<DeviceId>)PartitionMaxSubDevices(u32)PartitionProperties(Vec<DevicePartitionProperty>)PartitionAffinityDomain(DeviceAffinityDomain)PartitionType(Vec<DevicePartitionProperty>)ReferenceCount(u32)PreferredInteropUserSync(bool)PrintfBufferSize(usize)ImagePitchAlignment(u32)ImageBaseAddressAlignment(u32)

Methods

impl DeviceInfoResult[src]

pub fn from_bytes_max_work_item_sizes(
    request: DeviceInfo,
    result: Vec<u8>,
    max_wi_dims: u32
) -> OclCoreResult<DeviceInfoResult>
[src]

Returns a new DeviceInfoResult::MaxWorkItemSizes variant.

pub fn from_bytes(
    request: DeviceInfo,
    result: Vec<u8>
) -> OclCoreResult<DeviceInfoResult>
[src]

Returns a new DeviceInfoResult for all variants except MaxWorkItemSizes.

pub fn as_opencl_version(&self) -> OclCoreResult<OpenclVersion>[src]

Parse the Version string and get a numeric result as OpenclVersion.

Trait Implementations

impl Debug for DeviceInfoResult[src]

impl Display for DeviceInfoResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]