Merge pull request #9917 from alalek:ocl_cache_program_failures

pull/9923/head
Maksim Shabunin 7 years ago
commit bf418ba342
  1. 2
      modules/core/src/ocl.cpp

@ -1387,7 +1387,7 @@ struct Context::Impl
}
}
Program prog(src, buildflags, errmsg);
if(prog.ptr())
// Cache result of build failures too (to prevent unnecessary compiler invocations)
{
cv::AutoLock lock(program_cache_mutex);
phash.insert(std::pair<std::string, Program>(key, prog));

Loading…
Cancel
Save