From fa4f950b90efbcf8675d47d5bfb719b718cfb4c0 Mon Sep 17 00:00:00 2001 From: Markus Wittmann Date: Fri, 28 Apr 2023 11:44:49 +0200 Subject: [PATCH] fix overlapping send and recv buffers --- cilk/basic/make_local_matrix.hpp | 3 ++- cilk/src/make_local_matrix.hpp | 3 ++- cuda/basic/make_local_matrix.hpp | 3 ++- cuda/src/make_local_matrix.hpp | 3 ++- kokkos/src/make_local_matrix.hpp | 3 ++- mkl/basic/make_local_matrix.hpp | 3 ++- mkl/src/make_local_matrix.hpp | 3 ++- nvamg/basic/make_local_matrix.hpp | 3 ++- nvamg/src/make_local_matrix.hpp | 3 ++- openmp-opt-knl-memkind/src/make_local_matrix.hpp | 3 ++- openmp-opt-knl/basic/make_local_matrix.hpp | 3 ++- openmp-opt-knl/src/make_local_matrix.hpp | 3 ++- openmp-opt/basic/make_local_matrix.hpp | 3 ++- openmp-opt/src/make_local_matrix.hpp | 3 ++- openmp/basic/make_local_matrix.hpp | 3 ++- openmp/src/make_local_matrix.hpp | 3 ++- openmp45-opt/src/make_local_matrix.hpp | 3 ++- openmp45/basic/make_local_matrix.hpp | 3 ++- openmp45/src/make_local_matrix.hpp | 3 ++- qthreads/basic/make_local_matrix.hpp | 3 ++- qthreads/src/make_local_matrix.hpp | 3 ++- ref/basic/make_local_matrix.hpp | 3 ++- ref/src/make_local_matrix.hpp | 3 ++- 23 files changed, 46 insertions(+), 23 deletions(-) diff --git a/cilk/basic/make_local_matrix.hpp b/cilk/basic/make_local_matrix.hpp index 99c2cf7..1cade1e 100644 --- a/cilk/basic/make_local_matrix.hpp +++ b/cilk/basic/make_local_matrix.hpp @@ -251,9 +251,10 @@ make_local_matrix(MatrixType& A) // int MPI_MY_TAG = 99; + std::vector tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i tmp_recv_buffer(num_send_neighbors); std::vector request(num_send_neighbors); for(int i=0; i