Documentation ¶
Index ¶
- Constants
- func EnqueueMapBuffer(cq CommandQueue, buffer Mem, blocking_map Bool, map_flags uint64, ...) unsafe.Pointer
- func EnqueueMapImage(cq CommandQueue, image Mem, blocking_map Bool, map_flags MapFlags, ...) unsafe.Pointer
- func GetExtensionFunctionAddressForPlatform(platform PlatformID, func_name *int8) unsafe.Pointer
- func ReleaseCommandQueue(cq CommandQueue)
- func RetainCommandQueue(cq CommandQueue)
- func Str(str string) *uint8
- type AddressingMode
- type Bool
- type BufferCreateType
- type BuildStatus
- type ChannelOrder
- type ChannelType
- type CommandQueue
- type CommandQueueInfo
- type CommandQueueProperties
- type CommandType
- type Context
- type ContextInfo
- type ContextProperties
- type DeviceAffinityDomain
- type DeviceExecCapabilities
- type DeviceFpConfig
- type DeviceId
- type DeviceInfo
- type DeviceLocalMemType
- type DeviceMemCacheType
- type DevicePartitionProperty
- type DeviceType
- type ErrorCode
- func BuildProgram(prog Program, numDevices uint32, devices *DeviceId, options *uint8, ...) ErrorCode
- func CompileProgram(prog Program, numDevices uint32, devices *DeviceId, options *uint8, ...) ErrorCode
- func CreateKernelsInProgram(prog Program, numKernels uint32, kernels *Kernel, numKernelsRet *uint32) ErrorCode
- func CreateSubDevices(did DeviceId, properties *DevicePartitionProperty, numDevices uint32, ...) ErrorCode
- func EnqueueBarrierWithWaitList(cq CommandQueue, num_events_in_wait_list uint32, event_wait_list *Event, ...) ErrorCode
- func EnqueueCopyBuffer(cq CommandQueue, src_buffer Mem, dst_buffer Mem, src_offset uint64, ...) ErrorCode
- func EnqueueCopyBufferRect(cq CommandQueue, src_buffer Mem, dst_buffer Mem, src_origin *uint64, ...) ErrorCode
- func EnqueueCopyBufferToImage(cq CommandQueue, src_buffer Mem, dst_image Mem, src_offset uint64, ...) ErrorCode
- func EnqueueCopyImage(cq CommandQueue, src_image Mem, dst_image Mem, src_origin3 *uint64, ...) ErrorCode
- func EnqueueCopyImageToBuffer(cq CommandQueue, src_image Mem, dst_buffer Mem, src_origin3 *uint64, ...) ErrorCode
- func EnqueueFillBuffer(cq CommandQueue, buffer Mem, pattern unsafe.Pointer, pattern_size uint64, ...) ErrorCode
- func EnqueueFillImage(cq CommandQueue, image Mem, fill_color unsafe.Pointer, origin3 *uint64, ...) ErrorCode
- func EnqueueMarkerWithWaitList(cq CommandQueue, num_events_in_wait_list uint32, event_wait_list *Event, ...) ErrorCode
- func EnqueueMigrateMemObjects(cq CommandQueue, num_mem_objects uint32, mem_objects *Mem, ...) ErrorCode
- func EnqueueNDRangeKernel(cq CommandQueue, kernel Kernel, work_dim uint32, global_work_offset *uint64, ...) ErrorCode
- func EnqueueReadBuffer(cq CommandQueue, buffer Mem, blocking_read Bool, offset uint64, size uint64, ...) ErrorCode
- func EnqueueReadBufferRect(cq CommandQueue, buffer Mem, blocking_read Bool, buffer_offset *uint64, ...) ErrorCode
- func EnqueueReadImage(cq CommandQueue, image Mem, blocking_read Bool, origin3 *uint64, ...) ErrorCode
- func EnqueueTask(cq CommandQueue, kernel Kernel, num_events_in_wait_list uint32, ...) ErrorCode
- func EnqueueUnmapMemObject(cq CommandQueue, memobj Mem, mapped_ptr unsafe.Pointer, ...) ErrorCode
- func EnqueueWriteBuffer(cq CommandQueue, buffer Mem, blocking_write Bool, offset uint64, size uint64, ...) ErrorCode
- func EnqueueWriteBufferRect(cq CommandQueue, buffer Mem, blocking_write Bool, buffer_offset *uint64, ...) ErrorCode
- func EnqueueWriteImage(cq CommandQueue, image Mem, blocking_write Bool, origin3 *uint64, ...) ErrorCode
- func Finish(cq CommandQueue) ErrorCode
- func Flush(cq CommandQueue) ErrorCode
- func GetCommandQueueInfo(cq CommandQueue, paramName CommandQueueInfo, paramValueSize uint64, ...) ErrorCode
- func GetContextInfo(context *Context, paramName ContextInfo, paramValueSize uint64, ...) ErrorCode
- func GetDeviceIDs(pid PlatformID, deviceType DeviceType, numentries uint32, devices *DeviceId, ...) ErrorCode
- func GetDeviceInfo(did DeviceId, paramName DeviceInfo, paramValueSize uint64, data unsafe.Pointer, ...) ErrorCode
- func GetEventInfo(e Event, paramName uint32, paramValueSize uint64, paramValue unsafe.Pointer, ...) ErrorCode
- func GetEventProfilingInfo(e Event, paramName ProfilingInfo, paramValueSize uint64, ...) ErrorCode
- func GetImageInfo(mem Mem, paramName ImageInfo, paramValueSize uint64, paramValue unsafe.Pointer, ...) ErrorCode
- func GetKernelArgInfo(ker Kernel, argIndex uint32, kernelArgInfo KernelArgInfo, ...) ErrorCode
- func GetKernelInfo(ker Kernel, paramName KernelInfo, paramValueSize uint64, ...) ErrorCode
- func GetKernelWorkGroupInfo(ker Kernel, did DeviceId, paramName KernelWorkGroupInfo, paramValueSize uint64, ...) ErrorCode
- func GetMemObjectInfo(mem Mem, paramName MemInfo, paramValueSize uint64, paramValue unsafe.Pointer, ...) ErrorCode
- func GetPlatformIDs(numentries uint32, ids *PlatformID, numplatform *uint32) ErrorCode
- func GetPlatformInfo(pid PlatformID, paramName PlatformInfo, paramValueSize uint64, ...) ErrorCode
- func GetProgramBuildInfo(prog Program, device DeviceId, paramName ProgramBuildInfo, ...) ErrorCode
- func GetProgramInfo(prog Program, paramName ProgramInfo, paramValueSize uint64, ...) ErrorCode
- func GetSamplerInfo(sampler Sampler, paramName SamplerInfo, paramValueSize uint64, ...) ErrorCode
- func GetSupportedImageFormats(context Context, flags MemFlags, memObjectType MemObjectType, ...) ErrorCode
- func ReleaseContext(context *Context) ErrorCode
- func ReleaseDevice(did DeviceId) ErrorCode
- func ReleaseEvent(e Event) ErrorCode
- func ReleaseKernel(ker Kernel) ErrorCode
- func ReleaseMemObject(mem Mem) ErrorCode
- func ReleaseProgram(prog Program) ErrorCode
- func ReleaseSampler(sampler Sampler) ErrorCode
- func RetainContext(context *Context) ErrorCode
- func RetainDevice(did DeviceId) ErrorCode
- func RetainEvent(e Event) ErrorCode
- func RetainKernel(ker Kernel) ErrorCode
- func RetainMemObject(mem Mem) ErrorCode
- func RetainProgram(prog Program) ErrorCode
- func RetainSampler(sampler Sampler) ErrorCode
- func SetKernelArg(ker Kernel, argIndex uint32, argSize uint64, argValue unsafe.Pointer) ErrorCode
- func SetMemObjectDestructorCallback(mem Mem, destroyCb func(Mem, interface{}), userData interface{}) ErrorCode
- func SetUserEventStatus(e Event, execStatus int32) ErrorCode
- func UnloadPlatformCompiler(pid PlatformID) ErrorCode
- func WaitForEvents(numEvents uint32, events *Event) ErrorCode
- type Event
- type EventInfo
- type FilterMode
- type ImageDesc
- type ImageFormat
- type ImageInfo
- type Kernel
- type KernelArgAccessQualifier
- type KernelArgAddressQualifier
- type KernelArgInfo
- type KernelArgTypeQualifer
- type KernelInfo
- type KernelWorkGroupInfo
- type MapFlags
- type Mem
- type MemFlags
- type MemInfo
- type MemMigrationFlags
- type MemObjectType
- type PlatformID
- type PlatformInfo
- type ProfilingInfo
- type Program
- func CreateProgramWithBinary(context Context, numDevices uint32, devices *DeviceId, lengths *uint64, ...) Program
- func CreateProgramWithBuiltInKernels(context Context, numDevices uint32, devices *DeviceId, kernelNames *uint8, ...) Program
- func CreateProgramWithSource(context Context, count uint32, src **uint8, lengths *uint64, errcode *int32) Program
- func LinkProgram(context Context, numDevices uint32, devices *DeviceId, options *uint8, ...) Program
- type ProgramBinaryType
- type ProgramBuildInfo
- type ProgramInfo
- type Sampler
- type SamplerInfo
Constants ¶
const ( SUCCESS ErrorCode = C.CL_SUCCESS DEVICE_NOT_FOUND = C.CL_DEVICE_NOT_FOUND DEVICE_NOT_AVAILABLE = C.CL_DEVICE_NOT_AVAILABLE COMPILER_NOT_AVAILABLE = C.CL_COMPILER_NOT_AVAILABLE MEM_OBJECT_ALLOCATION_FAILURE = C.CL_MEM_OBJECT_ALLOCATION_FAILURE OUT_OF_RESOURCES = C.CL_OUT_OF_RESOURCES OUT_OF_HOST_MEMORY = C.CL_OUT_OF_HOST_MEMORY PROFILING_INFO_NOT_AVAILABLE = C.CL_PROFILING_INFO_NOT_AVAILABLE MEM_COPY_OVERLAP = C.CL_MEM_COPY_OVERLAP IMAGE_FORMAT_MISMATCH = C.CL_IMAGE_FORMAT_MISMATCH IMAGE_FORMAT_NOT_SUPPORTED = C.CL_IMAGE_FORMAT_NOT_SUPPORTED BUILD_PROGRAM_FAILURE = C.CL_BUILD_PROGRAM_FAILURE MAP_FAILURE = C.CL_MAP_FAILURE MISALIGNED_SUB_BUFFER_OFFSET = C.CL_MISALIGNED_SUB_BUFFER_OFFSET EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST = C.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST COMPILE_PROGRAM_FAILURE = C.CL_COMPILE_PROGRAM_FAILURE LINKER_NOT_AVAILABLE = C.CL_LINKER_NOT_AVAILABLE LINK_PROGRAM_FAILURE = C.CL_LINK_PROGRAM_FAILURE DEVICE_PARTITION_FAILED = C.CL_DEVICE_PARTITION_FAILED KERNEL_ARG_INFO_NOT_AVAILABLE = C.CL_KERNEL_ARG_INFO_NOT_AVAILABLE INVALID_VALUE = C.CL_INVALID_VALUE INVALID_DEVICE_TYPE = C.CL_INVALID_DEVICE_TYPE INVALID_PLATFORM = C.CL_INVALID_PLATFORM INVALID_DEVICE = C.CL_INVALID_DEVICE INVALID_CONTEXT = C.CL_INVALID_CONTEXT INVALID_QUEUE_PROPERTIES = C.CL_INVALID_QUEUE_PROPERTIES INVALID_COMMAND_QUEUE = C.CL_INVALID_COMMAND_QUEUE INVALID_HOST_PTR = C.CL_INVALID_HOST_PTR INVALID_MEM_OBJECT = C.CL_INVALID_MEM_OBJECT INVALID_IMAGE_FORMAT_DESCRIPTOR = C.CL_INVALID_IMAGE_FORMAT_DESCRIPTOR INVALID_IMAGE_SIZE = C.CL_INVALID_IMAGE_SIZE INVALID_SAMPLER = C.CL_INVALID_SAMPLER INVALID_BINARY = C.CL_INVALID_BINARY INVALID_BUILD_OPTIONS = C.CL_INVALID_BUILD_OPTIONS INVALID_PROGRAM = C.CL_INVALID_PROGRAM INVALID_PROGRAM_EXECUTABLE = C.CL_INVALID_PROGRAM_EXECUTABLE INVALID_KERNEL_NAME = C.CL_INVALID_KERNEL_NAME INVALID_KERNEL_DEFINITION = C.CL_INVALID_KERNEL_DEFINITION INVALID_KERNEL = C.CL_INVALID_KERNEL INVALID_ARG_INDEX = C.CL_INVALID_ARG_INDEX INVALID_ARG_VALUE = C.CL_INVALID_ARG_VALUE INVALID_ARG_SIZE = C.CL_INVALID_ARG_SIZE INVALID_KERNEL_ARGS = C.CL_INVALID_KERNEL_ARGS INVALID_WORK_DIMENSION = C.CL_INVALID_WORK_DIMENSION INVALID_WORK_GROUP_SIZE = C.CL_INVALID_WORK_GROUP_SIZE INVALID_WORK_ITEM_SIZE = C.CL_INVALID_WORK_ITEM_SIZE INVALID_GLOBAL_OFFSET = C.CL_INVALID_GLOBAL_OFFSET INVALID_EVENT_WAIT_LIST = C.CL_INVALID_EVENT_WAIT_LIST INVALID_EVENT = C.CL_INVALID_EVENT INVALID_OPERATION = C.CL_INVALID_OPERATION INVALID_GL_OBJECT = C.CL_INVALID_GL_OBJECT INVALID_BUFFER_SIZE = C.CL_INVALID_BUFFER_SIZE INVALID_MIP_LEVEL = C.CL_INVALID_MIP_LEVEL INVALID_GLOBAL_WORK_SIZE = C.CL_INVALID_GLOBAL_WORK_SIZE INVALID_PROPERTY = C.CL_INVALID_PROPERTY INVALID_IMAGE_DESCRIPTOR = C.CL_INVALID_IMAGE_DESCRIPTOR INVALID_COMPILER_OPTIONS = C.CL_INVALID_COMPILER_OPTIONS INVALID_LINKER_OPTIONS = C.CL_INVALID_LINKER_OPTIONS INVALID_DEVICE_PARTITION_COUNT = C.CL_INVALID_DEVICE_PARTITION_COUNT )
const ( VERSION_1_0 = C.CL_VERSION_1_0 VERSION_1_1 = C.CL_VERSION_1_1 VERSION_1_2 = C.CL_VERSION_1_2 )
const ( FALSE Bool = C.CL_FALSE TRUE = C.CL_TRUE BLOCKING = C.CL_BLOCKING NON_BLOCKING = C.CL_NON_BLOCKING )
const ( PLATFORM_PROFILE PlatformInfo = C.CL_PLATFORM_PROFILE PLATFORM_VERSION = C.CL_PLATFORM_VERSION PLATFORM_NAME = C.CL_PLATFORM_NAME PLATFORM_VENDOR = C.CL_PLATFORM_VENDOR PLATFORM_EXTENSIONS = C.CL_PLATFORM_EXTENSIONS )
const ( DEVICE_TYPE_DEFAULT DeviceType = C.CL_DEVICE_TYPE_DEFAULT DEVICE_TYPE_CPU = C.CL_DEVICE_TYPE_CPU DEVICE_TYPE_GPU = C.CL_DEVICE_TYPE_GPU DEVICE_TYPE_ACCELERATOR = C.CL_DEVICE_TYPE_ACCELERATOR DEVICE_TYPE_CUSTOM = C.CL_DEVICE_TYPE_CUSTOM DEVICE_TYPE_ALL = C.CL_DEVICE_TYPE_ALL )
const ( DEVICE_TYPE DeviceInfo = C.CL_DEVICE_TYPE DEVICE_VENDOR_ID = C.CL_DEVICE_VENDOR_ID DEVICE_MAX_COMPUTE_UNITS = C.CL_DEVICE_MAX_COMPUTE_UNITS DEVICE_MAX_WORK_ITEM_DIMENSIONS = C.CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS DEVICE_MAX_WORK_GROUP_SIZE = C.CL_DEVICE_MAX_WORK_GROUP_SIZE DEVICE_MAX_WORK_ITEM_SIZES = C.CL_DEVICE_MAX_WORK_ITEM_SIZES DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT DEVICE_PREFERRED_VECTOR_WIDTH_INT = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT DEVICE_PREFERRED_VECTOR_WIDTH_LONG = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE DEVICE_MAX_CLOCK_FREQUENCY = C.CL_DEVICE_MAX_CLOCK_FREQUENCY DEVICE_ADDRESS_BITS = C.CL_DEVICE_ADDRESS_BITS DEVICE_MAX_READ_IMAGE_ARGS = C.CL_DEVICE_MAX_READ_IMAGE_ARGS DEVICE_MAX_WRITE_IMAGE_ARGS = C.CL_DEVICE_MAX_WRITE_IMAGE_ARGS DEVICE_MAX_MEM_ALLOC_SIZE = C.CL_DEVICE_MAX_MEM_ALLOC_SIZE DEVICE_IMAGE2D_MAX_WIDTH = C.CL_DEVICE_IMAGE2D_MAX_WIDTH DEVICE_IMAGE2D_MAX_HEIGHT = C.CL_DEVICE_IMAGE2D_MAX_HEIGHT DEVICE_IMAGE3D_MAX_WIDTH = C.CL_DEVICE_IMAGE3D_MAX_WIDTH DEVICE_IMAGE3D_MAX_HEIGHT = C.CL_DEVICE_IMAGE3D_MAX_HEIGHT DEVICE_IMAGE3D_MAX_DEPTH = C.CL_DEVICE_IMAGE3D_MAX_DEPTH DEVICE_IMAGE_SUPPORT = C.CL_DEVICE_IMAGE_SUPPORT DEVICE_MAX_PARAMETER_SIZE = C.CL_DEVICE_MAX_PARAMETER_SIZE DEVICE_MAX_SAMPLERS = C.CL_DEVICE_MAX_SAMPLERS DEVICE_MEM_BASE_ADDR_ALIGN = C.CL_DEVICE_MEM_BASE_ADDR_ALIGN DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = C.CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE DEVICE_SINGLE_FP_CONFIG = C.CL_DEVICE_SINGLE_FP_CONFIG DEVICE_GLOBAL_MEM_CACHE_TYPE = C.CL_DEVICE_GLOBAL_MEM_CACHE_TYPE DEVICE_GLOBAL_MEM_CACHELINE_SIZE = C.CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE DEVICE_GLOBAL_MEM_CACHE_SIZE = C.CL_DEVICE_GLOBAL_MEM_CACHE_SIZE DEVICE_GLOBAL_MEM_SIZE = C.CL_DEVICE_GLOBAL_MEM_SIZE DEVICE_MAX_CONSTANT_BUFFER_SIZE = C.CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE DEVICE_MAX_CONSTANT_ARGS = C.CL_DEVICE_MAX_CONSTANT_ARGS DEVICE_LOCAL_MEM_TYPE = C.CL_DEVICE_LOCAL_MEM_TYPE DEVICE_LOCAL_MEM_SIZE = C.CL_DEVICE_LOCAL_MEM_SIZE DEVICE_ERROR_CORRECTION_SUPPORT = C.CL_DEVICE_ERROR_CORRECTION_SUPPORT DEVICE_PROFILING_TIMER_RESOLUTION = C.CL_DEVICE_PROFILING_TIMER_RESOLUTION DEVICE_ENDIAN_LITTLE = C.CL_DEVICE_ENDIAN_LITTLE DEVICE_AVAILABLE = C.CL_DEVICE_AVAILABLE DEVICE_COMPILER_AVAILABLE = C.CL_DEVICE_COMPILER_AVAILABLE DEVICE_EXECUTION_CAPABILITIES = C.CL_DEVICE_EXECUTION_CAPABILITIES DEVICE_QUEUE_PROPERTIES = C.CL_DEVICE_QUEUE_PROPERTIES DEVICE_NAME = C.CL_DEVICE_NAME DEVICE_VENDOR = C.CL_DEVICE_VENDOR DRIVER_VERSION = C.CL_DRIVER_VERSION DEVICE_PROFILE = C.CL_DEVICE_PROFILE DEVICE_VERSION = C.CL_DEVICE_VERSION DEVICE_EXTENSIONS = C.CL_DEVICE_EXTENSIONS DEVICE_PLATFORM = C.CL_DEVICE_PLATFORM DEVICE_DOUBLE_FP_CONFIG = C.CL_DEVICE_DOUBLE_FP_CONFIG )
const ( DEVICE_PREFERRED_VECTOR_WIDTH_HALF = C.CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF DEVICE_HOST_UNIFIED_MEMORY = C.CL_DEVICE_HOST_UNIFIED_MEMORY DEVICE_NATIVE_VECTOR_WIDTH_CHAR = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR DEVICE_NATIVE_VECTOR_WIDTH_SHORT = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT DEVICE_NATIVE_VECTOR_WIDTH_INT = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_INT DEVICE_NATIVE_VECTOR_WIDTH_LONG = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG DEVICE_NATIVE_VECTOR_WIDTH_FLOAT = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE DEVICE_NATIVE_VECTOR_WIDTH_HALF = C.CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF DEVICE_OPENCL_C_VERSION = C.CL_DEVICE_OPENCL_C_VERSION DEVICE_LINKER_AVAILABLE = C.CL_DEVICE_LINKER_AVAILABLE DEVICE_BUILT_IN_KERNELS = C.CL_DEVICE_BUILT_IN_KERNELS DEVICE_IMAGE_MAX_BUFFER_SIZE = C.CL_DEVICE_IMAGE_MAX_BUFFER_SIZE DEVICE_IMAGE_MAX_ARRAY_SIZE = C.CL_DEVICE_IMAGE_MAX_ARRAY_SIZE DEVICE_PARENT_DEVICE = C.CL_DEVICE_PARENT_DEVICE DEVICE_PARTITION_MAX_SUB_DEVICES = C.CL_DEVICE_PARTITION_MAX_SUB_DEVICES DEVICE_PARTITION_PROPERTIES = C.CL_DEVICE_PARTITION_PROPERTIES DEVICE_PARTITION_AFFINITY_DOMAIN = C.CL_DEVICE_PARTITION_AFFINITY_DOMAIN DEVICE_PARTITION_TYPE = C.CL_DEVICE_PARTITION_TYPE DEVICE_REFERENCE_COUNT = C.CL_DEVICE_REFERENCE_COUNT DEVICE_PREFERRED_INTEROP_USER_SYNC = C.CL_DEVICE_PREFERRED_INTEROP_USER_SYNC DEVICE_PRINTF_BUFFER_SIZE = C.CL_DEVICE_PRINTF_BUFFER_SIZE DEVICE_IMAGE_PITCH_ALIGNMENT = C.CL_DEVICE_IMAGE_PITCH_ALIGNMENT DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT = C.CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT )
const ( FP_DENORM DeviceFpConfig = C.CL_FP_DENORM FP_INF_NAN = C.CL_FP_INF_NAN FP_ROUND_TO_NEAREST = C.CL_FP_ROUND_TO_NEAREST FP_ROUND_TO_ZERO = C.CL_FP_ROUND_TO_ZERO FP_ROUND_TO_INF = C.CL_FP_ROUND_TO_INF FP_FMA = C.CL_FP_FMA FP_SOFT_FLOAT = C.CL_FP_SOFT_FLOAT FP_CORRECTLY_ROUNDED_DIVIDE_SQRT = C.CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT )
const ( NONE DeviceMemCacheType = C.CL_NONE READ_ONLY_CACHE = C.CL_READ_ONLY_CACHE READ_WRITE_CACHE = C.CL_READ_WRITE_CACHE )
const ( CONTEXT_REFERENCE_COUNT ContextInfo = C.CL_CONTEXT_REFERENCE_COUNT CONTEXT_DEVICES = C.CL_CONTEXT_DEVICES CONTEXT_PROPERTIES = C.CL_CONTEXT_PROPERTIES CONTEXT_NUM_DEVICES = C.CL_CONTEXT_NUM_DEVICES )
const ( DEVICE_PARTITION_EQUALLY DevicePartitionProperty = C.CL_DEVICE_PARTITION_EQUALLY DEVICE_PARTITION_BY_COUNTS = C.CL_DEVICE_PARTITION_BY_COUNTS DEVICE_PARTITION_BY_COUNTS_LIST_END = C.CL_DEVICE_PARTITION_BY_COUNTS_LIST_END DEVICE_PARTITION_BY_AFFINITY_DOMAIN = C.CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN )
const ( DEVICE_AFFINITY_DOMAIN_NUMA DeviceAffinityDomain = C.CL_DEVICE_AFFINITY_DOMAIN_NUMA DEVICE_AFFINITY_DOMAIN_L4_CACHE = C.CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE DEVICE_AFFINITY_DOMAIN_L3_CACHE = C.CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE DEVICE_AFFINITY_DOMAIN_L2_CACHE = C.CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE DEVICE_AFFINITY_DOMAIN_L1_CACHE = C.CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE = C.CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE )
const ( QUEUE_CONTEXT CommandQueueInfo = C.CL_QUEUE_CONTEXT QUEUE_DEVICE = C.CL_QUEUE_DEVICE QUEUE_REFERENCE_COUNT = C.CL_QUEUE_REFERENCE_COUNT QUEUE_PROPERTIES = C.CL_QUEUE_PROPERTIES )
const ( MEM_READ_WRITE MemFlags = C.CL_MEM_READ_WRITE MEM_WRITE_ONLY = C.CL_MEM_WRITE_ONLY MEM_READ_ONLY = C.CL_MEM_READ_ONLY MEM_USE_HOST_PTR = C.CL_MEM_USE_HOST_PTR MEM_ALLOC_HOST_PTR = C.CL_MEM_ALLOC_HOST_PTR MEM_COPY_HOST_PTR = C.CL_MEM_COPY_HOST_PTR // reserved (1 << 6) MEM_HOST_WRITE_ONLY = C.CL_MEM_HOST_WRITE_ONLY MEM_HOST_READ_ONLY = C.CL_MEM_HOST_READ_ONLY MEM_HOST_NO_ACCESS = C.CL_MEM_HOST_NO_ACCESS )
const ( R ChannelOrder = C.CL_R A = C.CL_A RG = C.CL_RG RA = C.CL_RA RGB = C.CL_RGB RGBA = C.CL_RGBA BGRA = C.CL_BGRA ARGB = C.CL_ARGB INTENSITY = C.CL_INTENSITY LUMINANCE = C.CL_LUMINANCE Rx = C.CL_Rx RGx = C.CL_RGx RGBx = C.CL_RGBx DEPTH = C.CL_DEPTH DEPTH_STENCIL = C.CL_DEPTH_STENCIL )
const ( SNORM_INT8 ChannelType = C.CL_SNORM_INT8 SNORM_INT16 = C.CL_SNORM_INT16 UNORM_INT8 = C.CL_UNORM_INT8 UNORM_INT16 = C.CL_UNORM_INT16 UNORM_SHORT_565 = C.CL_UNORM_SHORT_565 UNORM_SHORT_555 = C.CL_UNORM_SHORT_555 UNORM_INT_101010 = C.CL_UNORM_INT_101010 SIGNED_INT8 = C.CL_SIGNED_INT8 SIGNED_INT16 = C.CL_SIGNED_INT16 SIGNED_INT32 = C.CL_SIGNED_INT32 UNSIGNED_INT8 = C.CL_UNSIGNED_INT8 UNSIGNED_INT16 = C.CL_UNSIGNED_INT16 UNSIGNED_INT32 = C.CL_UNSIGNED_INT32 HALF_FLOAT = C.CL_HALF_FLOAT FLOAT = C.CL_FLOAT UNORM_INT24 = C.CL_UNORM_INT24 )
const ( MEM_OBJECT_BUFFER MemObjectType = C.CL_MEM_OBJECT_BUFFER MEM_OBJECT_IMAGE2D = C.CL_MEM_OBJECT_IMAGE2D MEM_OBJECT_IMAGE3D = C.CL_MEM_OBJECT_IMAGE3D MEM_OBJECT_IMAGE2D_ARRAY = C.CL_MEM_OBJECT_IMAGE2D_ARRAY MEM_OBJECT_IMAGE1D = C.CL_MEM_OBJECT_IMAGE1D MEM_OBJECT_IMAGE1D_ARRAY = C.CL_MEM_OBJECT_IMAGE1D_ARRAY MEM_OBJECT_IMAGE1D_BUFFER = C.CL_MEM_OBJECT_IMAGE1D_BUFFER )
const ( MEM_TYPE MemInfo = C.CL_MEM_TYPE MEM_FLAGS = C.CL_MEM_FLAGS MEM_SIZE = C.CL_MEM_SIZE MEM_HOST_PTR = C.CL_MEM_HOST_PTR MEM_MAP_COUNT = C.CL_MEM_MAP_COUNT MEM_REFERENCE_COUNT = C.CL_MEM_REFERENCE_COUNT MEM_CONTEXT = C.CL_MEM_CONTEXT MEM_ASSOCIATED_MEMOBJECT = C.CL_MEM_ASSOCIATED_MEMOBJECT MEM_OFFSET = C.CL_MEM_OFFSET )
const ( IMAGE_FORMAT ImageInfo = C.CL_IMAGE_FORMAT IMAGE_ELEMENT_SIZE = C.CL_IMAGE_ELEMENT_SIZE IMAGE_ROW_PITCH = C.CL_IMAGE_ROW_PITCH IMAGE_SLICE_PITCH = C.CL_IMAGE_SLICE_PITCH IMAGE_WIDTH = C.CL_IMAGE_WIDTH IMAGE_HEIGHT = C.CL_IMAGE_HEIGHT IMAGE_DEPTH = C.CL_IMAGE_DEPTH IMAGE_ARRAY_SIZE = C.CL_IMAGE_ARRAY_SIZE IMAGE_BUFFER = C.CL_IMAGE_BUFFER IMAGE_NUM_MIP_LEVELS = C.CL_IMAGE_NUM_MIP_LEVELS IMAGE_NUM_SAMPLES = C.CL_IMAGE_NUM_SAMPLES )
const ( ADDRESS_NONE AddressingMode = C.CL_ADDRESS_NONE ADDRESS_CLAMP_TO_EDGE = C.CL_ADDRESS_CLAMP_TO_EDGE ADDRESS_CLAMP = C.CL_ADDRESS_CLAMP ADDRESS_REPEAT = C.CL_ADDRESS_REPEAT ADDRESS_MIRRORED_REPEAT = C.CL_ADDRESS_MIRRORED_REPEAT )
const ( SAMPLER_REFERENCE_COUNT SamplerInfo = C.CL_SAMPLER_REFERENCE_COUNT SAMPLER_CONTEXT = C.CL_SAMPLER_CONTEXT SAMPLER_NORMALIZED_COORDS = C.CL_SAMPLER_NORMALIZED_COORDS SAMPLER_ADDRESSING_MODE = C.CL_SAMPLER_ADDRESSING_MODE SAMPLER_FILTER_MODE = C.CL_SAMPLER_FILTER_MODE )
const ( MAP_READ MapFlags = C.CL_MAP_READ MAP_WRITE = C.CL_MAP_WRITE MAP_WRITE_INVALIDATE_REGION = C.CL_MAP_WRITE_INVALIDATE_REGION )
const ( PROGRAM_REFERENCE_COUNT ProgramInfo = C.CL_PROGRAM_REFERENCE_COUNT PROGRAM_CONTEXT = C.CL_PROGRAM_CONTEXT PROGRAM_NUM_DEVICES = C.CL_PROGRAM_NUM_DEVICES PROGRAM_DEVICES = C.CL_PROGRAM_DEVICES PROGRAM_SOURCE = C.CL_PROGRAM_SOURCE PROGRAM_BINARY_SIZES = C.CL_PROGRAM_BINARY_SIZES PROGRAM_BINARIES = C.CL_PROGRAM_BINARIES PROGRAM_NUM_KERNELS = C.CL_PROGRAM_NUM_KERNELS PROGRAM_KERNEL_NAMES = C.CL_PROGRAM_KERNEL_NAMES )
const ( PROGRAM_BUILD_STATUS ProgramBuildInfo = C.CL_PROGRAM_BUILD_STATUS PROGRAM_BUILD_OPTIONS = C.CL_PROGRAM_BUILD_OPTIONS PROGRAM_BUILD_LOG = C.CL_PROGRAM_BUILD_LOG PROGRAM_BINARY_TYPE = C.CL_PROGRAM_BINARY_TYPE )
const ( PROGRAM_BINARY_TYPE_NONE ProgramBinaryType = C.CL_PROGRAM_BINARY_TYPE_NONE PROGRAM_BINARY_TYPE_COMPILED_OBJECT = C.CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT PROGRAM_BINARY_TYPE_LIBRARY = C.CL_PROGRAM_BINARY_TYPE_LIBRARY PROGRAM_BINARY_TYPE_EXECUTABLE = C.CL_PROGRAM_BINARY_TYPE_EXECUTABLE )
const ( BUILD_SUCCESS BuildStatus = C.CL_BUILD_SUCCESS BUILD_NONE = C.CL_BUILD_NONE BUILD_ERROR = C.CL_BUILD_ERROR BUILD_IN_PROGRESS = C.CL_BUILD_IN_PROGRESS )
const ( KERNEL_FUNCTION_NAME KernelInfo = C.CL_KERNEL_FUNCTION_NAME KERNEL_NUM_ARGS = C.CL_KERNEL_NUM_ARGS KERNEL_REFERENCE_COUNT = C.CL_KERNEL_REFERENCE_COUNT KERNEL_CONTEXT = C.CL_KERNEL_CONTEXT KERNEL_PROGRAM = C.CL_KERNEL_PROGRAM KERNEL_ATTRIBUTES = C.CL_KERNEL_ATTRIBUTES )
const ( KERNEL_ARG_ADDRESS_QUALIFIER KernelArgInfo = C.CL_KERNEL_ARG_ADDRESS_QUALIFIER KERNEL_ARG_ACCESS_QUALIFIER = C.CL_KERNEL_ARG_ACCESS_QUALIFIER KERNEL_ARG_TYPE_NAME = C.CL_KERNEL_ARG_TYPE_NAME KERNEL_ARG_TYPE_QUALIFIER = C.CL_KERNEL_ARG_TYPE_QUALIFIER KERNEL_ARG_NAME = C.CL_KERNEL_ARG_NAME )
const ( KERNEL_ARG_ADDRESS_GLOBAL KernelArgAddressQualifier = C.CL_KERNEL_ARG_ADDRESS_GLOBAL KERNEL_ARG_ADDRESS_LOCAL = C.CL_KERNEL_ARG_ADDRESS_LOCAL KERNEL_ARG_ADDRESS_CONSTANT = C.CL_KERNEL_ARG_ADDRESS_CONSTANT KERNEL_ARG_ADDRESS_PRIVATE = C.CL_KERNEL_ARG_ADDRESS_PRIVATE )
const ( KERNEL_ARG_ACCESS_READ_ONLY KernelArgAccessQualifier = C.CL_KERNEL_ARG_ACCESS_READ_ONLY KERNEL_ARG_ACCESS_WRITE_ONLY = C.CL_KERNEL_ARG_ACCESS_WRITE_ONLY KERNEL_ARG_ACCESS_READ_WRITE = C.CL_KERNEL_ARG_ACCESS_READ_WRITE KERNEL_ARG_ACCESS_NONE = C.CL_KERNEL_ARG_ACCESS_NONE )
const ( KERNEL_ARG_TYPE_NONE KernelArgTypeQualifer = C.CL_KERNEL_ARG_TYPE_NONE KERNEL_ARG_TYPE_CONST = C.CL_KERNEL_ARG_TYPE_CONST KERNEL_ARG_TYPE_RESTRICT = C.CL_KERNEL_ARG_TYPE_RESTRICT KERNEL_ARG_TYPE_VOLATILE = C.CL_KERNEL_ARG_TYPE_VOLATILE )
const ( KERNEL_WORK_GROUP_SIZE KernelWorkGroupInfo = C.CL_KERNEL_WORK_GROUP_SIZE KERNEL_COMPILE_WORK_GROUP_SIZE = C.CL_KERNEL_COMPILE_WORK_GROUP_SIZE KERNEL_LOCAL_MEM_SIZE = C.CL_KERNEL_LOCAL_MEM_SIZE KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE = C.CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE KERNEL_PRIVATE_MEM_SIZE = C.CL_KERNEL_PRIVATE_MEM_SIZE KERNEL_GLOBAL_WORK_SIZE = C.CL_KERNEL_GLOBAL_WORK_SIZE )
const ( EVENT_COMMAND_QUEUE EventInfo = C.CL_EVENT_COMMAND_QUEUE EVENT_COMMAND_TYPE = C.CL_EVENT_COMMAND_TYPE EVENT_REFERENCE_COUNT = C.CL_EVENT_REFERENCE_COUNT EVENT_COMMAND_EXECUTION_STATUS = C.CL_EVENT_COMMAND_EXECUTION_STATUS EVENT_CONTEXT = C.CL_EVENT_CONTEXT )
const ( COMMAND_NDRANGE_KERNEL CommandType = C.CL_COMMAND_NDRANGE_KERNEL COMMAND_TASK = C.CL_COMMAND_TASK COMMAND_NATIVE_KERNEL = C.CL_COMMAND_NATIVE_KERNEL COMMAND_READ_BUFFER = C.CL_COMMAND_READ_BUFFER COMMAND_WRITE_BUFFER = C.CL_COMMAND_WRITE_BUFFER COMMAND_COPY_BUFFER = C.CL_COMMAND_COPY_BUFFER COMMAND_READ_IMAGE = C.CL_COMMAND_READ_IMAGE COMMAND_WRITE_IMAGE = C.CL_COMMAND_WRITE_IMAGE COMMAND_COPY_IMAGE = C.CL_COMMAND_COPY_IMAGE COMMAND_COPY_IMAGE_TO_BUFFER = C.CL_COMMAND_COPY_IMAGE_TO_BUFFER COMMAND_COPY_BUFFER_TO_IMAGE = C.CL_COMMAND_COPY_BUFFER_TO_IMAGE COMMAND_MAP_BUFFER = C.CL_COMMAND_MAP_BUFFER COMMAND_MAP_IMAGE = C.CL_COMMAND_MAP_IMAGE COMMAND_UNMAP_MEM_OBJECT = C.CL_COMMAND_UNMAP_MEM_OBJECT COMMAND_MARKER = C.CL_COMMAND_MARKER COMMAND_ACQUIRE_GL_OBJECTS = C.CL_COMMAND_ACQUIRE_GL_OBJECTS COMMAND_RELEASE_GL_OBJECTS = C.CL_COMMAND_RELEASE_GL_OBJECTS COMMAND_READ_BUFFER_RECT = C.CL_COMMAND_READ_BUFFER_RECT COMMAND_WRITE_BUFFER_RECT = C.CL_COMMAND_WRITE_BUFFER_RECT COMMAND_COPY_BUFFER_RECT = C.CL_COMMAND_COPY_BUFFER_RECT COMMAND_USER = C.CL_COMMAND_USER COMMAND_BARRIER = C.CL_COMMAND_BARRIER COMMAND_MIGRATE_MEM_OBJECTS = C.CL_COMMAND_MIGRATE_MEM_OBJECTS COMMAND_FILL_BUFFER = C.CL_COMMAND_FILL_BUFFER COMMAND_FILL_IMAGE = C.CL_COMMAND_FILL_IMAGE )
const ( COMPLETE = C.CL_COMPLETE RUNNING = C.CL_RUNNING SUBMITTED = C.CL_SUBMITTED QUEUED = C.CL_QUEUED )
const ( PROFILING_COMMAND_QUEUED ProfilingInfo = C.CL_PROFILING_COMMAND_QUEUED PROFILING_COMMAND_SUBMIT = C.CL_PROFILING_COMMAND_SUBMIT PROFILING_COMMAND_START = C.CL_PROFILING_COMMAND_START PROFILING_COMMAND_END = C.CL_PROFILING_COMMAND_END )
Variables ¶
This section is empty.
Functions ¶
func EnqueueMapBuffer ¶
func EnqueueMapBuffer(cq CommandQueue, buffer Mem, blocking_map Bool, map_flags uint64, offset uint64, size uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event, errcode_ret *int32) unsafe.Pointer
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueMapBuffer.html
func EnqueueMapImage ¶
func EnqueueMapImage(cq CommandQueue, image Mem, blocking_map Bool, map_flags MapFlags, origin3 *uint64, region3 *uint64, image_row_pitch *uint64, image_slice_pitch *uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event, errcode_ret *int32) unsafe.Pointer
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueMapImage.html
func GetExtensionFunctionAddressForPlatform ¶
func GetExtensionFunctionAddressForPlatform(platform PlatformID, func_name *int8) unsafe.Pointer
func ReleaseCommandQueue ¶
func ReleaseCommandQueue(cq CommandQueue)
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseCommandQueue.html
func RetainCommandQueue ¶
func RetainCommandQueue(cq CommandQueue)
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainCommandQueue.html
Types ¶
type AddressingMode ¶
type AddressingMode uint32
type BufferCreateType ¶
type BufferCreateType uint32
const (
BUFFER_CREATE_TYPE_REGION BufferCreateType = C.CL_BUFFER_CREATE_TYPE_REGION
)
type BuildStatus ¶
type BuildStatus uint32
type ChannelOrder ¶
type ChannelOrder uint32
type ChannelType ¶
type ChannelType uint32
type CommandQueue ¶
type CommandQueue C.cl_command_queue
func CreateCommandQueue ¶
func CreateCommandQueue(context Context, did DeviceId, properties CommandQueueProperties, errcode *int32) CommandQueue
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateCommandQueue.html
type CommandQueueInfo ¶
type CommandQueueInfo uint32
type CommandQueueProperties ¶
type CommandQueueProperties uint32
const ( QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE CommandQueueProperties = C.CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE QUEUE_PROFILING_ENABLE = C.CL_QUEUE_PROFILING_ENABLE )
type CommandType ¶
type CommandType uint32
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func CreateContext ¶
func CreateContext(properties *ContextProperties, numDevices uint32, devices *DeviceId, errcb func(string, unsafe.Pointer, uint64, unsafe.Pointer), userdata interface{}, errcode *int32) *Context
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateContext.html
func CreateContextFromType ¶
func CreateContextFromType(properties *ContextProperties, deviceType DeviceType, errcb func(string, unsafe.Pointer, uint64, unsafe.Pointer), userdata interface{}, errcode *int32) *Context
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateContextFromType.html
type ContextInfo ¶
type ContextInfo uint32
type ContextProperties ¶
type ContextProperties uint32
const ( CONTEXT_PLATFORM ContextProperties = C.CL_CONTEXT_PLATFORM CONTEXT_INTEROP_USER_SYNC = C.CL_CONTEXT_INTEROP_USER_SYNC )
type DeviceAffinityDomain ¶
type DeviceAffinityDomain uint32
type DeviceExecCapabilities ¶
type DeviceExecCapabilities uint32
const ( EXEC_KERNEL DeviceExecCapabilities = C.CL_EXEC_KERNEL EXEC_NATIVE_KERNEL = C.CL_EXEC_NATIVE_KERNEL )
type DeviceFpConfig ¶
type DeviceFpConfig uint32
type DeviceId ¶
type DeviceId C.cl_device_id
type DeviceInfo ¶
type DeviceInfo uint32
type DeviceLocalMemType ¶
type DeviceLocalMemType uint32
const ( LOCAL DeviceLocalMemType = C.CL_LOCAL GLOBAL = C.CL_GLOBAL )
type DeviceMemCacheType ¶
type DeviceMemCacheType uint32
type DevicePartitionProperty ¶
type DevicePartitionProperty uint32
type DeviceType ¶
type DeviceType uint32
type ErrorCode ¶
type ErrorCode int32
func BuildProgram ¶
func BuildProgram(prog Program, numDevices uint32, devices *DeviceId, options *uint8, buildcomplete func(Program, interface{}), userdata interface{}) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clBuildProgram.html
func CompileProgram ¶
func CompileProgram(prog Program, numDevices uint32, devices *DeviceId, options *uint8, numInputHeaders uint32, inputHeaders *Program, headerIncludeNames **uint8, notify func(Program, interface{}), userData interface{}) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clclCompileProgram.html
func CreateKernelsInProgram ¶
func CreateKernelsInProgram(prog Program, numKernels uint32, kernels *Kernel, numKernelsRet *uint32) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateKernelsInProgram.html
func CreateSubDevices ¶
func CreateSubDevices(did DeviceId, properties *DevicePartitionProperty, numDevices uint32, devices *DeviceId, numDevicesRet *uint32) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSubDevices.html
func EnqueueBarrierWithWaitList ¶
func EnqueueBarrierWithWaitList(cq CommandQueue, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueBarrierWithWaitList.html
func EnqueueCopyBuffer ¶
func EnqueueCopyBuffer(cq CommandQueue, src_buffer Mem, dst_buffer Mem, src_offset uint64, dst_offset uint64, size uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueCopyBuffer.html
func EnqueueCopyBufferRect ¶
func EnqueueCopyBufferRect(cq CommandQueue, src_buffer Mem, dst_buffer Mem, src_origin *uint64, dst_origin *uint64, region *uint64, src_row_pitch uint64, src_slice_pitch uint64, dst_row_pitch uint64, dst_slice_pitch uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueCopyBufferRect.html
func EnqueueCopyBufferToImage ¶
func EnqueueCopyBufferToImage(cq CommandQueue, src_buffer Mem, dst_image Mem, src_offset uint64, dst_origin3 *uint64, region3 *uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueCopyBufferToImage.html
func EnqueueCopyImage ¶
func EnqueueCopyImage(cq CommandQueue, src_image Mem, dst_image Mem, src_origin3 *uint64, dst_origin3 *uint64, region3 *uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueCopyImage.html
func EnqueueCopyImageToBuffer ¶
func EnqueueCopyImageToBuffer(cq CommandQueue, src_image Mem, dst_buffer Mem, src_origin3 *uint64, region3 *uint64, dst_offset uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueCopyImageToBuffer.html
func EnqueueFillBuffer ¶
func EnqueueFillBuffer(cq CommandQueue, buffer Mem, pattern unsafe.Pointer, pattern_size uint64, offset uint64, size uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueFillBuffer.html
func EnqueueFillImage ¶
func EnqueueFillImage(cq CommandQueue, image Mem, fill_color unsafe.Pointer, origin3 *uint64, region3 *uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueFillImage.html
func EnqueueMarkerWithWaitList ¶
func EnqueueMarkerWithWaitList(cq CommandQueue, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueMarkerWithWaitList.html
func EnqueueMigrateMemObjects ¶
func EnqueueMigrateMemObjects(cq CommandQueue, num_mem_objects uint32, mem_objects *Mem, flags MemMigrationFlags, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueMigrateMemObjects.html
func EnqueueNDRangeKernel ¶
func EnqueueNDRangeKernel(cq CommandQueue, kernel Kernel, work_dim uint32, global_work_offset *uint64, global_work_size *uint64, local_work_size *uint64, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueNDRangeKernel.html
func EnqueueReadBuffer ¶
func EnqueueReadBuffer(cq CommandQueue, buffer Mem, blocking_read Bool, offset uint64, size uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueReadBuffer.html
func EnqueueReadBufferRect ¶
func EnqueueReadBufferRect(cq CommandQueue, buffer Mem, blocking_read Bool, buffer_offset *uint64, host_offset *uint64, region *uint64, buffer_row_pitch uint64, buffer_slice_pitch uint64, host_row_pitch uint64, host_slice_pitch uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueReadBufferRect.html
func EnqueueReadImage ¶
func EnqueueReadImage(cq CommandQueue, image Mem, blocking_read Bool, origin3 *uint64, region3 *uint64, row_pitch uint64, slice_pitch uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueReadImage.html
func EnqueueTask ¶
func EnqueueTask(cq CommandQueue, kernel Kernel, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueTask.html
func EnqueueUnmapMemObject ¶
func EnqueueUnmapMemObject(cq CommandQueue, memobj Mem, mapped_ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueUnmapMemObject.html
func EnqueueWriteBuffer ¶
func EnqueueWriteBuffer(cq CommandQueue, buffer Mem, blocking_write Bool, offset uint64, size uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueWriteBuffer.html
func EnqueueWriteBufferRect ¶
func EnqueueWriteBufferRect(cq CommandQueue, buffer Mem, blocking_write Bool, buffer_offset *uint64, host_offset *uint64, region *uint64, buffer_row_pitch uint64, buffer_slice_pitch uint64, host_row_pitch uint64, host_slice_pitch uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueWriteBufferRect.html
func EnqueueWriteImage ¶
func EnqueueWriteImage(cq CommandQueue, image Mem, blocking_write Bool, origin3 *uint64, region3 *uint64, input_row_pitch uint64, input_slice_pitch uint64, ptr unsafe.Pointer, num_events_in_wait_list uint32, event_wait_list *Event, event *Event) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEnqueueWriteImage.html
func Finish ¶
func Finish(cq CommandQueue) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clFinish.html
func Flush ¶
func Flush(cq CommandQueue) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clFlush.html
func GetCommandQueueInfo ¶
func GetCommandQueueInfo(cq CommandQueue, paramName CommandQueueInfo, paramValueSize uint64, data unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetCommandQueueInfo.html
func GetContextInfo ¶
func GetContextInfo(context *Context, paramName ContextInfo, paramValueSize uint64, data unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetContextInfo.html
func GetDeviceIDs ¶
func GetDeviceIDs(pid PlatformID, deviceType DeviceType, numentries uint32, devices *DeviceId, numdevices *uint32) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetDeviceIDs.html
func GetDeviceInfo ¶
func GetDeviceInfo(did DeviceId, paramName DeviceInfo, paramValueSize uint64, data unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetDeviceInfo.html
func GetEventInfo ¶
func GetEventInfo(e Event, paramName uint32, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetEventInfo.html
func GetEventProfilingInfo ¶
func GetEventProfilingInfo(e Event, paramName ProfilingInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetEventProfilingInfo.html
func GetImageInfo ¶
func GetImageInfo(mem Mem, paramName ImageInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetImageInfo.html
func GetKernelArgInfo ¶
func GetKernelArgInfo(ker Kernel, argIndex uint32, kernelArgInfo KernelArgInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelArgInfo.html
func GetKernelInfo ¶
func GetKernelInfo(ker Kernel, paramName KernelInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelInfo.html
func GetKernelWorkGroupInfo ¶
func GetKernelWorkGroupInfo(ker Kernel, did DeviceId, paramName KernelWorkGroupInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html
func GetMemObjectInfo ¶
func GetMemObjectInfo(mem Mem, paramName MemInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetMemObjectInfo.html
func GetPlatformIDs ¶
func GetPlatformIDs(numentries uint32, ids *PlatformID, numplatform *uint32) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetPlatformIDs.html
func GetPlatformInfo ¶
func GetPlatformInfo(pid PlatformID, paramName PlatformInfo, paramValueSize uint64, data unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetPlatformInfo.html
func GetProgramBuildInfo ¶
func GetProgramBuildInfo(prog Program, device DeviceId, paramName ProgramBuildInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetProgramBuildInfo.html
func GetProgramInfo ¶
func GetProgramInfo(prog Program, paramName ProgramInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetProgramInfo.html
func GetSamplerInfo ¶
func GetSamplerInfo(sampler Sampler, paramName SamplerInfo, paramValueSize uint64, paramValue unsafe.Pointer, paramValueSizeRet *uint64) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetSamplerInfo.html
func GetSupportedImageFormats ¶
func GetSupportedImageFormats(context Context, flags MemFlags, memObjectType MemObjectType, numEntries uint32, imageformats *ImageFormat, numImageFormat *uint32) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetSupportedImageFormats.html
func ReleaseContext ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseContext.html
func ReleaseDevice ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseDevice.html
func ReleaseEvent ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseEvent.html
func ReleaseKernel ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseKernel.html
func ReleaseMemObject ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseMemObject.html
func ReleaseProgram ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseProgram.html
func ReleaseSampler ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clReleaseSampler.html
func RetainContext ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainContext.html
func RetainDevice ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainDevice.html
func RetainEvent ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainEvent.html
func RetainKernel ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainKernel.html
func RetainMemObject ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainMemObject.html
func RetainProgram ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainProgram.html
func RetainSampler ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clRetainSampler.html
func SetKernelArg ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clSetKernelArg.html
func SetMemObjectDestructorCallback ¶
func SetMemObjectDestructorCallback(mem Mem, destroyCb func(Mem, interface{}), userData interface{}) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clSetMemObjectDestructorCallback.html
func SetUserEventStatus ¶
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clSetUserEventStatus.html
func UnloadPlatformCompiler ¶
func UnloadPlatformCompiler(pid PlatformID) ErrorCode
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clUnloadPlatformCompiler.html
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
type FilterMode ¶
type FilterMode uint32
const ( FILTER_NEAREST FilterMode = C.CL_FILTER_NEAREST FILTER_LINEAR = C.CL_FILTER_LINEAR )
type ImageDesc ¶
type ImageDesc struct { ImageType MemObjectType NumMipLevels, NumSamples uint32 ImageWidth, ImageHeight, ImageDepth, ImageArraySize, ImageRowPitch, ImageSlicePitch uint64 Buffer Mem }
type ImageFormat ¶
type ImageFormat struct { ImageChannelOrder ChannelOrder ImageChannelDataType ChannelType }
type Kernel ¶
type KernelArgAccessQualifier ¶
type KernelArgAccessQualifier uint32
type KernelArgAddressQualifier ¶
type KernelArgAddressQualifier uint32
type KernelArgInfo ¶
type KernelArgInfo uint32
type KernelArgTypeQualifer ¶
type KernelArgTypeQualifer uint32
type KernelInfo ¶
type KernelInfo uint32
type KernelWorkGroupInfo ¶
type KernelWorkGroupInfo uint32
type Mem ¶
func CreateBuffer ¶
func CreateBuffer(context Context, flags, paramValueSize MemFlags, hostPtr unsafe.Pointer, errcode *int32) Mem
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateBuffer.html
func CreateImage ¶
func CreateImage(context Context, flags MemFlags, imageFormat ImageFormat, imageDesc ImageDesc, hostPtr unsafe.Pointer, errcode *int32) Mem
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateImage.html
func CreateSubBuffer ¶
func CreateSubBuffer(mem Mem, flags MemFlags, bufferCreateType BufferCreateType, bufferCreateInfo unsafe.Pointer, errcode *int32) Mem
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSubBuffer.html
type MemMigrationFlags ¶
type MemMigrationFlags uint32
const ( MIGRATE_MEM_OBJECT_HOST MemMigrationFlags = C.CL_MIGRATE_MEM_OBJECT_HOST MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED = C.CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED )
type MemObjectType ¶
type MemObjectType uint32
type PlatformID ¶
type PlatformID C.cl_platform_id
type PlatformInfo ¶
type PlatformInfo uint32
type ProfilingInfo ¶
type ProfilingInfo uint32
type Program ¶
type Program C.cl_program
func CreateProgramWithBinary ¶
func CreateProgramWithBinary(context Context, numDevices uint32, devices *DeviceId, lengths *uint64, binaries **uint8, binaryStatus *int32, errcode *int32) Program
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateProgramWithBinary.html
func CreateProgramWithBuiltInKernels ¶
func CreateProgramWithBuiltInKernels(context Context, numDevices uint32, devices *DeviceId, kernelNames *uint8, errcode *int32) Program
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateProgramWithBuiltInKernels.html
func CreateProgramWithSource ¶
func CreateProgramWithSource(context Context, count uint32, src **uint8, lengths *uint64, errcode *int32) Program
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateProgramWithSource.html
func LinkProgram ¶
func LinkProgram(context Context, numDevices uint32, devices *DeviceId, options *uint8, numInputPrograms uint32, inputPrograms *Program, notify func(Program, interface{}), userData interface{}, errcode *int32) Program
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clLinkProgram.html
type ProgramBinaryType ¶
type ProgramBinaryType uint32
type ProgramBuildInfo ¶
type ProgramBuildInfo uint32
type ProgramInfo ¶
type ProgramInfo uint32
type Sampler ¶
type Sampler C.cl_sampler
func CreateSampler ¶
func CreateSampler(context Context, normalizedCoords Bool, addressingMode AddressingMode, filterMode FilterMode, errcode *int32) Sampler
see https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSampler.html
type SamplerInfo ¶
type SamplerInfo uint32