OpenClInternal.h 617 B

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