Neko  0.9.0
A portable framework for high-order spectral element flow simulations
check.h
Go to the documentation of this file.
1 #ifndef __CL_CHECK_H
2 #define __CL_CHECK_H
3 
4 #ifdef __APPLE__
5 #include <OpenCL/cl.h>
6 #else
7 #include <CL/cl.h>
8 #endif
9 
10 void opencl_check(const char *fname, const int line, const cl_int err);
11 
12 #define CL_CHECK(err) opencl_check(__FILE__, __LINE__, err)
13 
14 #endif
void opencl_check(const char *fname, const int line, const cl_int err)
Definition: check.c:120