|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jocl.utils.Contexts
public class Contexts
Utility methods related to cl_context objects
Method Summary | |
---|---|
static org.jocl.cl_context |
create(org.jocl.cl_platform_id platform,
org.jocl.cl_device_id... devices)
Create a new context for the given platform and devices. |
static org.jocl.cl_context |
create(org.jocl.cl_platform_id platform,
java.util.List<org.jocl.cl_device_id> devices)
Create a new context for the given platform and devices. |
static org.jocl.cl_context |
create(org.jocl.cl_platform_id platform,
java.util.List<org.jocl.cl_device_id> devices,
long[] additionalContextProperties)
Create a new context with the given platform and devices, using the given additional context properties. |
static void |
release(org.jocl.cl_context... contexts)
Release each of the given contexts if it is not null . |
static void |
release(java.lang.Iterable<org.jocl.cl_context> contexts)
Release each of the given contexts if it is not null . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.jocl.cl_context create(org.jocl.cl_platform_id platform, org.jocl.cl_device_id... devices)
platform
- The platformdevices
- The devices
public static org.jocl.cl_context create(org.jocl.cl_platform_id platform, java.util.List<org.jocl.cl_device_id> devices)
platform
- The platformdevices
- The devices
public static org.jocl.cl_context create(org.jocl.cl_platform_id platform, java.util.List<org.jocl.cl_device_id> devices, long[] additionalContextProperties)
null
.
platform
- The platformdevices
- The devicesadditionalContextProperties
- Additional context properties
public static void release(org.jocl.cl_context... contexts)
null
.
contexts
- The contexts to releasepublic static void release(java.lang.Iterable<org.jocl.cl_context> contexts)
null
.
contexts
- The contexts to release
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |