36 lines
No EOL
848 B
C++
36 lines
No EOL
848 B
C++
#ifndef DEFINED_OpenCLHelpers_H
|
|
#define DEFINED_OpenCLHelpers_H
|
|
|
|
|
|
|
|
#if defined(__APPLE__) || defined(__MACOSX)
|
|
# include <OpenCL/cl.h>
|
|
# include <OpenCL/cl_platform.h>
|
|
# include <OpenCL/cl_ext.h>
|
|
# include <OpenCL/cl_gl.h>
|
|
# include <OpenCL/cl_gl_ext.h>
|
|
#else
|
|
# include <CL/cl.h>
|
|
# include <CL/cl_platform.h>
|
|
# include <CL/cl_ext.h>
|
|
# include <CL/cl_gl.h>
|
|
# include <CL/cl_gl_ext.h>
|
|
#endif
|
|
|
|
//#define CL_HPP_ENABLE_EXCEPTIONS
|
|
#define CL_HPP_MINIMUM_OPENCL_VERSION 110
|
|
#define CL_HPP_TARGET_OPENCL_VERSION 110
|
|
#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY
|
|
|
|
#include "CL/cl2.hpp" // local instance of cl2.hpp
|
|
#include <memory>
|
|
#include <algorithm>
|
|
|
|
#include <iostream> // For printing information to the console
|
|
#include <fstream> // For reading shader files
|
|
#include <vector>
|
|
#include <sstream>
|
|
|
|
extern std::string ClErrorToString(cl_int err);
|
|
|
|
#endif |