From 6d21982773e277d4d8f69819a1f429a5e4cd87a5 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Mon, 5 Sep 2022 21:58:38 +0800 Subject: [PATCH] feat(opencl/svm): add opencl svm more test GitOrigin-RevId: 3ebfbed0bdd58170ebd300ee2158de9a00dfedb2 --- src/core/impl/tensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/impl/tensor.cpp b/src/core/impl/tensor.cpp index ee0169407..6bc4d950e 100644 --- a/src/core/impl/tensor.cpp +++ b/src/core/impl/tensor.cpp @@ -65,7 +65,7 @@ void noncont_tensor_copy( } DeviceTensorND tmp; tmp.copy_from(src); - dest.copy_from_fixlayout(tmp); + dest.copy_from_fixlayout(tmp).sync(); } //! implement non-contiguous h2d copy -- GitLab