opencl.cpp 383 B

123456789101112131415161718192021
  1. // custom OpenCL headers are located in "CL" subfolder (3rdparty/include/...)
  2. #include <CL/cl.h>
  3. #ifndef _MSC_VER
  4. #ifdef CL_VERSION_1_2
  5. #error OpenCL is valid
  6. #else
  7. #error OpenCL check failed
  8. #endif
  9. #else
  10. #ifdef CL_VERSION_1_2
  11. #pragma message ("OpenCL is valid")
  12. #else
  13. #pragma message ("OpenCL check failed")
  14. #endif
  15. #endif
  16. int main(int /*argc*/, char** /*argv*/)
  17. {
  18. return 0;
  19. }