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