org.jocl.utils
Class CommandQueues

java.lang.Object
  extended by org.jocl.utils.CommandQueues

public class CommandQueues
extends java.lang.Object

Utility methods related to cl_command_queue objects


Method Summary
static org.jocl.cl_command_queue create(org.jocl.cl_context context, org.jocl.cl_device_id device)
          Create and return a command queue for the given device.
static org.jocl.cl_command_queue create(org.jocl.cl_context context, org.jocl.cl_device_id device, boolean profilingEnabled)
          Create and return a command queue for the given device.
static java.util.List<org.jocl.cl_command_queue> create(org.jocl.cl_context context, java.util.List<org.jocl.cl_device_id> devices)
          Create and return an unmodifiable list of command queues, one for each of the given devices.
static java.util.List<org.jocl.cl_command_queue> create(org.jocl.cl_context context, java.util.List<org.jocl.cl_device_id> devices, boolean profilingEnabled)
          Create and return an unmodifiable list of command queues, one for each of the given devices.
static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX)
          Enqueue the given kernel as a 1D kernel to the given command queue, using the given global work size.
static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 1D kernel to the given command queue, using the given global work size.
static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long localSizeX)
          Enqueue the given kernel as a 1D kernel to the given command queue, using the given global and local work size.
static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long localSizeX, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 1D kernel to the given command queue, using the given global and local work size.
static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY)
          Enqueue the given kernel as a 2D kernel to the given command queue, using the given global work sizes.
static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 2D kernel to the given command queue, using the given global work sizes.
static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long localSizeX, long localSizeY)
          Enqueue the given kernel as a 2D kernel to the given command queue, using the given global and local work sizes.
static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long localSizeX, long localSizeY, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 2D kernel to the given command queue, using the given global and local work sizes.
static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long globalSizeZ)
          Enqueue the given kernel as a 3D kernel to the given command queue, using the given global work sizes.
static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long globalSizeZ, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 3D kernel to the given command queue, using the given global work sizes.
static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long globalSizeZ, long localSizeX, long localSizeY, long localSizeZ)
          Enqueue the given kernel as a 3D kernel to the given command queue, using the given global and local work sizes.
static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, long globalSizeX, long globalSizeY, long globalSizeZ, long localSizeX, long localSizeY, long localSizeZ, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a 3D kernel to the given command queue, using the given global and local work sizes.
static void enqueueKernelND(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, int n, long[] globalSize, long[] localSize)
          Enqueue the given kernel as a n-D kernel to the given command queue, using the given global and local work sizes.
static void enqueueKernelND(org.jocl.cl_command_queue commandQueue, org.jocl.cl_kernel kernel, int n, long[] globalSize, long[] localSize, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue the given kernel as a n-D kernel to the given command queue, using the given global and local work sizes.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.ByteBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.DoubleBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.FloatBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.IntBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.LongBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.ByteBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.DoubleBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.FloatBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.IntBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.LongBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long sourceOffset, java.nio.ShortBuffer target, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.ShortBuffer target)
          Enqueue a command to read the given buffer into the given target Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.ByteBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.DoubleBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.FloatBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.IntBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.LongBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.ByteBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.DoubleBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.FloatBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.IntBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.LongBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, long targetOffset, java.nio.ShortBuffer source, boolean blocking, java.util.List<org.jocl.cl_event> waitList, org.jocl.cl_event event)
          Enqueue a command to write the given buffer from the given source Buffer.
static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue, org.jocl.cl_mem buffer, java.nio.ShortBuffer source)
          Enqueue a command to write the given buffer from the given source Buffer.
static void finish(org.jocl.cl_command_queue... commandQueues)
          Finish each of the given command queues if it is not null.
static void finish(java.lang.Iterable<org.jocl.cl_command_queue> commandQueues)
          Finish each of the given command queues if it is not null.
static void release(org.jocl.cl_command_queue... commandQueues)
          Release each of the given command queues if it is not null.
static void release(java.lang.Iterable<org.jocl.cl_command_queue> commandQueues)
          Release each of the given command queues if it is not null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static org.jocl.cl_command_queue create(org.jocl.cl_context context,
                                               org.jocl.cl_device_id device)
Create and return a command queue for the given device.

Parameters:
context - The context
device - The device
Returns:
The command queue

create

public static org.jocl.cl_command_queue create(org.jocl.cl_context context,
                                               org.jocl.cl_device_id device,
                                               boolean profilingEnabled)
Create and return a command queue for the given device.

Parameters:
context - The context
device - The device
profilingEnabled - Whether profiling should be enabled
Returns:
The command queue

create

public static java.util.List<org.jocl.cl_command_queue> create(org.jocl.cl_context context,
                                                               java.util.List<org.jocl.cl_device_id> devices)
Create and return an unmodifiable list of command queues, one for each of the given devices.

Parameters:
context - The context
devices - The devices
Returns:
The list of command queues

create

public static java.util.List<org.jocl.cl_command_queue> create(org.jocl.cl_context context,
                                                               java.util.List<org.jocl.cl_device_id> devices,
                                                               boolean profilingEnabled)
Create and return an unmodifiable list of command queues, one for each of the given devices.

Parameters:
context - The context
devices - The devices
profilingEnabled - Whether profiling should be enabled
Returns:
The list of command queues

release

public static void release(org.jocl.cl_command_queue... commandQueues)
Release each of the given command queues if it is not null.

Parameters:
commandQueues - The command queues to release

release

public static void release(java.lang.Iterable<org.jocl.cl_command_queue> commandQueues)
Release each of the given command queues if it is not null.

Parameters:
commandQueues - The command queues to release

finish

public static void finish(org.jocl.cl_command_queue... commandQueues)
Finish each of the given command queues if it is not null.

Parameters:
commandQueues - The command queues to finish

finish

public static void finish(java.lang.Iterable<org.jocl.cl_command_queue> commandQueues)
Finish each of the given command queues if it is not null.

Parameters:
commandQueues - The command queues to finish

enqueueKernel1D

public static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX)
Enqueue the given kernel as a 1D kernel to the given command queue, using the given global work size.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size

enqueueKernel1D

public static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long localSizeX)
Enqueue the given kernel as a 1D kernel to the given command queue, using the given global and local work size.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size
localSizeX - The local work size

enqueueKernel2D

public static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY)
Enqueue the given kernel as a 2D kernel to the given command queue, using the given global work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1

enqueueKernel2D

public static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long localSizeX,
                                   long localSizeY)
Enqueue the given kernel as a 2D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
localSizeX - The local work size for dimension 0
localSizeY - The local work size for dimension 1

enqueueKernel3D

public static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long globalSizeZ)
Enqueue the given kernel as a 3D kernel to the given command queue, using the given global work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
globalSizeZ - The global work size for dimension 2

enqueueKernel3D

public static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long globalSizeZ,
                                   long localSizeX,
                                   long localSizeY,
                                   long localSizeZ)
Enqueue the given kernel as a 3D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
globalSizeZ - The global work size for dimension 2
localSizeX - The local work size for dimension 0
localSizeY - The local work size for dimension 1
localSizeZ - The local work size for dimension 2

enqueueKernelND

public static void enqueueKernelND(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   int n,
                                   long[] globalSize,
                                   long[] localSize)
Enqueue the given kernel as a n-D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
n - The dimension of the kernel
globalSize - The global work size
localSize - The local work size

enqueueKernel1D

public static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 1D kernel to the given command queue, using the given global work size.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernel1D

public static void enqueueKernel1D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long localSizeX,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 1D kernel to the given command queue, using the given global and local work size.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size
localSizeX - The local work size
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernel2D

public static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 2D kernel to the given command queue, using the given global work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernel2D

public static void enqueueKernel2D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long localSizeX,
                                   long localSizeY,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 2D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
localSizeX - The local work size for dimension 0
localSizeY - The local work size for dimension 1
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernel3D

public static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long globalSizeZ,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 3D kernel to the given command queue, using the given global work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
globalSizeZ - The global work size for dimension 2
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernel3D

public static void enqueueKernel3D(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   long globalSizeX,
                                   long globalSizeY,
                                   long globalSizeZ,
                                   long localSizeX,
                                   long localSizeY,
                                   long localSizeZ,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a 3D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
globalSizeX - The global work size for dimension 0
globalSizeY - The global work size for dimension 1
globalSizeZ - The global work size for dimension 2
localSizeX - The local work size for dimension 0
localSizeY - The local work size for dimension 1
localSizeZ - The local work size for dimension 2
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueKernelND

public static void enqueueKernelND(org.jocl.cl_command_queue commandQueue,
                                   org.jocl.cl_kernel kernel,
                                   int n,
                                   long[] globalSize,
                                   long[] localSize,
                                   java.util.List<org.jocl.cl_event> waitList,
                                   org.jocl.cl_event event)
Enqueue the given kernel as a n-D kernel to the given command queue, using the given global and local work sizes.

Parameters:
commandQueue - The command queue
kernel - The kernel to enqueue
n - The dimension of the kernel
globalSize - The global work size
localSize - The local work size. May be null.
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.ByteBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.ByteBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.ByteBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.ByteBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.ShortBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.ShortBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.ShortBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.ShortBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.IntBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.IntBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.IntBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.IntBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.LongBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.LongBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.LongBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.LongBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.FloatBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.FloatBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.FloatBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.FloatBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     java.nio.DoubleBuffer target)
Enqueue a command to read the given buffer into the given target Buffer. This command will be blocking if and only if the target Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
target - The target Buffer

enqueueReadBuffer

public static void enqueueReadBuffer(org.jocl.cl_command_queue commandQueue,
                                     org.jocl.cl_mem buffer,
                                     long sourceOffset,
                                     java.nio.DoubleBuffer target,
                                     boolean blocking,
                                     java.util.List<org.jocl.cl_event> waitList,
                                     org.jocl.cl_event event)
Enqueue a command to read the given buffer into the given target Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The source buffer
sourceOffset - The offset (in number of elements) in the source buffer
target - The target Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      java.nio.DoubleBuffer source)
Enqueue a command to write the given buffer from the given source Buffer. This command will be blocking if and only if the source Buffer is a not a direct buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
source - The source Buffer

enqueueWriteBuffer

public static void enqueueWriteBuffer(org.jocl.cl_command_queue commandQueue,
                                      org.jocl.cl_mem buffer,
                                      long targetOffset,
                                      java.nio.DoubleBuffer source,
                                      boolean blocking,
                                      java.util.List<org.jocl.cl_event> waitList,
                                      org.jocl.cl_event event)
Enqueue a command to write the given buffer from the given source Buffer. The size of the data transfer will be computed from the position and limit of the given Buffer.

Parameters:
commandQueue - The command queue
buffer - The target buffer
targetOffset - The offset (in number of elements) in the target buffer
source - The source Buffer
blocking - Whether the transfer should be blocking
waitList - The event wait list. May be null.
event - The event for this command. May be null.