未验证 提交 74fc489f 编写于 作者: Y Yuan Shuai 提交者: GitHub

[LITE][OPENCL] remove clReleaseProgram. clReleaseKernel. test=develop (#3390)

上级 c8918d89
......@@ -29,13 +29,13 @@ class CLContext {
public:
~CLContext() {
for (size_t kidx = 0; kidx < kernels_.size(); ++kidx) {
clReleaseKernel(kernels_[kidx]->get());
// Note(ysh329): Don't need `clReleaseKernel`
kernels_[kidx].reset();
}
kernels_.clear();
kernel_offset_.clear();
for (auto &p : programs_) {
clReleaseProgram(p.second->get());
// Note(ysh329): Dont't need `clReleaseProgram`
p.second.reset();
}
programs_.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册