|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.CLU
class CLU
OpenCL utility class
| Field Summary | |
|---|---|
(package private) static boolean |
PROFILING
Whether profiling should be enabled for the command queue created by this class |
| Constructor Summary | |
|---|---|
CLU(int platformIndex,
int deviceIndex,
long[] clContextProperties)
Creates a new CLU which will initialize the context with the given properties for the specified platform, and a command queue for the specified device. |
|
| Method Summary | |
|---|---|
(package private) org.jocl.cl_kernel |
createKernel(java.lang.String fileName,
java.lang.String kernelName)
Creates an OpenCL kernel with the given name from the file with the given name |
(package private) org.jocl.cl_mem |
createMem(float[] array)
Create a memory object that contains the data from the given array |
(package private) org.jocl.cl_mem |
createMem(int[] array)
Create a memory object that contains the data from the given array |
(package private) org.jocl.cl_command_queue |
getCommandQueue()
Returns the command queue |
(package private) org.jocl.cl_context |
getContext()
Returns the OpenCL context |
(package private) static void |
setKernelArgs(org.jocl.cl_kernel kernel,
java.lang.Object... args)
Utility method to set the specified kernel arguments |
(package private) void |
shutdown()
Shut down this CLU. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final boolean PROFILING
| Constructor Detail |
|---|
CLU(int platformIndex,
int deviceIndex,
long[] clContextProperties)
null.
platformIndex - The index of the platform to use.deviceIndex - The index of the device to useclContextProperties - The context properties: An array
containing property IDs and their values, as required for
clCreateContext. This array may be null| Method Detail |
|---|
org.jocl.cl_context getContext()
org.jocl.cl_command_queue getCommandQueue()
org.jocl.cl_kernel createKernel(java.lang.String fileName,
java.lang.String kernelName)
fileName - The file namekernelName - The kernel name
org.jocl.cl_mem createMem(float[] array)
array - The array
org.jocl.cl_mem createMem(int[] array)
array - The array
void shutdown()
static void setKernelArgs(org.jocl.cl_kernel kernel,
java.lang.Object... args)
kernel - The kernelargs - The arguments
java.lang.IllegalArgumentException - If the argument types
are not primitive types and cl_mem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||