Class CLException

    • Field Detail

      • errorcode

        public final int errorcode
      • error

        public final String error
    • Constructor Detail

      • CLException

        public CLException​(String message)
    • Method Detail

      • checkForError

        public static void checkForError​(int status,
                                         String message)
        Throws a CLException when status != CL_SUCCESS.
      • newException

        public static CLException newException​(int status,
                                               String message)
        Returns a CLException specific to the error code.
      • getCLErrorString

        public String getCLErrorString()
        Returns a human readable String for the OpenCL error code.
      • resolveErrorCode

        public static String resolveErrorCode​(int error)
        Returns a human readable String for the OpenCL error code or null if not known.