opencl.cpp 363 Bytes
Newer Older
1 2 3 4 5 6
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif

7
#ifndef _MSC_VER
8
#ifdef CL_VERSION_1_2
9
#error OpenCL is valid
10
#else
11
#error OpenCL check failed
12
#endif
13 14 15 16 17 18 19 20 21 22
#else
#ifdef CL_VERSION_1_2
#pragma message ("OpenCL is valid")
#else
#pragma message ("OpenCL check failed")
#endif
#endif

int main(int /*argc*/, char** /*argv*/)
{
23 24
    return 0;
}