CLUtilities Class Reference

Inherits from NSObject
Declared in CLUtilities.h

+ checkError:message:

Asserts that the given error is CL_SUCCESS. Logs the given error message as well as the error code and name before triggering the assertion if an error occured.

+ (void)checkError:(cl_int)error message:(NSString *)message

Parameters

error

The OpenCL error code

message

An error message to display if code != CL_SUCCESS.

Discussion

Asserts that the given error is CL_SUCCESS. Logs the given error message as well as the error code and name before triggering the assertion if an error occured.

Declared In

CLUtilities.h