mirror of
https://github.com/reactos/CMake.git
synced 2025-01-06 02:58:48 +00:00
18 lines
277 B
C
18 lines
277 B
C
#ifdef __APPLE__
|
|
#include <OpenCL/opencl.h>
|
|
#else
|
|
#include <CL/cl.h>
|
|
#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;
|
|
}
|