Supressing openclwork.cpp deprecation warnings

openclwork.cpp:570:13: warning: ‘_cl_command_queue*
clCreateCommandQueue(cl_context, cl_device_id,
cl_command_queue_properties, cl_int*)’ is deprecated
[-Wdeprecated-declarations]
queue = clCreateCommandQueue (context, selected_devices [0], 0,
&queue_error);
This commit is contained in:
SergiySW 2017-12-28 10:49:44 +03:00 committed by clemahieu
commit 796759b6f7

View file

@ -12,7 +12,8 @@
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <CL/cl.h>
#endif
namespace rai