opencl.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // #ifdef __cplusplus
  2. // extern "C" {
  3. // #endif
  4. //===============================================================================================================================================================================================================200
  5. // INCLUDE/DEFINE
  6. //===============================================================================================================================================================================================================200
  7. #include <stdio.h> // (in path known to compiler) needed by printf
  8. #include <CL/cl.h> // (in path specified to compiler) needed by OpenCL types
  9. //===============================================================================================================================================================================================================200
  10. // LOAD KERNEL SOURCE CODE FUNCTION HEADER
  11. //===============================================================================================================================================================================================================200
  12. char *
  13. load_kernel_source(const char *filename);
  14. //===============================================================================================================================================================================================================200
  15. // PRINT ERROR FUNCTION HEADER
  16. //===============================================================================================================================================================================================================200
  17. void
  18. fatal(const char *s);
  19. //===============================================================================================================================================================================================================200
  20. // PRINT OPENCL ERROR FUNCTION HEADER
  21. //===============================================================================================================================================================================================================200
  22. void
  23. fatal_CL(cl_int error, int line_no);
  24. //===============================================================================================================================================================================================================200
  25. // END
  26. //===============================================================================================================================================================================================================200
  27. // #ifdef __cplusplus
  28. // }
  29. // #endif