summaryrefslogtreecommitdiffstats
path: root/Tests/FindOpenCL/Test/main.c
blob: 2fe949bd012c8fbd52ee19f79612e8d9b5af065a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}