OpenClInternal.h 345 B

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