1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

dnn(ocl): fix automatic globalsize adjusting

- if kernel code doesn't support that
This commit is contained in:
Alexander Alekhin
2021-09-04 16:27:51 +00:00
parent d11f0a709d
commit 5578ad5e14
9 changed files with 50 additions and 16 deletions
+8
View File
@@ -3160,6 +3160,14 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[],
}
bool Kernel::run_(int dims, size_t _globalsize[], size_t _localsize[],
bool sync, const Queue& q)
{
CV_Assert(p);
return p->run(dims, _globalsize, _localsize, sync, NULL, q);
}
static bool isRaiseErrorOnReuseAsyncKernel()
{
static bool initialized = false;