diff --git a/src/framework/cl/cl_helper.h b/src/framework/cl/cl_helper.h index a151cc050cc1547f9a0575e621ffbb59e560e5e3..5326793e089b4e5080c1a6acff6ca76ed899afde 100644 --- a/src/framework/cl/cl_helper.h +++ b/src/framework/cl/cl_helper.h @@ -15,6 +15,7 @@ limitations under the License. */ #pragma once #include +#include #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) {