Modify according to @alalek.

pull/1383/head
peng xiao 11 years ago
parent 3c2a8912ee
commit 7b3e3f69fb
  1. 9
      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;
}
}
}

Loading…
Cancel
Save