os-fpga / 1st-CLaaS

Framework for developing and deploying FPGA logic in the cloud as a microservice for web and cloud applications
BSD 3-Clause "New" or "Revised" License
197 stars 42 forks source link

OpenCL warnings #33

Open stevehoover opened 5 years ago

stevehoover commented 5 years ago

As of SDK 2018.3, OpenCL reports the following warnings:

source ../out/hw_emu/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/rtl_kernel_wiz.tcl -notrace
../../../framework/host/kernel.c: In member function ‘void Kernel::initialize_platform()’:
../../../framework/host/kernel.c:143:14: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1443) [-Wdeprecated-declarations]
   commands = clCreateCommandQueue(context, device_id, 0, &err);
              ^
../../../framework/host/kernel.c:143:62: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1443) [-Wdeprecated-declarations]
   commands = clCreateCommandQueue(context, device_id, 0, &err);
                                                              ^
../../../framework/host/kernel.c: In member function ‘void Kernel::start_kernel()’:
../../../framework/host/kernel.c:259:9: warning: ‘cl_int clEnqueueTask(cl_command_queue, cl_kernel, cl_uint, _cl_event* const*, _cl_event**)’ is deprecated (declared at /usr/include/CL/cl.h:1457) [-Wdeprecated-declarations]
   err = clEnqueueTask(commands, kernel, 0, NULL, NULL);
         ^
../../../framework/host/kernel.c:259:54: warning: ‘cl_int clEnqueueTask(cl_command_queue, cl_kernel, cl_uint, _cl_event* const*, _cl_event**)’ is deprecated (declared at /usr/include/CL/cl.h:1457) [-Wdeprecated-declarations]
   err = clEnqueueTask(commands, kernel, 0, NULL, NULL);