Class CL
Assembly: OpenTK.Compute.dll
Syntax
Methods
BuildProgram(CLProgram, CLDevice[], string, ClEventCallback)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode BuildProgram(CLProgram program, CLDevice[] deviceList, string options, CL.ClEventCallback callback)
Parameters
Returns
BuildProgram(CLProgram, uint, CLDevice[], string, IntPtr, IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode BuildProgram(CLProgram program, uint numberOfDevices, CLDevice[] deviceList, string options, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
CloneKernel(CLKernel, out CLResultCode)
Introduced in OpenCL 2.1.
Declaration
public static extern CLKernel CloneKernel(CLKernel sourceKernel, out CLResultCode resultCode)
Parameters
Returns
CompileProgram(CLProgram, uint, CLDevice[], string, uint, IntPtr[], out IntPtr, IntPtr, IntPtr)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode CompileProgram(CLProgram program, uint numberOfDevices, CLDevice[] deviceList, string options, uint numberOfInputDevices, IntPtr[] inputHeaders, out IntPtr headerIncludeNames, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
CreateBuffer(CLContext, MemoryFlags, UIntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLBuffer CreateBuffer(CLContext context, MemoryFlags flags, UIntPtr size, IntPtr hostPtr, out CLResultCode resultCode)
Parameters
Returns
CreateBuffer<T>(CLContext, MemoryFlags, T[], out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static CLBuffer CreateBuffer<T>(CLContext context, MemoryFlags flags, T[] array, out CLResultCode resultCode) where T : unmanaged
Parameters
Returns
Type Parameters
CreateBuffer<T>(CLContext, MemoryFlags, Span<T>, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static CLBuffer CreateBuffer<T>(CLContext context, MemoryFlags flags, Span<T> span, out CLResultCode resultCode) where T : unmanaged
Parameters
Returns
Type Parameters
CreateCommandQueue(CLContext, CLDevice, CommandQueueProperty, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.2, use CreateCommandQueueWithProperties.")]
public static extern CLCommandQueue CreateCommandQueue(CLContext context, CLDevice device, CommandQueueProperty properties, out CLResultCode resultCode)
Parameters
Returns
CreateCommandQueueWithProperties(CLContext, IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 2.0.
Declaration
public static extern CLCommandQueue CreateCommandQueueWithProperties(CLContext context, IntPtr device, IntPtr properties, out CLResultCode resultCode)
Parameters
Returns
CreateContext(IntPtr, CLDevice[], IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static CLContext CreateContext(IntPtr properties, CLDevice[] devices, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateContext(IntPtr, uint, CLDevice[], IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLContext CreateContext(IntPtr properties, uint numberOfDevices, CLDevice[] devices, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateContext(IntPtr[], CLDevice[], IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static CLContext CreateContext(IntPtr[] properties, CLDevice[] devices, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateContext(IntPtr[], uint, CLDevice[], IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLContext CreateContext(IntPtr[] properties, uint numberOfDevices, CLDevice[] devices, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateContextFromType(IntPtr, DeviceType, IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLContext CreateContextFromType(IntPtr properties, DeviceType deviceType, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateContextFromType(IntPtr[], DeviceType, IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLContext CreateContextFromType(IntPtr[] properties, DeviceType deviceType, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
CreateImage(CLContext, MemoryFlags, ref ImageFormat, ref ImageDescription, IntPtr, out CLResultCode)
Introduced in OpenCL 1.2.
Declaration
public static extern CLImage CreateImage(CLContext context, MemoryFlags flags, ref ImageFormat imageFormat, ref ImageDescription imageDesc, IntPtr hostPointer, out CLResultCode resultCode)
Parameters
Returns
CreateImage2D(CLContext, MemoryFlags, ref ImageFormat, UIntPtr, UIntPtr, UIntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated method, use CreateImage instead")]
public static extern CLImage CreateImage2D(CLContext context, MemoryFlags flags, ref ImageFormat imageFormat, UIntPtr imageWidth, UIntPtr imageHeight, UIntPtr imageRowPitch, IntPtr hostPointer, out CLResultCode resultCode)
Parameters
Returns
CreateImage3D(CLContext, MemoryFlags, ref ImageFormat, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated method, use CreateImage instead")]
public static extern CLImage CreateImage3D(CLContext context, MemoryFlags flags, ref ImageFormat imageFormat, UIntPtr imageWidth, UIntPtr imageHeight, UIntPtr imageDepth, UIntPtr imageRowPitch, UIntPtr imageSlicePitch, IntPtr hostPointer, out CLResultCode resultCode)
Parameters
Returns
CreateKernel(CLProgram, string, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLKernel CreateKernel(CLProgram program, string name, out CLResultCode resultCode)
Parameters
Returns
CreateKernelsInProgram(CLProgram, out CLKernel[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode CreateKernelsInProgram(CLProgram program, out CLKernel[] kernels)
Parameters
Returns
CreateKernelsInProgram(CLProgram, uint, CLKernel[], out uint)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode CreateKernelsInProgram(CLProgram program, uint numberOfKernels, CLKernel[] kernels, out uint numberOfKernelsReturned)
Parameters
Returns
CreatePipe(CLContext, MemoryFlags, uint, uint, IntPtr[], out CLResultCode)
Introduced in OpenCL 2.0.
Declaration
public static extern CLPipe CreatePipe(CLContext context, MemoryFlags flags, uint pipePacketSize, uint pipeMaxPackets, IntPtr[] properties, out CLResultCode resultCode)
Parameters
Returns
CreateProgramWithBinary(CLContext, uint, IntPtr[], UIntPtr[], IntPtr[], out CLResultCode[], out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLProgram CreateProgramWithBinary(CLContext context, uint numberOfDevices, IntPtr[] deviceList, UIntPtr[] lengths, IntPtr[] binaries, out CLResultCode[] binaryStatus, out CLResultCode resultCode)
Parameters
Returns
CreateProgramWithBuiltInKernels(CLContext, uint, IntPtr[], string, out CLResultCode)
Introduced in OpenCL 1.2.
Declaration
public static extern CLProgram CreateProgramWithBuiltInKernels(CLContext context, uint numberOfDevices, IntPtr[] deviceList, string kernelNames, out CLResultCode resultCode)
Parameters
Returns
CreateProgramWithIL(CLContext, IntPtr, UIntPtr, out CLResultCode)
Introduced in OpenCL 2.1.
Declaration
public static extern CLProgram CreateProgramWithIL(CLContext context, IntPtr il, UIntPtr length, out CLResultCode resultCode)
Parameters
Returns
CreateProgramWithSource(CLContext, string, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static CLProgram CreateProgramWithSource(CLContext context, string source, out CLResultCode resultCode)
Parameters
Returns
CreateProgramWithSource(CLContext, uint, IntPtr[], uint[], out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern CLProgram CreateProgramWithSource(CLContext context, uint count, IntPtr[] strings, uint[] lengths, out CLResultCode resultCode)
Parameters
Returns
CreateSampler(CLContext, uint, AddressingMode, FilterMode, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.2")]
public static extern CLSampler CreateSampler(CLContext context, uint normalizedCoordinates, AddressingMode addressingMode, FilterMode filterMode, out CLResultCode resultCode)
Parameters
Returns
CreateSamplerWithProperties(CLContext, IntPtr, out CLResultCode)
Introduced in OpenCL 2.0.
Declaration
public static extern CLSampler CreateSamplerWithProperties(CLContext context, IntPtr samplerProperties, out CLResultCode resultCode)
Parameters
Returns
CreateSubBuffer(CLBuffer, MemoryFlags, BufferCreateType, IntPtr, out CLResultCode)
Introduced in OpenCL 1.1.
Declaration
public static extern CLBuffer CreateSubBuffer(CLBuffer buffer, MemoryFlags flags, BufferCreateType bufferCreateType, IntPtr bufferCreateInfo, out CLResultCode resultCode)
Parameters
Returns
CreateSubDevices(CLDevice, IntPtr[], uint, CLDevice[], out uint)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode CreateSubDevices(CLDevice inDevice, IntPtr[] properties, uint numberOfDevices, CLDevice[] outDevices, out uint devicesReturned)
Parameters
Returns
CreateUserEvent(CLContext, out CLResultCode)
Introduced in OpenCL 1.1.
Declaration
public static extern CLEvent CreateUserEvent(CLContext context, out CLResultCode resultCode)
Parameters
Returns
EnqueueBarrier(CLCommandQueue)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.1, use EnqueueBarrierWithWaitList.")]
public static extern CLResultCode EnqueueBarrier(CLCommandQueue commandQueue)
Parameters
Returns
EnqueueBarrierWithWaitList(CLCommandQueue, uint, IntPtr[], IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode EnqueueBarrierWithWaitList(CLCommandQueue commandQueue, uint numberOfMemoryObjects, IntPtr[] memoryObjects, IntPtr argumentsMemoryLocation, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueCopyBuffer(CLCommandQueue, CLBuffer, CLBuffer, UIntPtr, UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueCopyBuffer(CLCommandQueue commandQueue, CLBuffer srcBuffer, CLBuffer dstBuffer, UIntPtr srcOffset, UIntPtr dstOffset, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueCopyBufferRect(CLCommandQueue, CLBuffer, CLBuffer, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode EnqueueCopyBufferRect(CLCommandQueue commandQueue, CLBuffer srcBuffer, CLBuffer dstBuffer, UIntPtr[] srcOrigin, UIntPtr[] dstOrigin, UIntPtr[] region, UIntPtr srcRowPitch, UIntPtr srcSlicePitch, UIntPtr dstRowPitch, UIntPtr dstSlicePitch, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueCopyBufferToImage(CLCommandQueue, CLBuffer, CLImage, UIntPtr, UIntPtr[], UIntPtr[], uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueCopyBufferToImage(CLCommandQueue commandQueue, CLBuffer srcBuffer, CLImage dstImage, UIntPtr srcOffset, UIntPtr[] dstOrigin, UIntPtr[] region, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueCopyImage(CLCommandQueue, CLImage, CLImage, UIntPtr[], UIntPtr[], UIntPtr[], uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueCopyImage(CLCommandQueue commandQueue, CLImage srcImage, CLImage dstImage, UIntPtr[] srcOrigin, UIntPtr[] dstOrigin, UIntPtr[] region, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueCopyImageToBuffer(CLCommandQueue, CLImage, CLBuffer, UIntPtr[], UIntPtr[], UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueCopyImageToBuffer(CLCommandQueue commandQueue, CLImage srcImage, CLBuffer dstBuffer, UIntPtr[] srcOrigin, UIntPtr[] region, UIntPtr dstOffset, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueFillBuffer(CLCommandQueue, CLBuffer, IntPtr, UIntPtr, UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode EnqueueFillBuffer(CLCommandQueue commandQueue, CLBuffer buffer, IntPtr pattern, UIntPtr patternSize, UIntPtr offset, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueFillBuffer<T>(CLCommandQueue, CLBuffer, T[], UIntPtr, UIntPtr, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static CLResultCode EnqueueFillBuffer<T>(CLCommandQueue commandQueue, CLBuffer buffer, T[] pattern, UIntPtr offset, UIntPtr size, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueFillImage(CLCommandQueue, CLImage, IntPtr, UIntPtr[], UIntPtr[], uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode EnqueueFillImage(CLCommandQueue commandQueue, CLImage image, IntPtr fillColor, UIntPtr[] origin, UIntPtr[] region, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueMapBuffer(CLCommandQueue, CLBuffer, bool, MapFlags, UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern IntPtr EnqueueMapBuffer(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingMap, MapFlags flags, UIntPtr offset, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event, out CLResultCode resultCode)
Parameters
Returns
EnqueueMapImage(CLCommandQueue, CLImage, bool, MapFlags, UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent, out CLResultCode)
Introduced in OpenCL 1.0.
Declaration
public static extern IntPtr EnqueueMapImage(CLCommandQueue commandQueue, CLImage image, bool blockingMap, MapFlags flags, UIntPtr[] origin, UIntPtr[] region, UIntPtr rowPitch, UIntPtr slicePitch, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event, out CLResultCode resultCode)
Parameters
Returns
EnqueueMarker(CLCommandQueue, CLEvent)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.1, use EnqueueMarkerWithWaitList.")]
public static extern CLResultCode EnqueueMarker(CLCommandQueue commandQueue, CLEvent @event)
Parameters
Returns
EnqueueMarkerWithWaitList(CLCommandQueue, uint, IntPtr[], IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode EnqueueMarkerWithWaitList(CLCommandQueue commandQueue, uint numberOfMemoryObjects, IntPtr[] memoryObjects, IntPtr argumentsMemoryLocation, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueMigrateMemoryObjects(CLCommandQueue, uint, IntPtr[], MemoryMigrationFlags, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode EnqueueMigrateMemoryObjects(CLCommandQueue commandQueue, uint numberOfMemoryObjects, IntPtr[] memoryObjects, MemoryMigrationFlags flags, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueNativeKernel(CLCommandQueue, IntPtr, IntPtr[], UIntPtr, uint, IntPtr[], IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueNativeKernel(CLCommandQueue commandQueue, IntPtr userFunction, IntPtr[] arguments, UIntPtr argumentSize, uint numberOfMemoryObjects, IntPtr[] memoryObjects, IntPtr argumentsMemoryLocation, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueNDRangeKernel(CLCommandQueue, CLKernel, uint, UIntPtr[], UIntPtr[], UIntPtr[], uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueNDRangeKernel(CLCommandQueue commandQueue, CLKernel kernel, uint workDimension, UIntPtr[] globalWorkOffset, UIntPtr[] globalWorkSize, UIntPtr[] localWorkSize, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueReadBuffer(CLCommandQueue, CLBuffer, bool, UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueReadBuffer(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr offset, UIntPtr size, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueReadBuffer<T>(CLCommandQueue, CLBuffer, bool, UIntPtr, T[], CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode EnqueueReadBuffer<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr offset, T[] array, CLEvent[] eventWaitList, out CLEvent eventHandle) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueReadBuffer<T>(CLCommandQueue, CLBuffer, bool, UIntPtr, Span<T>, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode EnqueueReadBuffer<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr offset, Span<T> span, CLEvent[] eventWaitList, out CLEvent eventHandle) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueReadBufferRect(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode EnqueueReadBufferRect(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueReadBufferRect<T>(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, T[], CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static CLResultCode EnqueueReadBufferRect<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, T[] array, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueReadBufferRect<T>(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, Span<T>, CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static CLResultCode EnqueueReadBufferRect<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingRead, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, Span<T> span, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueReadImage(CLCommandQueue, CLImage, bool, UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueReadImage(CLCommandQueue commandQueue, CLImage image, bool blockingRead, UIntPtr[] origin, UIntPtr[] region, UIntPtr rowPitch, UIntPtr slicePitch, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSVMFree(CLCommandQueue, uint, IntPtr[], IntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode EnqueueSVMFree(CLCommandQueue commandQueue, uint numberOfSvmPointers, IntPtr[] svmPointers, IntPtr svmFreePointersCallback, IntPtr userData, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSvmMap(CLCommandQueue, bool, MapFlags, IntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode EnqueueSvmMap(CLCommandQueue commandQueue, bool blockingMap, MapFlags mapFlag, IntPtr svmPointer, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSvmMemoryCopy(CLCommandQueue, bool, IntPtr, IntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode EnqueueSvmMemoryCopy(CLCommandQueue commandQueue, bool blockingCopy, IntPtr dstPointer, IntPtr srcPointer, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSvmMemoryFill(CLCommandQueue, IntPtr, IntPtr, UIntPtr, UIntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode EnqueueSvmMemoryFill(CLCommandQueue commandQueue, IntPtr svmPointer, IntPtr pattern, UIntPtr patternSize, UIntPtr size, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSvmMigrateMemory(CLCommandQueue, uint, IntPtr[], UIntPtr[], MemoryMigrationFlags, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.1.
Declaration
public static extern CLResultCode EnqueueSvmMigrateMemory(CLCommandQueue commandQueue, uint numberOfSvmPointers, IntPtr[] svmPointers, UIntPtr[] sizes, MemoryMigrationFlags memoryMigrationFlags, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueSVMUnmap(CLCommandQueue, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode EnqueueSVMUnmap(CLCommandQueue commandQueue, IntPtr svmPointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueTask(CLCommandQueue, CLKernel, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.2")]
public static extern CLResultCode EnqueueTask(CLCommandQueue commandQueue, CLKernel kernel, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueUnmapMemoryObject(CLCommandQueue, CLBuffer, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueUnmapMemoryObject(CLCommandQueue commandQueue, CLBuffer memoryObject, IntPtr mapperPtr, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueUnmapMemoryObject(CLCommandQueue, CLImage, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueUnmapMemoryObject(CLCommandQueue commandQueue, CLImage memoryObject, IntPtr mapperPtr, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueUnmapMemoryObject(CLCommandQueue, IntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueUnmapMemoryObject(CLCommandQueue commandQueue, IntPtr memoryObject, IntPtr mapperPtr, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueWaitForEvents(CLCommandQueue, uint, CLEvent[])
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.1, use EnqueueMarkerWithWaitList.")]
public static extern CLResultCode EnqueueWaitForEvents(CLCommandQueue commandQueue, uint numberOfEventsInWaitList, CLEvent[] eventList)
Parameters
Returns
EnqueueWriteBuffer(CLCommandQueue, CLBuffer, bool, UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueWriteBuffer(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr offset, UIntPtr size, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueWriteBuffer<T>(CLCommandQueue, CLBuffer, bool, UIntPtr, T[], CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode EnqueueWriteBuffer<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr offset, T[] array, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueWriteBuffer<T>(CLCommandQueue, CLBuffer, bool, UIntPtr, Span<T>, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode EnqueueWriteBuffer<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr offset, Span<T> span, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueWriteBufferRect(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode EnqueueWriteBufferRect(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
EnqueueWriteBufferRect<T>(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, T[], CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static CLResultCode EnqueueWriteBufferRect<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, T[] array, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueWriteBufferRect<T>(CLCommandQueue, CLBuffer, bool, UIntPtr[], UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, UIntPtr, UIntPtr, Span<T>, CLEvent[], out CLEvent)
Introduced in OpenCL 1.1.
Declaration
public static CLResultCode EnqueueWriteBufferRect<T>(CLCommandQueue commandQueue, CLBuffer buffer, bool blockingWrite, UIntPtr[] bufferOffset, UIntPtr[] hostOffset, UIntPtr[] region, UIntPtr bufferRowPitch, UIntPtr bufferSlicePitch, UIntPtr hostRowPitch, UIntPtr hostSlicePitch, Span<T> span, CLEvent[] eventWaitList, out CLEvent @event) where T : unmanaged
Parameters
Returns
Type Parameters
EnqueueWriteImage(CLCommandQueue, CLImage, bool, UIntPtr[], UIntPtr[], UIntPtr, UIntPtr, IntPtr, uint, CLEvent[], out CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode EnqueueWriteImage(CLCommandQueue commandQueue, CLImage image, bool blockingWrite, UIntPtr[] origin, UIntPtr[] region, UIntPtr inputRowPitch, UIntPtr inputSlicePitch, IntPtr pointer, uint numberOfEventsInWaitList, CLEvent[] eventWaitList, out CLEvent @event)
Parameters
Returns
Finish(CLCommandQueue)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode Finish(CLCommandQueue commandQueue)
Parameters
Returns
Flush(CLCommandQueue)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode Flush(CLCommandQueue commandQueue)
Parameters
Returns
GetCommandQueueInfo(CLCommandQueue, CommandQueueInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetCommandQueueInfo(CLCommandQueue queue, CommandQueueInfo paramName, out byte[] paramValue)
Parameters
Returns
GetCommandQueueInfo(CLCommandQueue, CommandQueueInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetCommandQueueInfo(CLCommandQueue commandQueue, CommandQueueInfo paramName, UIntPtr paramSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetContextInfo(CLContext, ContextInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetContextInfo(CLContext context, ContextInfo paramName, out byte[] paramValue)
Parameters
Returns
GetContextInfo(CLContext, ContextInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetContextInfo(CLContext context, ContextInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetDeviceAndHostTimer(CLDevice, IntPtr, IntPtr)
Introduced in OpenCL 2.1.
Declaration
public static extern CLResultCode GetDeviceAndHostTimer(CLDevice device, IntPtr deviceTimestamp, IntPtr hostTimestamp)
Parameters
Returns
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetDeviceIds(CLPlatform platform, DeviceType deviceType, out CLDevice[] deviceIds)
Parameters
Returns
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetDeviceIds(CLPlatform platform, DeviceType deviceType, uint numberOfEntries, CLDevice[] devices, out uint numberOfDevicesReturned)
Parameters
Returns
GetDeviceInfo(CLDevice, DeviceInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetDeviceInfo(CLDevice device, DeviceInfo paramName, out byte[] paramValue)
Parameters
Returns
GetDeviceInfo(CLDevice, DeviceInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetDeviceInfo(CLDevice device, DeviceInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetEventInfo(CLEvent, EventInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetEventInfo(CLEvent @event, EventInfo paramName, out byte[] paramValue)
Parameters
Returns
GetEventInfo(CLEvent, EventInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetEventInfo(CLEvent @event, EventInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramSizeReturned)
Parameters
Returns
GetEventProfilingInfo(CLEvent, ProfilingInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetEventProfilingInfo(CLEvent @event, ProfilingInfo paramName, out byte[] paramValue)
Parameters
Returns
GetEventProfilingInfo(CLEvent, ProfilingInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetEventProfilingInfo(CLEvent @event, ProfilingInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetExtensionFunctionAddress(string)
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated method")]
public static extern CLResultCode GetExtensionFunctionAddress(string funcName)
Parameters
Type |
Name |
Description |
string |
funcName |
|
Returns
GetExtensionFunctionAddressForPlatform(CLPlatform, string)
Introduced in OpenCL 1.2.
Declaration
public static extern IntPtr GetExtensionFunctionAddressForPlatform(CLPlatform platform, string functionName)
Parameters
Returns
GetHostTimer(CLDevice, IntPtr)
Introduced in OpenCL 2.1.
Declaration
public static extern CLResultCode GetHostTimer(CLDevice device, IntPtr hostTimestamp)
Parameters
Returns
GetImageInfo(CLImage, ImageInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetImageInfo(CLImage image, ImageInfo paramName, out byte[] paramValue)
Parameters
Returns
GetImageInfo(CLImage, ImageInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetImageInfo(CLImage image, ImageInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetKernelArgInfo(CLKernel, uint, KernelArgInfo, out byte[])
Introduced in OpenCL 1.2.
Declaration
public static CLResultCode GetKernelArgInfo(CLKernel kernel, uint argumentIndex, KernelArgInfo paramName, out byte[] paramValue)
Parameters
Returns
GetKernelArgInfo(CLKernel, uint, KernelArgInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode GetKernelArgInfo(CLKernel kernel, uint argumentIndex, KernelArgInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramSizeReturned)
Parameters
Returns
GetKernelInfo(CLKernel, KernelInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetKernelInfo(CLKernel kernel, KernelInfo paramName, out byte[] paramValue)
Parameters
Returns
GetKernelInfo(CLKernel, KernelInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetKernelInfo(CLKernel kernel, KernelInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramSizeReturned)
Parameters
Returns
GetKernelSubGroupInfo(CLKernel, CLDevice, KernelSubGroupInfo, UIntPtr, IntPtr, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 2.1.
Declaration
public static extern CLResultCode GetKernelSubGroupInfo(CLKernel kernel, CLDevice device, KernelSubGroupInfo paramName, UIntPtr inputValueSize, IntPtr inputValue, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramSizeReturned)
Parameters
Returns
GetKernelWorkGroupInfo(CLKernel, CLDevice, KernelWorkGroupInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetKernelWorkGroupInfo(CLKernel kernel, CLDevice device, KernelWorkGroupInfo paramName, out byte[] paramValue)
Parameters
Returns
GetKernelWorkGroupInfo(CLKernel, CLDevice, KernelWorkGroupInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetKernelWorkGroupInfo(CLKernel kernel, CLDevice device, KernelWorkGroupInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramSizeReturned)
Parameters
Returns
GetMemObjectInfo(CLBuffer, MemoryObjectInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetMemObjectInfo(CLBuffer memoryObject, MemoryObjectInfo paramName, out byte[] paramValue)
Parameters
Returns
GetMemObjectInfo(CLBuffer, MemoryObjectInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetMemObjectInfo(CLBuffer memoryObject, MemoryObjectInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetMemObjectInfo(CLImage, MemoryObjectInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetMemObjectInfo(CLImage memoryObject, MemoryObjectInfo paramName, out byte[] paramValue)
Parameters
Returns
GetMemObjectInfo(CLImage, MemoryObjectInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetMemObjectInfo(CLImage memoryObject, MemoryObjectInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetMemObjectInfo(CLPipe, MemoryObjectInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetMemObjectInfo(CLPipe memoryObject, MemoryObjectInfo paramName, out byte[] paramValue)
Parameters
Returns
GetMemObjectInfo(CLPipe, MemoryObjectInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetMemObjectInfo(CLPipe memoryObject, MemoryObjectInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetMemObjectInfo(IntPtr, MemoryObjectInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetMemObjectInfo(IntPtr memoryObject, MemoryObjectInfo paramName, out byte[] paramValue)
Parameters
Returns
GetMemObjectInfo(IntPtr, MemoryObjectInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetMemObjectInfo(IntPtr memoryObject, MemoryObjectInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetPipeInfo(CLPipe, PipeInfo, out byte[])
Introduced in OpenCL 2.0.
Declaration
public static CLResultCode GetPipeInfo(CLPipe pipe, PipeInfo paramName, out byte[] paramValue)
Parameters
Returns
GetPipeInfo(CLPipe, PipeInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode GetPipeInfo(CLPipe pipe, PipeInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetPlatformIds(out CLPlatform[] platformIds)
Parameters
Type |
Name |
Description |
CLPlatform[] |
platformIds |
returns a list of OpenCL platforms found. The CLPlatform values returned in platforms can be used to identify a specific OpenCL platform.
|
Returns
Type |
Description |
CLResultCode |
returns Success if the function is executed successfully. Otherwise, it returns one of the following errors:
-InvalidValue if numberOfEntries is equal to zero and platforms is not NULL or if both numberOfPlatforms and platforms are NULL.
-OutOfHostMemory if there is a failure to allocate resources required by the OpenCL implementation on the host.
|
Declaration
public static extern CLResultCode GetPlatformIds(uint numberOfEntries, CLPlatform[] platforms, out uint numberOfPlatforms)
Parameters
Type |
Name |
Description |
uint |
numberOfEntries |
number of CLPlatform entries that can be added to platforms. If platforms is not NULL, numberOfEntries must be greater than zero.
|
CLPlatform[] |
platforms |
returns a list of OpenCL platforms found. The CLPlatform values returned in platforms can be used to identify a specific OpenCL platform. If platforms is NULL, this argument is ignored. The number of OpenCL platforms returned is the minimum of the value specified by numberOfEntries or the number of OpenCL platforms available.
|
uint |
numberOfPlatforms |
returns the number of OpenCL platforms available. If numberOfPlatforms is NULL, this argument is ignored.
|
Returns
Type |
Description |
CLResultCode |
returns Success if the function is executed successfully. Otherwise, it returns one of the following errors:
-InvalidValue if numberOfEntries is equal to zero and platforms is not NULL or if both numberOfPlatforms and platforms are NULL.
-OutOfHostMemory if there is a failure to allocate resources required by the OpenCL implementation on the host.
|
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetPlatformInfo(CLPlatform platform, PlatformInfo paramName, out byte[] paramValue)
Parameters
Returns
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetPlatformInfo(CLPlatform platform, PlatformInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetProgramBuildInfo(CLProgram, CLDevice, ProgramBuildInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetProgramBuildInfo(CLProgram program, CLDevice device, ProgramBuildInfo paramName, out byte[] paramValue)
Parameters
Returns
GetProgramBuildInfo(CLProgram, CLDevice, ProgramBuildInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetProgramBuildInfo(CLProgram program, CLDevice device, ProgramBuildInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetProgramInfo(CLProgram, ProgramInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetProgramInfo(CLProgram program, ProgramInfo paramName, out byte[] paramValue)
Parameters
Returns
GetProgramInfo(CLProgram, ProgramInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetProgramInfo(CLProgram program, ProgramInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetSamplerInfo(CLSampler, SamplerInfo, out byte[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetSamplerInfo(CLSampler sampler, SamplerInfo paramName, out byte[] paramValue)
Parameters
Returns
GetSamplerInfo(CLSampler, SamplerInfo, UIntPtr, byte[], out UIntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetSamplerInfo(CLSampler sampler, SamplerInfo paramName, UIntPtr paramValueSize, byte[] paramValue, out UIntPtr paramValueSizeReturned)
Parameters
Returns
GetSupportedImageFormats(CLContext, MemoryFlags, MemoryObjectType, out ImageFormat[])
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode GetSupportedImageFormats(CLContext context, MemoryFlags flags, MemoryObjectType imageType, out ImageFormat[] imageFormats)
Parameters
Returns
GetSupportedImageFormats(CLContext, MemoryFlags, MemoryObjectType, uint, ImageFormat[], out uint)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode GetSupportedImageFormats(CLContext context, MemoryFlags flags, MemoryObjectType imageType, uint numberOfEntries, ImageFormat[] imageFormats, out uint numberOfImageFormats)
Parameters
Returns
LinkProgram(CLContext, uint, CLDevice[], string, uint, CLProgram[], IntPtr, IntPtr, out CLResultCode)
Introduced in OpenCL 1.2.
Declaration
public static extern CLProgram LinkProgram(CLContext context, uint numberOfDevices, CLDevice[] deviceList, string options, uint numberOfPrograms, CLProgram[] inputPrograms, IntPtr notificationCallback, IntPtr userData, out CLResultCode resultCode)
Parameters
Returns
ReleaseCommandQueue(CLCommandQueue)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseCommandQueue(CLCommandQueue commandQueue)
Parameters
Returns
ReleaseContext(CLContext)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseContext(CLContext context)
Parameters
Returns
ReleaseDevice(CLDevice)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode ReleaseDevice(CLDevice device)
Parameters
Returns
ReleaseEvent(CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseEvent(CLEvent @event)
Parameters
Type |
Name |
Description |
CLEvent |
event |
|
Returns
ReleaseKernel(CLKernel)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseKernel(CLKernel kernel)
Parameters
Returns
ReleaseMemoryObject(CLBuffer)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseMemoryObject(CLBuffer memoryObject)
Parameters
Type |
Name |
Description |
CLBuffer |
memoryObject |
|
Returns
ReleaseMemoryObject(CLImage)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseMemoryObject(CLImage memoryObject)
Parameters
Type |
Name |
Description |
CLImage |
memoryObject |
|
Returns
ReleaseMemoryObject(CLPipe)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseMemoryObject(CLPipe memoryObject)
Parameters
Type |
Name |
Description |
CLPipe |
memoryObject |
|
Returns
ReleaseMemoryObject(IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseMemoryObject(IntPtr memoryObject)
Parameters
Type |
Name |
Description |
IntPtr |
memoryObject |
|
Returns
ReleaseProgram(CLProgram)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseProgram(CLProgram program)
Parameters
Returns
ReleaseSampler(CLSampler)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode ReleaseSampler(CLSampler sampler)
Parameters
Returns
RetainCommandQueue(CLCommandQueue)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainCommandQueue(CLCommandQueue commandQueue)
Parameters
Returns
RetainContext(CLContext)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainContext(CLContext context)
Parameters
Returns
RetainDevice(CLDevice)
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode RetainDevice(CLDevice device)
Parameters
Returns
RetainEvent(CLEvent)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainEvent(CLEvent @event)
Parameters
Type |
Name |
Description |
CLEvent |
event |
|
Returns
RetainKernel(CLKernel)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainKernel(CLKernel kernel)
Parameters
Returns
RetainMemoryObject(CLBuffer)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainMemoryObject(CLBuffer memoryObject)
Parameters
Type |
Name |
Description |
CLBuffer |
memoryObject |
|
Returns
RetainMemoryObject(CLImage)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainMemoryObject(CLImage memoryObject)
Parameters
Type |
Name |
Description |
CLImage |
memoryObject |
|
Returns
RetainMemoryObject(CLPipe)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainMemoryObject(CLPipe memoryObject)
Parameters
Type |
Name |
Description |
CLPipe |
memoryObject |
|
Returns
RetainMemoryObject(IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainMemoryObject(IntPtr memoryObject)
Parameters
Type |
Name |
Description |
IntPtr |
memoryObject |
|
Returns
RetainProgram(CLProgram)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainProgram(CLProgram program)
Parameters
Returns
RetainSampler(CLSampler)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode RetainSampler(CLSampler sampler)
Parameters
Returns
SetDefaultDeviceCommandQueue(CLContext, CLDevice, CLCommandQueue)
Introduced in OpenCL 2.1.
Declaration
public static extern CLResultCode SetDefaultDeviceCommandQueue(CLContext context, CLDevice device, CLCommandQueue commandQueue)
Parameters
Returns
SetEventCallback(CLEvent, int, ClEventCallback)
Introduced in OpenCL 1.1.
Declaration
public static CLResultCode SetEventCallback(CLEvent eventHandle, int callbackType, CL.ClEventCallback notifyCallback)
Parameters
Returns
SetEventCallback(CLEvent, int, IntPtr, IntPtr)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode SetEventCallback(CLEvent eventHandle, int commandExecCallbackType, IntPtr notifyCallback, IntPtr userData)
Parameters
Returns
SetKernelArg(CLKernel, uint, UIntPtr, IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode SetKernelArg(CLKernel kernel, uint argumentIndex, UIntPtr argumentSize, IntPtr argumentValuePointer)
Parameters
Returns
SetKernelArg<T>(CLKernel, uint, in T)
Introduced in OpenCL 1.0.
Declaration
public static CLResultCode SetKernelArg<T>(CLKernel kernel, uint argumentIndex, in T argument) where T : unmanaged
Parameters
Type |
Name |
Description |
CLKernel |
kernel |
|
uint |
argumentIndex |
|
T |
argument |
|
Returns
Type Parameters
SetKernelArgSVMPointer(CLKernel, uint, IntPtr)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode SetKernelArgSVMPointer(CLKernel kernel, uint argumentIndex, IntPtr argumentValuePointer)
Parameters
Returns
SetKernelExecInfo(CLKernel, KernelExecInfo, UIntPtr, IntPtr)
Introduced in OpenCL 2.0.
Declaration
public static extern CLResultCode SetKernelExecInfo(CLKernel kernel, KernelExecInfo paramName, UIntPtr paramValueSize, IntPtr paramValue)
Parameters
Returns
SetMemoryObjectDestructorCallback(CLBuffer, IntPtr, IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode SetMemoryObjectDestructorCallback(CLBuffer memoryObject, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
SetMemoryObjectDestructorCallback(CLImage, IntPtr, IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode SetMemoryObjectDestructorCallback(CLImage memoryObject, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
SetMemoryObjectDestructorCallback(CLPipe, IntPtr, IntPtr)
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode SetMemoryObjectDestructorCallback(CLPipe memoryObject, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
SetMemoryObjectDestructorCallback(IntPtr, IntPtr, IntPtr)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode SetMemoryObjectDestructorCallback(IntPtr memoryObject, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
SetProgramReleaseCallback(CLProgram, IntPtr, IntPtr)
Introduced in OpenCL 2.2.
Declaration
public static extern CLResultCode SetProgramReleaseCallback(CLProgram program, IntPtr notificationCallback, IntPtr userData)
Parameters
Returns
SetProgramSpecializationConstant(CLProgram, uint, UIntPtr, IntPtr)
Introduced in OpenCL 2.2.
Declaration
public static extern CLResultCode SetProgramSpecializationConstant(CLProgram program, uint specId, UIntPtr specSize, IntPtr specValue)
Parameters
Returns
SetUserEventStatus(CLEvent, int)
Introduced in OpenCL 1.1.
Declaration
public static extern CLResultCode SetUserEventStatus(CLEvent @event, int executionStatus)
Parameters
Type |
Name |
Description |
CLEvent |
event |
|
int |
executionStatus |
|
Returns
SVMAlloc(CLContext, SvmMemoryFlags, UIntPtr, uint)
Introduced in OpenCL 2.0.
Declaration
public static extern IntPtr SVMAlloc(CLContext context, SvmMemoryFlags flags, UIntPtr size, uint alignment)
Parameters
Returns
SVMFree(CLContext, IntPtr)
Introduced in OpenCL 2.0.
Declaration
public static extern IntPtr SVMFree(CLContext context, IntPtr svmPointer)
Parameters
Returns
UnloadCompiler()
Introduced in OpenCL 1.0.
Declaration
[Obsolete("Deprecated in OpenCL 1.1, use UnloadPlatformCompiler.")]
public static extern CLResultCode UnloadCompiler()
Returns
Introduced in OpenCL 1.2.
Declaration
public static extern CLResultCode UnloadPlatformCompiler(CLPlatform platform)
Parameters
Returns
WaitForEvents(uint, CLEvent[])
Introduced in OpenCL 1.0.
Declaration
public static extern CLResultCode WaitForEvents(uint numberOfEvents, CLEvent[] eventList)
Parameters
Type |
Name |
Description |
uint |
numberOfEvents |
|
CLEvent[] |
eventList |
|
Returns