projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c2a891
)
Modify according to @alalek.
author
peng xiao
<hisenxpress@gmail.com>
Tue, 3 Sep 2013 01:31:13 +0000
(09:31 +0800)
committer
peng xiao
<hisenxpress@gmail.com>
Tue, 3 Sep 2013 01:31:13 +0000
(09:31 +0800)
modules/ocl/src/gemm.cpp
patch
|
blob
|
history
diff --git
a/modules/ocl/src/gemm.cpp
b/modules/ocl/src/gemm.cpp
index
6e04bac
..
a9533b5
100644
(file)
--- a/
modules/ocl/src/gemm.cpp
+++ b/
modules/ocl/src/gemm.cpp
@@
-81,11
+81,14
@@
static Mutex cs;
void cv::ocl::clBlasSetup()
{
- AutoLock al(cs);
if(!clBlasInitialized)
{
- openCLSafeCall(clAmdBlasSetup());
- clBlasInitialized = true;
+ AutoLock al(cs);
+ if(!clBlasInitialized)
+ {
+ openCLSafeCall(clAmdBlasSetup());
+ clBlasInitialized = true;
+ }
}
}