From 2c6973f1ed7fbc9243f1b608955235d2682fced4 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Mon, 20 Aug 2018 14:23:12 +0200 Subject: [PATCH] [SMPI] Add comments to explain variables --- src/smpi/mpi/smpi_request.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index ebd900a46b..6a66dbf7ee 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -687,7 +687,9 @@ void Request::iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* source == MPI_ANY_SOURCE ? MPI_ANY_SOURCE : comm->group()->actor(source)->get_pid(), simgrid::s4u::this_actor::get_pid(), tag, comm, MPI_REQ_PERSISTENT | MPI_REQ_RECV); if (smpi_iprobe_sleep > 0) { - s4u::this_actor::exec_init(/* flops to execute */ nsleeps * smpi_iprobe_sleep * speed * maxrate) + /** Compute the number of flops we will sleep **/ + s4u::this_actor::exec_init(/*nsleeps: See comment above */ nsleeps * + /*(in seconds)*/ smpi_iprobe_sleep * speed * maxrate) ->set_name("iprobe") ->start() ->wait(); -- 2.20.1