|
@@ -1,16 +1,17 @@
|
|
|
#ifdef __APPLE__
|
|
#ifdef __APPLE__
|
|
|
- #include <OpenCL/opencl.h>
|
|
|
|
|
|
|
+#include <OpenCL/opencl.h>
|
|
|
#else
|
|
#else
|
|
|
- #include <CL/cl.h>
|
|
|
|
|
|
|
+#include <CL/cl.h>
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
int main()
|
|
int main()
|
|
|
{
|
|
{
|
|
|
cl_uint platformIdCount;
|
|
cl_uint platformIdCount;
|
|
|
|
|
|
|
|
- // We can't assert on the result because this may return an error if no ICD is
|
|
|
|
|
|
|
+ // We can't assert on the result because this may return an error if no ICD
|
|
|
|
|
+ // is
|
|
|
// found
|
|
// found
|
|
|
- clGetPlatformIDs (0, NULL, &platformIdCount);
|
|
|
|
|
|
|
+ clGetPlatformIDs(0, NULL, &platformIdCount);
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|