The CLCapabilities instance returned by getICD() contains function pointers for all functionality present in the ICD. This may include
multiple platforms with very different capabilities. It should only be used if direct access to the ICD function pointers is required, for customization
purposes.
Platform capabilities can be created with createPlatformCapabilities. Calling this method is expensive, so CLCapabilities instances
should be cached in user code.
Device capabilities can be created with createDeviceCapabilities. Calling this method is expensive, so CLCapabilities instances should
be cached in user code.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static FunctionProviderLocal | |
| private static CLCapabilities |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | addCLVersions(int MAJOR, int MINOR, Set<String> supportedExtensions)
Must be called after addExtensions. |
| private static void | addCLVersions(int MAJOR, int MINOR, Set<String> supportedExtensions, String postfix, int[][] versions)
|
| pack-priv static void | |
| pack-priv static <T> T | |
| private static void | |
| public static void | |
| public static void | |
| private static void | |
| public static void | create(FunctionProviderLocal
the provider of OpenCL function addresses functionProvider)Initializes OpenCL with the specified |
| public static CLCapabilities | Returns: theinstancethe device to query cl_device_id, CLCapabilities platformCapabilities)Creates a |
| public static CLCapabilities | Returns: theinstancethe platform to query cl_platform_id)Creates a |
| public static void | |
| private static String | |
| public static FunctionProviderLocal | |
| public static CLCapabilities | |
| private static String |
| functionProvider | back to summary |
|---|---|
| private static FunctionProviderLocal functionProvider
| |
| icd | back to summary |
|---|---|
| private static CLCapabilities icd
| |
| CL | back to summary |
|---|---|
| private CL() | |
| addCLVersions | back to summary |
|---|---|
| pack-priv static void addCLVersions(int MAJOR, int MINOR, Set<String> supportedExtensions) Must be called after addExtensions. | |
| addCLVersions | back to summary |
|---|---|
| private static void addCLVersions(int MAJOR, int MINOR, Set<String> supportedExtensions, String postfix, int[][] versions) | |
| addExtensions | back to summary |
|---|---|
| pack-priv static void addExtensions(String extensionsString, Set<String> supportedExtensions) | |
| check | back to summary |
|---|---|
| pack-priv static <T> T check(T t) | |
| checkCLError | back to summary |
|---|---|
| private static void checkCLError(int errcode) | |
| create | back to summary |
|---|---|
| public static void create() Loads the OpenCL native library, using the default library name. | |
| create | back to summary |
|---|---|
| public static void create(String libName) Loads the OpenCL native library, using the specified library name.
| |
| create | back to summary |
|---|---|
| private static void create(SharedLibrary OPENCL) | |
| create | back to summary |
|---|---|
| public static void create(FunctionProviderLocal functionProvider) Initializes OpenCL with the specified
| |
| createDeviceCapabilities | back to summary |
|---|---|
| public static CLCapabilities createDeviceCapabilities(long cl_device_id, CLCapabilities platformCapabilities) Creates a This method call is relatively expensive. The result should be cached and reused.
| |
| createPlatformCapabilities | back to summary |
|---|---|
| public static CLCapabilities createPlatformCapabilities(long cl_platform_id) Creates a This method call is relatively expensive. The result should be cached and reused.
| |
| destroy | back to summary |
|---|---|
| public static void destroy() Unloads the OpenCL native library. | |
| getDeviceInfoStringASCII | back to summary |
|---|---|
| private static String getDeviceInfoStringASCII(long cl_device_id, int param_name) | |
| getFunctionProvider | back to summary |
|---|---|
| public static FunctionProviderLocal getFunctionProvider() Returns the | |
| getICD | back to summary |
|---|---|
| public static CLCapabilities getICD() Returns the | |
| getPlatformInfoStringASCII | back to summary |
|---|---|
| private static String getPlatformInfoStringASCII(long cl_platform_id, int param_name) | |