cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

pontiacgtx_
Journeyman III

Why does device's opencl version using cl2.hpp shows a opencl 1.2 device while the SDK has opencl 2.0?

when I get the cl::device info with CL_DEVICE_VERSION flag it shows I have a gpu compatible with opencl1.2 but it is in fact opencl 2.0 (the platform shows it is compatible with 2.1 and the Fiji has support for OpenCL 2.0)

I am using Windows 10 1809,AMD APP SDK 3.0,Adrenalin 19.5.1

so what do I need for enabling/using opencl 2.0 in the device?

0 Likes
3 Replies
dipak
Big Boss

Thank you for reporting this. Could you please share the setup details like OS, GPU card, graphics driver version, SDK etc. and provide the clinfo output?

Thanks.

0 Likes

Windows 10 1809,17763.503

R9 FURY Nitro

AMD APP OpenCL SDK 3.0

Adrenalin 19.5.1

the problem that in C++ the cl::devices in  devices.getInfo<CL_DRIVER_VERSION>() shows the device is only 1.2 but in clinfo shows it is compatible with OpenCL 2.0 AMD-APP (2841.5)

0 Likes

Thank you for sharing the above details.

As clinfo correctly reports the  device version as OpenCL 2.0 but you are observing OpenCL 1.2 from your application, I have one suggestion. Please make sure you are building the application as a 64-bit application (i.e. x64) not as a 32-bit application (i.e. Win32). Because OpenCL 2.0 is only supported for 64-bit applications.

Thanks.