CMake/Tests/FindOpenCL/Test/main.c

18 lines
277 B
C
Raw Normal View History

2016-05-31 22:10:40 +03:00
#ifdef __APPLE__
#include <OpenCL/opencl.h>
2016-05-31 22:10:40 +03:00
#else
#include <CL/cl.h>
2016-05-31 22:10:40 +03:00
#endif
int main()
{
cl_uint platformIdCount;
// We can't assert on the result because this may return an error if no ICD
// is
2016-05-31 22:10:40 +03:00
// found
clGetPlatformIDs(0, NULL, &platformIdCount);
2016-05-31 22:10:40 +03:00
return 0;
}