Ubuntu上运行opencl程序问题
#clCreateCommandQueue函数被弃用
virtualbox虚拟机中Ubuntu运行opencl程序时出现clCreateCommandQueue函数被弃用
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b5ffaff07eaaca14997655376b3450c6.png)
clCreateCommandQueue函数是opencl1.2中的,在intel的OpenCL2.0中被废弃,取而代之的是clCreateCommandQueueWithProperties。
本机上的opencl版本为2.1版本
需要在程序前面加上
- #define CL_USE_DEPRECATED_OPENCL_1_2_APIS
- #include <CL/cl.h>