cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
spark1001
Visitor
Visitor
401 Views
Registered: ‎04-13-2021

How to use OpenCL 1.2

Jump to solution

The Document 'ug1393'  says  that the Vitis core development kit supports the OpenCL 1.2.

spark1001_0-1618542975912.png

When I use the zcu102 Vitis Embedded base platform from here ,the result of  clGetDeviceInfo says the version of OpenCL is 1.0

 

char version [100];
err=clGetDeviceInfo(devices[i],CL_DEVICE_VERSION,sizeof(version),&version,NULL);
printf("version of this device is %s\n",version);

char D_version[20];
err=clGetDeviceInfo(devices[i],CL_DRIVER_VERSION,sizeof(D_version),&D_version,NULL);
printf("version of this driver is %s\n",D_version);

spark1001_1-1618544813164.png

how to use OpenCL1.2?

0 Kudos
1 Solution

Accepted Solutions
kmorris
Xilinx Employee
Xilinx Employee
270 Views
Registered: ‎01-11-2011

Thanks for confirming. As far as the version you are seeing, this was talked about in another post:

https://forums.xilinx.com/t5/Alveo-Accelerator-Cards/Which-version-of-OpenCL-the-alveo-card-support-does-it-support-1/td-p/1230001 

so the version you are seeing would be accurate as only the host code would support the v1.2 API calls, but not the kernel.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------

View solution in original post

3 Replies
kmorris
Xilinx Employee
Xilinx Employee
323 Views
Registered: ‎01-11-2011

Just to check, have you installed the appropriate libraries for OpenCL referenced here?

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
spark1001
Visitor
Visitor
289 Views
Registered: ‎04-13-2021

I have already installed the libraries before I run my program.

0 Kudos
kmorris
Xilinx Employee
Xilinx Employee
271 Views
Registered: ‎01-11-2011

Thanks for confirming. As far as the version you are seeing, this was talked about in another post:

https://forums.xilinx.com/t5/Alveo-Accelerator-Cards/Which-version-of-OpenCL-the-alveo-card-support-does-it-support-1/td-p/1230001 

so the version you are seeing would be accurate as only the host code would support the v1.2 API calls, but not the kernel.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------

View solution in original post