Documentation ¶
Overview ¶
Code generated go generate DO NOT EDIT.
Code generated go generate DO NOT EDIT.
Index ¶
- Constants
- type CommandQueue
- func (q CommandQueue) EnqueueNDRangeKernel(kernel Kernel, globalWorkOffset, globalWorkSize, localWorkSize []uintptr, ...) (*Event, error)
- func (q CommandQueue) EnqueueReadBuffer(memory Memory, offset uintptr, buffer []byte, waitList []Event) error
- func (q CommandQueue) EnqueueWriteBuffer(memory Memory, offset uintptr, buffer []byte, waitList []Event) error
- func (q CommandQueue) Release() error
- type CommandQueueProperties
- type Context
- func (c Context) CreateBuffer(flags MemoryFlags, size uintptr, hostPtr unsafe.Pointer) (*Memory, error)
- func (c Context) CreateCommandQueue(device Device, properties *CommandQueueProperties) (*CommandQueue, error)
- func (c Context) CreateProgramWithSource(source []string) (*Program, error)
- func (c Context) Devices() []*Device
- func (c Context) Release() error
- type ContextProperties
- type Device
- func (d Device) Available() (bool, error)
- func (d Device) BuiltInKernels() ([]string, error)
- func (d Device) CompilerAvailable() (bool, error)
- func (d Device) DoubleFPConfig() (FPConfig, error)
- func (d Device) DriverVersion() (string, error)
- func (d Device) EndianLittle() (bool, error)
- func (d Device) ErrorCorrectionSupport() (bool, error)
- func (d Device) GlobalMemCacheSize() (uint64, error)
- func (d Device) GlobalMemCacheType() (MemCacheType, error)
- func (d Device) GlobalMemCachelineSize() (uint, error)
- func (d Device) GlobalMemSize() (uint64, error)
- func (d Device) HostUnifiedMemory() (bool, error)
- func (d Device) Image2DMaxHeight() (uintptr, error)
- func (d Device) Image2DMaxWidth() (uintptr, error)
- func (d Device) Image3DMaxDepth() (uintptr, error)
- func (d Device) Image3DMaxHeight() (uintptr, error)
- func (d Device) Image3DMaxWidth() (uintptr, error)
- func (d Device) ImageMaxArraySize() (uintptr, error)
- func (d Device) ImageMaxBufferSize() (uintptr, error)
- func (d Device) ImageSupport() (bool, error)
- func (d Device) LinkerAvailable() (bool, error)
- func (d Device) LocalMemSize() (uint64, error)
- func (d Device) LocalMemType() (LocalMemType, error)
- func (d Device) MaxClockFrequency() (uint, error)
- func (d Device) MaxComputeUnits() (uint, error)
- func (d Device) MaxConstantArgs() (uint, error)
- func (d Device) MaxConstantBufferSize() (uint64, error)
- func (d Device) MaxMemAllocSize() (uint64, error)
- func (d Device) MaxParameterSize() (uintptr, error)
- func (d Device) MaxReadImageArgs() (uint, error)
- func (d Device) MaxSamplers() (uint, error)
- func (d Device) MaxWorkGroupSize() (uintptr, error)
- func (d Device) MaxWorkItemDimensions() (uint, error)
- func (d Device) MaxWorkItemSizes() ([]uintptr, error)
- func (d Device) MaxWriteImageArgs() (uint, error)
- func (d Device) MemBaseAddrAlign() (uint, error)
- func (d Device) Name() (string, error)
- func (d Device) NativeVectorWidthChar() (uint, error)
- func (d Device) NativeVectorWidthDouble() (uint, error)
- func (d Device) NativeVectorWidthFloat() (uint, error)
- func (d Device) NativeVectorWidthHalf() (uint, error)
- func (d Device) NativeVectorWidthInt() (uint, error)
- func (d Device) NativeVectorWidthLong() (uint, error)
- func (d Device) NativeVectorWidthShort() (uint, error)
- func (d Device) PreferredVectorWidthChar() (uint, error)
- func (d Device) PreferredVectorWidthDouble() (uint, error)
- func (d Device) PreferredVectorWidthFloat() (uint, error)
- func (d Device) PreferredVectorWidthHalf() (uint, error)
- func (d Device) PreferredVectorWidthInt() (uint, error)
- func (d Device) PreferredVectorWidthLong() (uint, error)
- func (d Device) PreferredVectorWidthShort() (uint, error)
- func (d Device) Profile() (string, error)
- func (d Device) ProfilingTimerResolution() (uintptr, error)
- func (d Device) QueueProperties() (CommandQueueProperties, error)
- func (d Device) SingleFPConfig() (FPConfig, error)
- func (d Device) Type() (DeviceType, error)
- func (d Device) Vendor() (string, error)
- func (d Device) VendorID() (uint, error)
- func (d Device) Version() (string, error)
- type DeviceType
- type Event
- type FPConfig
- func (c FPConfig) CorrectlyRoundedDivideSqrt() bool
- func (c FPConfig) Denorm() bool
- func (c FPConfig) FMA() bool
- func (c FPConfig) InfNaN() bool
- func (c FPConfig) RoundToInf() bool
- func (c FPConfig) RoundToNearest() bool
- func (c FPConfig) RoundToZero() bool
- func (c FPConfig) SoftFloat() bool
- func (c FPConfig) String() string
- type Kernel
- type LocalMemType
- type MemCacheType
- type Memory
- type MemoryFlags
- type Platform
- type Program
Constants ¶
View Source
const ( DeviceTypeCPU = DeviceType(C.CL_DEVICE_TYPE_CPU) DeviceTypeGPU = DeviceType(C.CL_DEVICE_TYPE_GPU) DeviceTypeAccelerator = DeviceType(C.CL_DEVICE_TYPE_ACCELERATOR) DeviceTypeCustom = DeviceType(C.CL_DEVICE_TYPE_CUSTOM) DeviceTypeDefault = DeviceType(C.CL_DEVICE_TYPE_DEFAULT) DeviceTypeAll = DeviceType(C.CL_DEVICE_TYPE_ALL) )
View Source
const ( MemReadWrite = MemoryFlags(C.CL_MEM_READ_WRITE) MemWriteOnly = MemoryFlags(C.CL_MEM_WRITE_ONLY) MemReadOnly = MemoryFlags(C.CL_MEM_READ_ONLY) MemUseHostPtr = MemoryFlags(C.CL_MEM_USE_HOST_PTR) MemAllocHostPtr = MemoryFlags(C.CL_MEM_ALLOC_HOST_PTR) MemCopyHostPtr = MemoryFlags(C.CL_MEM_COPY_HOST_PTR) MemHostWriteOnly = MemoryFlags(C.CL_MEM_HOST_WRITE_ONLY) MemHostReadOnly = MemoryFlags(C.CL_MEM_READ_ONLY) MemHostNoAccess = MemoryFlags(C.CL_MEM_HOST_NO_ACCESS) )
View Source
const ( CacheNone = MemCacheType(iota) CacheReadOnly CacheReadWrite )
View Source
const ( LocalMemNone = LocalMemType(iota) LocalMemLocal LocalMemGlobal )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandQueue ¶
type CommandQueue struct {
// contains filtered or unexported fields
}
func (CommandQueue) EnqueueNDRangeKernel ¶
func (CommandQueue) EnqueueReadBuffer ¶
func (CommandQueue) EnqueueWriteBuffer ¶
func (CommandQueue) Release ¶
func (q CommandQueue) Release() error
type CommandQueueProperties ¶
func (CommandQueueProperties) String ¶
func (p CommandQueueProperties) String() string
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func CreateContext ¶
func (Context) CreateBuffer ¶
func (Context) CreateCommandQueue ¶
func (c Context) CreateCommandQueue(device Device, properties *CommandQueueProperties) (*CommandQueue, error)
func (Context) CreateProgramWithSource ¶
type ContextProperties ¶
type ContextProperties struct { }
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (Device) BuiltInKernels ¶
func (Device) CompilerAvailable ¶
func (Device) DoubleFPConfig ¶
func (Device) DriverVersion ¶
func (Device) EndianLittle ¶
func (Device) ErrorCorrectionSupport ¶
func (Device) GlobalMemCacheSize ¶
func (Device) GlobalMemCacheType ¶
func (d Device) GlobalMemCacheType() (MemCacheType, error)
func (Device) GlobalMemCachelineSize ¶
func (Device) GlobalMemSize ¶
func (Device) HostUnifiedMemory ¶
func (Device) Image2DMaxHeight ¶
func (Device) Image2DMaxWidth ¶
func (Device) Image3DMaxDepth ¶
func (Device) Image3DMaxHeight ¶
func (Device) Image3DMaxWidth ¶
func (Device) ImageMaxArraySize ¶
func (Device) ImageMaxBufferSize ¶
func (Device) ImageSupport ¶
func (Device) LinkerAvailable ¶
func (Device) LocalMemSize ¶
func (Device) LocalMemType ¶
func (d Device) LocalMemType() (LocalMemType, error)
func (Device) MaxClockFrequency ¶
func (Device) MaxComputeUnits ¶
func (Device) MaxConstantArgs ¶
func (Device) MaxConstantBufferSize ¶
func (Device) MaxMemAllocSize ¶
func (Device) MaxParameterSize ¶
func (Device) MaxReadImageArgs ¶
func (Device) MaxSamplers ¶
func (Device) MaxWorkGroupSize ¶
func (Device) MaxWorkItemDimensions ¶
func (Device) MaxWorkItemSizes ¶
func (Device) MaxWriteImageArgs ¶
func (Device) MemBaseAddrAlign ¶
func (Device) NativeVectorWidthChar ¶
func (Device) NativeVectorWidthDouble ¶
func (Device) NativeVectorWidthFloat ¶
func (Device) NativeVectorWidthHalf ¶
func (Device) NativeVectorWidthInt ¶
func (Device) NativeVectorWidthLong ¶
func (Device) NativeVectorWidthShort ¶
func (Device) PreferredVectorWidthChar ¶
func (Device) PreferredVectorWidthDouble ¶
func (Device) PreferredVectorWidthFloat ¶
func (Device) PreferredVectorWidthHalf ¶
func (Device) PreferredVectorWidthInt ¶
func (Device) PreferredVectorWidthLong ¶
func (Device) PreferredVectorWidthShort ¶
func (Device) ProfilingTimerResolution ¶
func (Device) QueueProperties ¶
func (d Device) QueueProperties() (CommandQueueProperties, error)
func (Device) SingleFPConfig ¶
func (Device) Type ¶
func (d Device) Type() (DeviceType, error)
type DeviceType ¶
type DeviceType C.cl_device_type
func (DeviceType) String ¶
func (t DeviceType) String() string
type FPConfig ¶
type FPConfig struct {
// contains filtered or unexported fields
}
func (FPConfig) CorrectlyRoundedDivideSqrt ¶
func (FPConfig) RoundToInf ¶
func (FPConfig) RoundToNearest ¶
func (FPConfig) RoundToZero ¶
type LocalMemType ¶
type LocalMemType int
func (LocalMemType) Name ¶
func (t LocalMemType) Name() string
func (LocalMemType) String ¶
func (t LocalMemType) String() string
type MemCacheType ¶
type MemCacheType int
func (MemCacheType) Name ¶
func (t MemCacheType) Name() string
func (MemCacheType) String ¶
func (t MemCacheType) String() string
type MemoryFlags ¶
type MemoryFlags int
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func GetPlatforms ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.