mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Modify according to @alalek.
This commit is contained in:
parent
3c2a8912ee
commit
7b3e3f69fb
@ -81,12 +81,15 @@ static Mutex cs;
|
||||
|
||||
void cv::ocl::clBlasSetup()
|
||||
{
|
||||
if(!clBlasInitialized)
|
||||
{
|
||||
AutoLock al(cs);
|
||||
if(!clBlasInitialized)
|
||||
{
|
||||
openCLSafeCall(clAmdBlasSetup());
|
||||
clBlasInitialized = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cv::ocl::clBlasTeardown()
|
||||
|
Loading…
Reference in New Issue
Block a user