1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef MANDEL_OPENCLINTERNAL_H
- #define MANDEL_OPENCLINTERNAL_H
- #ifdef __APPLE__
- #define CL_TARGET_OPENCL_VERSION 120
- #define CL_HPP_TARGET_OPENCL_VERSION 120
- #define CL_HPP_MINIMUM_OPENCL_VERSION 120
- #else
- #define CL_TARGET_OPENCL_VERSION 120
- #define CL_HPP_TARGET_OPENCL_VERSION 120
- #define CL_HPP_MINIMUM_OPENCL_VERSION 120
- #endif
- #ifdef WITH_OPENCL
- #ifdef __APPLE__
- #include <OpenCL/cl.hpp>
- #else
- #include <CL/cl2.hpp>
- #endif
- #endif
- namespace mnd
- {
- struct ClDeviceWrapper
- {
- #ifdef WITH_OPENCL
- cl::Device device;
- cl::Context context;
- #endif
- };
- }
- #endif // MANDEL_OPENCLINTERNAL_H
|