Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Martin Dybdal <dybber@dybber.dk> |
Foreign.OpenCL.Bindings.Types
Description
OpenCL types
- type PlatformID = Ptr CPlatformID
- type DeviceID = Ptr CDeviceID
- type Context = ForeignPtr CContext
- type CommandQueue = ForeignPtr CCommandQueue
- type Program = ForeignPtr CProgram
- type Kernel = ForeignPtr CKernel
- type Event = ForeignPtr CEvent
- type Sampler = ForeignPtr CSampler
- data MemObject a
- type ClChar = CSChar
- type ClUChar = CUChar
- type ClShort = CShort
- type ClUShort = CUShort
- type ClInt = CInt
- type ClUInt = CUInt
- type ClLong = CLong
- type ClULong = CULong
- type ClHalf = CUShort
- type ClFloat = CFloat
- type ClDouble = CDouble
- type ClBitfield = CULong
- data ClBool
- type ClSize = CULong
- clFalse :: ClUInt
- clTrue :: ClUInt
- toOCLBool :: Bool -> ClUInt
- data ClException = ClException ClError (Maybe String)
- data ClError
- = Success
- | DeviceNotFound
- | DeviceNotAvailable
- | CompilerNotAvailable
- | MemObjectAllocationFailure
- | OutOfResources
- | OutOfHostMemory
- | ProfilingInfoNotAvailable
- | MemCopyOverlap
- | ImageFormatMismatch
- | ImageFormatNotSupported
- | BuildProgramFailure
- | MapFailure
- | MisalignedSubBufferOffset
- | ExecStatusErrorForEventsInWaitList
- | InvalidValue
- | InvalidDeviceType
- | InvalidPlatform
- | InvalidDevice
- | InvalidContext
- | InvalidQueueProperties
- | InvalidCommandQueue
- | InvalidHostPtr
- | InvalidMemObject
- | InvalidImageFormatDescriptor
- | InvalidImageSize
- | InvalidSampler
- | InvalidBinary
- | InvalidBuildOptions
- | InvalidProgram
- | InvalidProgramExecutable
- | InvalidKernelName
- | InvalidKernelDefinition
- | InvalidKernel
- | InvalidArgIndex
- | InvalidArgValue
- | InvalidArgSize
- | InvalidKernelArgs
- | InvalidWorkDimension
- | InvalidWorkGroupSize
- | InvalidWorkItemSize
- | InvalidGlobalOffset
- | InvalidEventWaitList
- | InvalidEvent
- | InvalidOperation
- | InvalidGlObject
- | InvalidBufferSize
- | InvalidMipLevel
- | InvalidGlobalWorkSize
- | InvalidProperty
- data PlatformInfo
- data ContextProperties = ContextPlatform PlatformID
- data ContextInfo
- data DeviceType
- data DeviceInfo
- = DeviceType
- | DeviceVendorID
- | DeviceMaxComputeUnits
- | DeviceMaxWorkItemDimensions
- | DeviceMaxWorkGroupSize
- | DeviceMaxWorkItemSizes
- | DevicePreferredVectorWidthChar
- | DevicePreferredVectorWidthShort
- | DevicePreferredVectorWidthInt
- | DevicePreferredVectorWidthLong
- | DevicePreferredVectorWidthFloat
- | DevicePreferredVectorWidthDouble
- | DeviceMaxClockFrequency
- | DeviceAddressBits
- | DeviceMaxReadImageArgs
- | DeviceMaxWriteImageArgs
- | DeviceMaxMemAllocSize
- | DeviceImage2DMaxWidth
- | DeviceImage2DMaxHeight
- | DeviceImage3DMaxWidth
- | DeviceImage3DMaxHeight
- | DeviceImage3DMaxDepth
- | DeviceImageSupport
- | DeviceMaxParameterSize
- | DeviceMaxSamplers
- | DeviceMemBaseAddrAlign
- | DeviceMinDataTypeAlignSize
- | DeviceSingleFPConfig
- | DeviceGlobalMemCacheType
- | DeviceGlobalMemCachelineSize
- | DeviceGlobalMemCacheSize
- | DeviceGlobalMemSize
- | DeviceMaxConstantBufferSize
- | DeviceMaxConstantArgs
- | DeviceLocalMemType
- | DeviceLocalMemSize
- | DeviceErrorCorrectionSupport
- | DeviceProfilingTimerResolution
- | DeviceEndianLittle
- | DeviceAvailable
- | DeviceCompilerAvailable
- | DeviceExecutionCapabilities
- | DeviceQueueProperties
- | DeviceName
- | DeviceVendor
- | DriverVersion
- | DeviceProfile
- | DeviceVersion
- | DeviceExtensions
- | DevicePlatform
- | DevicePreferredVectorWidthHalf
- | DeviceHostUnifiedMemory
- | DeviceNativeVectorWidthChar
- | DeviceNativeVectorWidthShort
- | DeviceNativeVectorWidthInt
- | DeviceNativeVectorWidthLong
- | DeviceNativeVectorWidthFloat
- | DeviceNativeVectorWidthDouble
- | DeviceNativeVectorWidthHalf
- | DeviceOpenclCVersion
- data DeviceFPConfig
- = FpDenorm
- | FpInfNan
- | FpRoundToNearest
- | FpRoundToZero
- | FpRoundToInf
- | FpFma
- | FpSoftFloat
- data DeviceMemCacheType
- = None
- | ReadOnlyCache
- | ReadWriteCache
- data DeviceLocalMemType
- data DeviceExecCapabilities
- data CommandQueueProperties
- data CommandQueueInfo
- data CommandExecStatus
- data ProgramInfo
- data ProgramBuildInfo
- data KernelInfo
- data KernelWorkGroupInfo
- data EventInfo
- data CommandType
- = CommandNdrangeKernel
- | CommandTask
- | CommandNativeKernel
- | CommandReadBuffer
- | CommandWriteBuffer
- | CommandCopyBuffer
- | CommandReadImage
- | CommandWriteImage
- | CommandCopyImage
- | CommandCopyImageToBuffer
- | CommandCopyBufferToImage
- | CommandMapBuffer
- | CommandMapImage
- | CommandUnmapMemObject
- | CommandMarker
- | CommandAcquireGlObjects
- | CommandReleaseGlObjects
- | CommandReadBufferRect
- | CommandWriteBufferRect
- | CommandCopyBufferRect
- | CommandUser
- data MemFlags
- data MemInfo
- = MemType
- | MemFlags
- | MemSize
- | MemHostPtr
- | MemMapCount
- | MemReferenceCount
- | MemContext
- | MemAssociatedMemobject
- | MemOffset
- data MemObjectType
Documentation
type PlatformID = Ptr CPlatformID
type Context = ForeignPtr CContext
type CommandQueue = ForeignPtr CCommandQueue
type Program = ForeignPtr CProgram
type Kernel = ForeignPtr CKernel
type Event = ForeignPtr CEvent
type Sampler = ForeignPtr CSampler
data MemObject a
Type representing OpenCL memory objects
type ClBitfield = CULong
data ClError
Constructors
data PlatformInfo
Instances
data ContextInfo
Instances
data DeviceType
Instances
data DeviceInfo
Constructors
Instances
data DeviceFPConfig
Instances
data DeviceMemCacheType
Constructors
None | |
ReadOnlyCache | |
ReadWriteCache |
data DeviceLocalMemType
Constructors
ExecKernel | |
ExecNativeKernel |
Constructors
QueueOutOfOrderExecModeEnable | |
QueueProfilingEnable |
data CommandQueueInfo
Constructors
QueueContext | |
QueueDevice | |
QueueReferenceCount | |
QueueProperties |
data CommandExecStatus
data ProgramInfo
Constructors
ProgramReferenceCount | |
ProgramContext | |
ProgramNumDevices | |
ProgramDevices | |
ProgramSource | |
ProgramBinarySizes | |
ProgramBinaries |
Instances
data ProgramBuildInfo
Constructors
ProgramBuildStatus | |
ProgramBuildOptions | |
ProgramBuildLog |
data KernelInfo
Instances
data KernelWorkGroupInfo
data EventInfo
data CommandType
Constructors
Instances
data MemFlags
data MemInfo