Skip to content

Commit f710d96

Browse files
authored
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.
1 parent bc8a91e commit f710d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/ocl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ String Device::OpenCL_C_Version() const
19351935
{ return p ? p->getStrProp(CL_DEVICE_OPENCL_C_VERSION) : String(); }
19361936

19371937
String Device::OpenCLVersion() const
1938-
{ return p ? p->getStrProp(CL_DEVICE_EXTENSIONS) : String(); }
1938+
{ return p ? p->getStrProp(CL_DEVICE_VERSION) : String(); }
19391939

19401940
int Device::deviceVersionMajor() const
19411941
{ return p ? p->deviceVersionMajor_ : 0; }

0 commit comments

Comments
 (0)