Package org.jocl
Class LibInitializer
- java.lang.Object
-
- org.jocl.LibInitializer
-
class LibInitializer extends java.lang.Object
Utility class for initializing the OpenCL implementation library
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LibInitializer()
Private constructor to prevent instantiation
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String[]
createImplementationNameCandidates()
Create a list of OpenCL shared library candidates that will be passed to the dlopen/LoadLibrary call on native side.(package private) static void
initNativeLibrary()
Initialize the native library by passing the name of the OpenCL implementation to theCL.initNativeLibrary(String)
method.
-
-
-
Method Detail
-
initNativeLibrary
static void initNativeLibrary()
Initialize the native library by passing the name of the OpenCL implementation to theCL.initNativeLibrary(String)
method.- Throws:
java.lang.UnsatisfiedLinkError
- If the implementation library could not be loaded.
-
createImplementationNameCandidates
private static java.lang.String[] 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.
-
-