|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.engine.opencl.EncogCLQueue
public class EncogCLQueue
An open CL queue.
| Constructor Summary | |
|---|---|
EncogCLQueue(EncogCLDevice device)
Construct a device. |
|
| Method Summary | |
|---|---|
void |
array2Buffer(float[] source,
org.jocl.cl_mem targetBuffer)
Copy a float array to a buffer. |
void |
array2Buffer(int[] source,
org.jocl.cl_mem targetBuffer)
Copy an int array to a buffer. |
void |
buffer2Array(org.jocl.cl_mem sourceBuffer,
float[] target)
Copy a buffer to a float array. |
void |
buffer2Array(org.jocl.cl_mem sourceBuffer,
int[] target)
Copy a buffer to an int array. |
void |
execute(EncogKernel kernel)
Execute the specified kernel. |
org.jocl.cl_command_queue |
getCommands()
|
EncogCLDevice |
getDevice()
|
void |
waitFinish()
Wait until the queue is finished. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncogCLQueue(EncogCLDevice device)
device - The OpenCL device to base on.| Method Detail |
|---|
public void array2Buffer(float[] source,
org.jocl.cl_mem targetBuffer)
source - The array.targetBuffer - The buffer.
public void array2Buffer(int[] source,
org.jocl.cl_mem targetBuffer)
source - The source array.targetBuffer - The buffer.
public void buffer2Array(org.jocl.cl_mem sourceBuffer,
float[] target)
sourceBuffer - The source buffer.target - The target array.
public void buffer2Array(org.jocl.cl_mem sourceBuffer,
int[] target)
sourceBuffer - The source buffer.target - The target array.public void execute(EncogKernel kernel)
kernel - The kernel to execute.public org.jocl.cl_command_queue getCommands()
public void waitFinish()
public EncogCLDevice getDevice()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||