public class CLPlatform extends Object
JavaCL.listPlatforms()| Modifier and Type | Class and Description |
|---|---|
static class |
CLPlatform.ContextProperties
Bit values for CL_CONTEXT_PROPERTIES
|
static class |
CLPlatform.DeviceComparator |
static class |
CLPlatform.DeviceFeature
Enums used to indicate how to choose the best CLDevice.
|
| Modifier and Type | Method and Description |
|---|---|
CLContext |
createContext(Map<CLPlatform.ContextProperties,Object> contextProperties,
CLDevice... devices)
Calls clCreateContext.
|
CLContext |
createContextFromCurrentGL() |
CLContext |
createGLCompatibleContext(CLDevice... devices)
Deprecated.
|
boolean |
equals(Object obj)
Underyling implementation pointer-based equality test
|
CLDevice |
getBestDevice() |
static CLDevice |
getBestDevice(List<CLPlatform.DeviceFeature> evals,
Collection<CLDevice> devices) |
static <E extends TypedPointer,A extends com.nativelibs4java.opencl.CLAbstractEntity> |
getEntities(A[] objects,
Pointer<E> out) |
String[] |
getExtensions()
Returns a list of extension names
Extensions defined here must be supported by all devices associated with this platform. |
String |
getName()
Platform name string.
|
String |
getProfile()
OpenCL profile string.
|
String |
getVendor()
Platform vendor string.
|
String |
getVersion()
OpenCL version string.
|
boolean |
hasExtension(String name) |
int |
hashCode()
Underyling implementation pointer-based hashCode computation
|
boolean |
isByteAddressableStoreSupported() |
boolean |
isGLSharingSupported() |
boolean |
isNVCompilerOptionsSupported() |
boolean |
isNVDeviceAttributeQuerySupported() |
CLDevice[] |
listAllDevices(boolean onlyAvailable)
Lists all the devices of the platform
|
CLDevice[] |
listCPUDevices(boolean onlyAvailable)
Lists all the CPU devices of the platform
|
CLDevice[] |
listDevices(CLDevice.Type type,
boolean onlyAvailable)
Calls clGetDeviceIDs.
|
CLDevice[] |
listGPUDevices(boolean onlyAvailable)
Lists all the GPU devices of the platform
|
void |
release()
Manual release of the OpenCL resources represented by this object.
|
String |
toString() |
void |
unloadPlatformCompiler()
Allows the implementation to release the resources allocated by the OpenCL compiler for this platform.
|
public CLDevice[] listAllDevices(boolean onlyAvailable)
onlyAvailable - if true, only returns devices that are available
see listDevices(CLDevice.Type, boolean)public CLDevice[] listGPUDevices(boolean onlyAvailable)
onlyAvailable - if true, only returns GPU devices that are available
see listDevices(CLDevice.Type, boolean)public CLDevice[] listCPUDevices(boolean onlyAvailable)
onlyAvailable - if true, only returns CPU devices that are available
see listDevices(CLDevice.Type, boolean)public static CLDevice getBestDevice(List<CLPlatform.DeviceFeature> evals, Collection<CLDevice> devices)
public CLDevice getBestDevice()
public CLContext createContextFromCurrentGL()
@Deprecated public CLContext createGLCompatibleContext(CLDevice... devices)
public CLContext createContext(Map<CLPlatform.ContextProperties,Object> contextProperties, CLDevice... devices)
devices - devices that are to form the new contextpublic CLDevice[] listDevices(CLDevice.Type type, boolean onlyAvailable)
public String getProfile()
public String getVersion()
public String[] getExtensions()
public boolean hasExtension(String name)
public boolean isNVDeviceAttributeQuerySupported()
public boolean isNVCompilerOptionsSupported()
public boolean isByteAddressableStoreSupported()
public boolean isGLSharingSupported()
public void unloadPlatformCompiler()
public void release()
public static <E extends TypedPointer,A extends com.nativelibs4java.opencl.CLAbstractEntity> Pointer<E> getEntities(A[] objects, Pointer<E> out)
public int hashCode()
Copyright © 2009-2015. All Rights Reserved.