2013-09-15 06:45:02 +08:00
|
|
|
#if defined __APPLE__
|
|
|
|
#include <OpenCL/cl.h>
|
|
|
|
#else
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#endif
|
|
|
|
|
2013-10-19 00:43:34 +08:00
|
|
|
#ifndef _MSC_VER
|
2013-09-15 06:45:02 +08:00
|
|
|
#ifdef CL_VERSION_1_2
|
2013-10-11 23:30:47 +08:00
|
|
|
#error OpenCL is valid
|
2013-09-15 06:45:02 +08:00
|
|
|
#else
|
2013-10-11 23:30:47 +08:00
|
|
|
#error OpenCL check failed
|
2013-09-15 06:45:02 +08:00
|
|
|
#endif
|
2013-10-19 00:43:34 +08:00
|
|
|
#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*/)
|
|
|
|
{
|
2013-09-15 06:45:02 +08:00
|
|
|
return 0;
|
|
|
|
}
|