mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +08:00
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.
This commit is contained in:
parent
bc8a91ed83
commit
f710d96602
@ -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…
Reference in New Issue
Block a user