|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.utils.CLSetup
public class CLSetup
This class summarizes one setup for OpenCL execution, consisting of a context with one or more devices and associated command queues.
Constructor Summary | |
---|---|
CLSetup(org.jocl.cl_context context,
boolean profiling)
Creates an OpenCL setup for the given context. |
|
CLSetup(org.jocl.cl_context context,
java.util.List<org.jocl.cl_device_id> devices,
boolean profiling)
Creates an OpenCL setup for the given context. |
Method Summary | |
---|---|
void |
finishCommandQueues()
Finishes all command queues |
java.util.List<org.jocl.cl_command_queue> |
getCommandQueues()
Returns an unmodifiable list containing the command queues in this setup. |
org.jocl.cl_context |
getContext()
Return the context of this setup |
java.util.List<org.jocl.cl_device_id> |
getDevices()
Returns an unmodifiable list containing the devices in this setup. |
void |
shutdown()
Finish and release all command queues and the CL context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLSetup(org.jocl.cl_context context, java.util.List<org.jocl.cl_device_id> devices, boolean profiling)
context
- The contextdevices
- The devices for which command queues should be createdprofiling
- Whether the command queues should
be created with profiling enabledpublic CLSetup(org.jocl.cl_context context, boolean profiling)
context
- The contextprofiling
- Whether the command queues should
be created with profiling enabledMethod Detail |
---|
public void shutdown()
public org.jocl.cl_context getContext()
public java.util.List<org.jocl.cl_command_queue> getCommandQueues()
public java.util.List<org.jocl.cl_device_id> getDevices()
public void finishCommandQueues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |