main.c 277 B

1234567891011121314151617
  1. #ifdef __APPLE__
  2. #include <OpenCL/opencl.h>
  3. #else
  4. #include <CL/cl.h>
  5. #endif
  6. int main()
  7. {
  8. cl_uint platformIdCount;
  9. // We can't assert on the result because this may return an error if no ICD
  10. // is
  11. // found
  12. clGetPlatformIDs(0, NULL, &platformIdCount);
  13. return 0;
  14. }