提交 d96cac13 编写于 作者: A Alexander Alekhin

ocl: cache program build failures

To prevent unnecessary compiler invocations
上级 cca99bf8
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册