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 Details

    • logger

      private static final Logger logger
    • openCLAvailable

      private static boolean openCLAvailable
    • instance

      private static final OpenCLLoader instance
  • Constructor Details

    • OpenCLLoader

      public OpenCLLoader()
  • Method Details

    • 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