Package org.jocl
Class LibInitializer
java.lang.Object
org.jocl.LibInitializer
Utility class for initializing the OpenCL implementation library
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Private constructor to prevent instantiation -
Method Summary
Modifier and TypeMethodDescriptionprivate static String[]
Create a list of OpenCL shared library candidates that will be passed to the dlopen/LoadLibrary call on native side.(package private) static void
Initialize the native library by passing the name of the OpenCL implementation to theCL.initNativeLibrary(String)
method.
-
Field Details
-
logger
The logger used in this class -
level
The default log level
-
-
Constructor Details
-
LibInitializer
private LibInitializer()Private constructor to prevent instantiation
-
-
Method Details
-
initNativeLibrary
static void initNativeLibrary()Initialize the native library by passing the name of the OpenCL implementation to theCL.initNativeLibrary(String)
method.- Throws:
UnsatisfiedLinkError
- If the implementation library could not be loaded.
-
createImplementationNameCandidates
Create a list of OpenCL shared library candidates that will be passed to the dlopen/LoadLibrary call on native side. For Windows and Linux, this will be the name of the OpenCL library itself. For MacOS, it will be the path to the OpenCL framework. For Android, this will be an absolute path to the shared library.- Returns:
- A list of candidate paths / names.
-