File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
dpctl/tensor/libtensor/source Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
22
// / This file defines functions of dpctl.tensor._tensor_impl extensions
23
23
// ===--------------------------------------------------------------------===//
24
24
25
- #include < cstddef>
26
- #include < stdexcept>
25
+ #include < algorithm> // for std::copy
26
+ #include < cstddef> // for std::size_t
27
+ #include < memory> // for std::make_shared
28
+ #include < stdexcept> // for std::runtime_error
29
+ #include < utility> // for std::pair, std::move
30
+ #include < vector> // for std::vector, std::begin, std::end
31
+
27
32
#include < sycl/sycl.hpp>
28
- #include < utility>
29
- #include < vector>
30
33
31
34
#include " dpctl4pybind11.hpp"
32
35
#include < pybind11/pybind11.h>
@@ -206,7 +209,8 @@ usm_ndarray_triul(sycl::queue &exec_q,
206
209
const auto &ctx = exec_q.get_context ();
207
210
using dpctl::tensor::alloc_utils::sycl_free_noexcept;
208
211
cgh.host_task (
209
- [shp_host_shape_and_strides, dev_shape_and_strides, ctx]() {
212
+ [shp_host_shape_and_strides = std::move (shp_host_shape_and_strides),
213
+ dev_shape_and_strides, ctx]() {
210
214
// capture of shp_host_shape_and_strides ensure the underlying
211
215
// vector exists for the entire execution of copying kernel
212
216
sycl_free_noexcept (dev_shape_and_strides, ctx);
You can’t perform that action at this time.
0 commit comments