X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ed26e84f533a3dc510abdc384aee02506ab9798b..HEAD:/examples/smpi/trace/trace.c diff --git a/examples/smpi/trace/trace.c b/examples/smpi/trace/trace.c index d995984fad..0ae2cefbb7 100644 --- a/examples/smpi/trace/trace.c +++ b/examples/smpi/trace/trace.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2010, 2012-2015. The SimGrid Team. +/* Copyright (c) 2009-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,6 +7,7 @@ #include #include "mpi.h" #include "simgrid/instr.h" +#include #define DATATOSENT 100000 @@ -18,7 +19,7 @@ int main(int argc, char *argv[]) MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); - + sleep(rank); /** Tests: * A: 0(isend -> wait) with 1(recv) * B: 0(send) with 1(irecv -> wait)