From 4da4b0b970e770baa745f9389209cb0e30287300 Mon Sep 17 00:00:00 2001 From: Yao Lu Date: Tue, 9 Jun 2020 21:55:15 +0800 Subject: [PATCH] unsafe_wrap --- src/elemental.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elemental.jl b/src/elemental.jl index aa0862c..3198206 100644 --- a/src/elemental.jl +++ b/src/elemental.jl @@ -27,7 +27,7 @@ function copy_local_symm!(x, xd::Elemental.DistMatrix) for i in is, j in 1:size(x, 2) Elemental.queuePull(xd, i, j) end - Elemental.processPullQueue(xd, xl) + Elemental.processPullQueue(xd, unsafe_wrap(Array, pointer(xl), size(xl))) counts = MPI.Allgather(Cint(length(xl)), MPI.COMM_WORLD) MPI.Allgatherv!(vec(x), counts, MPI.COMM_WORLD) return x