[OpenCL][Backend] Javadoc kernel launch fixed
@@ -60,18 +60,23 @@ public class OCLCommandQueue extends TornadoLogger {
native static void clGetCommandQueueInfo(long queueId, int info, byte[] buffer) throws OCLException;
/**
- * Enqueues a kernel for execution on the specified command queue
+ * Dispatch an OpenCL kernel via a JNI call.
*
* @param queueId
+ * OpenCL command queue object
* @param kernelId
+ * OpenCL kernel ID object
* @param dim
+ * Dimensions of the Kernel (1D, 2D or 3D)
* @param global_work_offset
+ * Offset within global access
* @param global_work_size
+ * Total number of threads to launch
* @param local_work_size
+ * Local work group size
* @param events
- *
- * @return eventId of this command
- *
+ * List of events
+ * @return Returns an event's ID
* @throws OCLException
*/
native static long clEnqueueNDRangeKernel(long queueId, long kernelId, int dim, long[] global_work_offset, long[] global_work_size, long[] local_work_size, long[] events) throws OCLException;
@@ -176,10 +181,6 @@ public class OCLCommandQueue extends TornadoLogger {
return String.format("Queue: context=0x%x, device=0x%x", getContextId(), getDeviceId());
}
- public long getCommandQueue() {
- return commandQueue;
- }
-
public long enqueueNDRangeKernel(OCLKernel kernel, int dim, long[] globalWorkOffset, long[] globalWorkSize, long[] localWorkSize, long[] waitEvents) {
try {
return clEnqueueNDRangeKernel(commandQueue, kernel.getOclKernelID(), dim, (openclVersion > 100) ? globalWorkOffset : null, globalWorkSize, localWorkSize, waitEvents);
