#include <CL/cl.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <device/opencl/check.h>
Go to the source code of this file.
|
const char * | clGetError (const cl_int err) |
|
void | opencl_check (const char *fname, const int line, const cl_int err) |
|
◆ CL_ERR_STR
#define CL_ERR_STR |
( |
|
err | ) |
case err: return #err |
◆ clGetError()
const char* clGetError |
( |
const cl_int |
err | ) |
|
Convert an OpenCL error to a string
Definition at line 51 of file check.c.
◆ opencl_check()
void opencl_check |
( |
const char * |
fname, |
|
|
const int |
line, |
|
|
const cl_int |
err |
|
) |
| |
Check a OpenCL return code
Definition at line 120 of file check.c.