2016-02-04 16:55:00 +08:00
|
|
|
// custom OpenCL headers are located in "CL" subfolder (3rdparty/include/...)
|
2013-09-15 06:45:02 +08:00
|
|
|
#include <CL/cl.h>
|
|
|
|
|
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;
|
|
|
|
}
|