Package com.aparapi.internal.opencl
Class OpenCLLoader
- java.lang.Object
-
- com.aparapi.internal.jni.OpenCLJNI
-
- com.aparapi.internal.opencl.OpenCLLoader
-
public class OpenCLLoader extends OpenCLJNI
This class is intended to be a singleton which determines if OpenCL is available upon startup of Aparapi
-
-
Field Summary
Fields Modifier and Type Field Description private static OpenCLLoader
instance
private static java.util.logging.Logger
logger
private static boolean
openCLAvailable
-
Constructor Summary
Constructors Constructor Description OpenCLLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static OpenCLLoader
getInstance()
Retrieve a singleton instance of OpenCLLoaderstatic boolean
isOpenCLAvailable()
Retrieve the status of whether OpenCL was successfully loaded-
Methods inherited from class com.aparapi.internal.jni.OpenCLJNI
createKernelJNI, createProgram, createProgram, disposeKernel, disposeProgram, getBytes, getMem, getPlatforms, getProfileInfo, invoke, remap
-
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
openCLAvailable
private static boolean openCLAvailable
-
instance
private static final OpenCLLoader instance
-
-
Method Detail
-
getInstance
protected static OpenCLLoader getInstance()
Retrieve a singleton instance of OpenCLLoader- Returns:
- A singleton instance of OpenCLLoader
-
isOpenCLAvailable
public static boolean isOpenCLAvailable()
Retrieve the status of whether OpenCL was successfully loaded- Returns:
- The status of whether OpenCL was successfully loaded
-
-