diff options
Diffstat (limited to 'Tests/FindOpenCL/Test/main.c')
-rw-r--r-- | Tests/FindOpenCL/Test/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/FindOpenCL/Test/main.c b/Tests/FindOpenCL/Test/main.c new file mode 100644 index 0000000..b075caf --- /dev/null +++ b/Tests/FindOpenCL/Test/main.c @@ -0,0 +1,16 @@ +#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; +} |