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:
37091b0
)
Initialize OpenCL context at the end of getDevice call.
author
peng xiao
<hisenxpress@gmail.com>
Fri, 31 May 2013 08:48:40 +0000
(16:48 +0800)
committer
peng xiao
<hisenxpress@gmail.com>
Fri, 31 May 2013 08:48:40 +0000
(16:48 +0800)
Added for better compatibility with the current samples/test cases.
User now will be able to initialize OpenCL context explicitly with
ocl::getDevice api.
This may be obsoleted in future releases.
modules/ocl/src/initialization.cpp
patch
|
blob
|
history
diff --git
a/modules/ocl/src/initialization.cpp
b/modules/ocl/src/initialization.cpp
index
fd462ad
..
a9cd08b
100644
(file)
--- a/
modules/ocl/src/initialization.cpp
+++ b/
modules/ocl/src/initialization.cpp
@@
-333,6
+333,10
@@
namespace cv
oclinfo.push_back(ocltmpinfo);
}
}
+ if(devcienums > 0)
+ {
+ setDevice(oclinfo[0]);
+ }
return devcienums;
}