2016-05-31 22:10:40 +03:00
|
|
|
#ifdef __APPLE__
|
2016-06-07 15:37:04 +03:00
|
|
|
#include <OpenCL/opencl.h>
|
2016-05-31 22:10:40 +03:00
|
|
|
#else
|
2016-06-07 15:37:04 +03:00
|
|
|
#include <CL/cl.h>
|
2016-05-31 22:10:40 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
cl_uint platformIdCount;
|
|
|
|
|
2016-06-07 15:37:04 +03:00
|
|
|
// 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
|
2016-06-07 15:37:04 +03:00
|
|
|
clGetPlatformIDs(0, NULL, &platformIdCount);
|
2016-05-31 22:10:40 +03:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|