Commit 7b3e3f69 authored by peng xiao's avatar peng xiao

Modify according to @alalek.

parent 3c2a8912
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment