From d154bc44e7cdb8d6bce85308a2c55605ab52aea8 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 3 Jun 2021 09:23:48 +0200 Subject: [PATCH] Initialize variable. --- src/smpi/mpi/smpi_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index f0d9fb601b..e63c5a8798 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -284,7 +284,7 @@ int Win::get( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, //start the send, with another process than us as sender. sreq->start(); - //push request to receiver's win + // push request to sender's win send_win->mut_->lock(); send_win->requests_.push_back(sreq); send_win->mut_->unlock(); @@ -365,7 +365,7 @@ int Win::get_accumulate(const void* origin_addr, int origin_count, MPI_Datatype XBT_DEBUG("Entering MPI_Get_accumulate from %d", target_rank); //need to be sure ops are correctly ordered, so finish request here ? slow. - MPI_Request req; + MPI_Request req = MPI_REQUEST_NULL; send_win->atomic_mut_->lock(); get(result_addr, result_count, result_datatype, target_rank, target_disp, target_count, target_datatype, &req); -- 2.20.1