Commit f710d966 authored by Jinay Patel's avatar Jinay Patel Committed by GitHub

Update ocl.cpp function Device::OpenCLVersion()

Instead of CL_DEVICE_EXTENSIONS in Querying OpenCLVersion, it should be CL_DEVICE_VERSION flag which needs to be passed to the function.
parent bc8a91ed
...@@ -1935,7 +1935,7 @@ String Device::OpenCL_C_Version() const ...@@ -1935,7 +1935,7 @@ String Device::OpenCL_C_Version() const
{ return p ? p->getStrProp(CL_DEVICE_OPENCL_C_VERSION) : String(); } { return p ? p->getStrProp(CL_DEVICE_OPENCL_C_VERSION) : String(); }
String Device::OpenCLVersion() const String Device::OpenCLVersion() const
{ return p ? p->getStrProp(CL_DEVICE_EXTENSIONS) : String(); } { return p ? p->getStrProp(CL_DEVICE_VERSION) : String(); }
int Device::deviceVersionMajor() const int Device::deviceVersionMajor() const
{ return p ? p->deviceVersionMajor_ : 0; } { return p ? p->deviceVersionMajor_ : 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment