OpenClInternal.h 467 B

1234567891011121314151617181920212223242526272829
  1. #ifndef MANDEL_OPENCLINTERNAL_H
  2. #define MANDEL_OPENCLINTERNAL_H
  3. #define CL_TARGET_OPENCL_VERSION 120
  4. #define CL_HPP_TARGET_OPENCL_VERSION 120
  5. #define CL_HPP_MINIMUM_OPENCL_VERSION 120
  6. #ifdef WITH_OPENCL
  7. #ifdef __APPLE__
  8. #include <OpenCL/cl.hpp>
  9. #else
  10. #include <CL/cl2.hpp>
  11. #endif
  12. #endif
  13. namespace mnd
  14. {
  15. struct ClDeviceWrapper
  16. {
  17. #ifdef WITH_OPENCL
  18. cl::Device device;
  19. cl::Context context;
  20. #endif
  21. };
  22. }
  23. #endif // MANDEL_OPENCLINTERNAL_H