Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
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
10void 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
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
void opencl_check(const char *fname, const int line, const cl_int err)
Definition check.c:120