This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/include/CL_Helpers.h
github-classroom[bot] cd5209c3f2
Initial commit
2024-11-15 09:32:00 +00:00

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