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.
pull/8214/head
Jinay Patel 8 years ago committed by GitHub
parent bc8a91ed83
commit f710d96602
  1. 2
      modules/core/src/ocl.cpp

@ -1935,7 +1935,7 @@ String Device::OpenCL_C_Version() const
{ return p ? p->getStrProp(CL_DEVICE_OPENCL_C_VERSION) : String(); }
String Device::OpenCLVersion() const
{ return p ? p->getStrProp(CL_DEVICE_EXTENSIONS) : String(); }
{ return p ? p->getStrProp(CL_DEVICE_VERSION) : String(); }
int Device::deviceVersionMajor() const
{ return p ? p->deviceVersionMajor_ : 0; }

Loading…
Cancel
Save