Package com.aparapi.internal.opencl
Class OpenCLLoader
java.lang.Object
com.aparapi.internal.jni.OpenCLJNI
com.aparapi.internal.opencl.OpenCLLoader
This class is intended to be a singleton which determines if OpenCL is available upon startup of Aparapi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final OpenCLLoader
private static final Logger
private static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static OpenCLLoader
Retrieve a singleton instance of OpenCLLoaderstatic boolean
Retrieve the status of whether OpenCL was successfully loadedMethods inherited from class com.aparapi.internal.jni.OpenCLJNI
createKernelJNI, createProgram, createProgram, disposeKernel, disposeProgram, getBytes, getMem, getPlatforms, getProfileInfo, invoke, remap
-
Field Details
-
logger
-
openCLAvailable
private static boolean openCLAvailable -
instance
-
-
Constructor Details
-
OpenCLLoader
public OpenCLLoader()
-
-
Method Details
-
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
-