From f710d966020b62fd6d5af1e97c844bbe41abf287 Mon Sep 17 00:00:00 2001 From: Jinay Patel Date: Thu, 16 Feb 2017 15:20:57 +0530 Subject: [PATCH] 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. --- modules/core/src/ocl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index dfa1adb997..f38571ac4d 100644 --- a/modules/core/src/ocl.cpp +++ b/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; }