Added opencl.hpp to define variables and import opencl

Added opencl.cpp to get OpenCL error strings
This commit is contained in:
T.D. (Tongdong) Qiu
2020-07-07 13:05:22 +02:00
parent 91591abd56
commit ab49f60eca
7 changed files with 136 additions and 17 deletions

View File

@@ -20,11 +20,7 @@
#ifndef OPM_OPENCLSOLVER_BACKEND_HEADER_INCLUDED
#define OPM_OPENCLSOLVER_BACKEND_HEADER_INCLUDED
#if HAVE_OPENCL
#define __CL_ENABLE_EXCEPTIONS
#include <CL/cl.hpp> // up to OpenCL 1.2
#endif
#include <opm/simulators/linalg/bda/opencl.hpp>
#include <opm/simulators/linalg/bda/BdaResult.hpp>
#include <opm/simulators/linalg/bda/BdaSolver.hpp>