18 lines
281 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
#ifdef __APPLE__
2018-08-09 18:06:22 +02:00
# include <OpenCL/opencl.h>
2016-10-30 18:24:19 +01:00
#else
2018-08-09 18:06:22 +02:00
# include <CL/cl.h>
2016-10-30 18:24:19 +01:00
#endif
int main()
{
cl_uint platformIdCount;
// We can't assert on the result because this may return an error if no ICD
// is
// found
clGetPlatformIDs(0, NULL, &platformIdCount);
return 0;
}