public final class CLUtil
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
checkCLError(java.nio.ByteBuffer errcode_ret)
Checks the  
errcode present in the current position of the
 specified errcode_ret buffer and throws an
 OpenCLException if it's not equal to CL10.CL_SUCCESS. | 
static void | 
checkCLError(int errcode)
 | 
static void | 
checkCLError(java.nio.IntBuffer errcode_ret)
Checks the  
errcode present in the current position of the
 specified errcode_ret buffer and throws an
 OpenCLException if it's not equal to CL10.CL_SUCCESS. | 
static java.lang.String | 
getErrcodeName(int errcode)
Returns the token name of the specified  
errcode. | 
public static void checkCLError(java.nio.ByteBuffer errcode_ret)
errcode present in the current position of the
 specified errcode_ret buffer and throws an
 OpenCLException if it's not equal to CL10.CL_SUCCESS.errcode_ret - the errcode bufferOpenCLExceptionpublic static void checkCLError(java.nio.IntBuffer errcode_ret)
errcode present in the current position of the
 specified errcode_ret buffer and throws an
 OpenCLException if it's not equal to CL10.CL_SUCCESS.errcode_ret - the errcode bufferOpenCLExceptionpublic static void checkCLError(int errcode)
errcode - the errcode to checkOpenCLExceptionpublic static java.lang.String getErrcodeName(int errcode)
errcode.errcode - the errcodeerrcode token name