提交 5c2cf053 编写于 作者: R Ray Liu 提交者: GitHub

Merge pull request #1022 from codeWorm2015/opencl

correct unique_ptr use
......@@ -15,6 +15,7 @@ limitations under the License. */
#pragma once
#include <vector>
#include <type_traits>
#include "framework/cl/cl_scope.h"
#include "framework/cl/cl_deleter.h"
......@@ -30,7 +31,7 @@ class CLHelper {
void AddKernel(const std::string &kernel_name, const std::string &file_name) {
auto kernel = scope_->GetKernel(kernel_name, file_name);
kernels.emplace_back(kernel);
kernels.emplace_back(std::move(kernel));
}
cl_kernel KernelAt(const int index) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册