projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ae5f1
)
Change the argument type to cl_platform_info.
author
Fangjun KUANG
<csukuangfj@gmail.com>
Wed, 15 Feb 2017 15:44:40 +0000
(16:44 +0100)
committer
GitHub
<noreply@github.com>
Wed, 15 Feb 2017 15:44:40 +0000
(16:44 +0100)
Although both `cl_platform_info` and `cl_device_info` are defined as macro `cl_uint`, it needs to use `cl_platform_info` to get
the platform information.
modules/core/src/ocl.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/ocl.cpp
b/modules/core/src/ocl.cpp
index
60ecc69
..
dfa1adb
100644
(file)
--- a/
modules/core/src/ocl.cpp
+++ b/
modules/core/src/ocl.cpp
@@
-5528,7
+5528,7
@@
struct PlatformInfo::Impl
getDevices(devices, handle);
}
- String getStrProp(cl_
device
_info prop) const
+ String getStrProp(cl_
platform
_info prop) const
{
char buf[1024];
size_t sz=0;