Neko  0.8.99
A portable framework for high-order spectral element flow simulations
check.c File Reference
#include <CL/cl.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <device/opencl/check.h>
Include dependency graph for check.c:

Go to the source code of this file.

Macros

#define CL_ERR_STR(err)   case err: return #err
 

Functions

const char * clGetError (const cl_int err)
 
void opencl_check (const char *fname, const int line, const cl_int err)
 

Macro Definition Documentation

◆ CL_ERR_STR

#define CL_ERR_STR (   err)    case err: return #err

Definition at line 46 of file check.c.

Function Documentation

◆ clGetError()

const char* clGetError ( const cl_int  err)

Convert an OpenCL error to a string

Definition at line 51 of file check.c.

Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function: