Update ocl.cpp function Device::OpenCLVersion()
authorJinay Patel <jinay1991@gmail.com>
Thu, 16 Feb 2017 09:50:57 +0000 (15:20 +0530)
committerGitHub <noreply@github.com>
Thu, 16 Feb 2017 09:50:57 +0000 (15:20 +0530)
Instead of CL_DEVICE_EXTENSIONS in Querying OpenCLVersion, it should be CL_DEVICE_VERSION flag which needs to be passed to the function.

modules/core/src/ocl.cpp

index dfa1adb..f38571a 100644 (file)
@@ -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; }