public final class CLUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
checkCLError(java.nio.ByteBuffer errorCodeBuffer)
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 errorCodeBuffer)
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 errorCodeBuffer)
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
.errorCodeBuffer
- the errcode
bufferOpenCLException
public static void checkCLError(java.nio.IntBuffer errorCodeBuffer)
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
.errorCodeBuffer
- the errcode
bufferOpenCLException
public static void checkCLError(int errcode)
errcode
- the errcode
to checkOpenCLException
public static java.lang.String getErrcodeName(int errcode)
errcode
.errcode
- the errcode
errcode
token name