X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..f5f38e5b9cdacbf1ba1705bb7ed592b59f8e8712:/examples/smpi/simple-execute/simple-execute.c diff --git a/examples/smpi/simple-execute/simple-execute.c b/examples/smpi/simple-execute/simple-execute.c index 0f6834b836..f865162ae2 100644 --- a/examples/smpi/simple-execute/simple-execute.c +++ b/examples/smpi/simple-execute/simple-execute.c @@ -1,6 +1,6 @@ /* A simple example ping-pong program to test MPI_Send and MPI_Recv */ -/* Copyright (c) 2009-2022. 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 @@ -42,8 +42,10 @@ int main(int argc, char *argv[]) MPI_Send(&msg, 1, MPI_INT, dst, tag1, MPI_COMM_WORLD); /* Inject five seconds of fake computation time */ - /* We are in a public file, not internal to simgrid, so _benched flavour is preferred, as it protects against accidental skip */ - /* smpi_execute_benched here is mostly equivalent to sleep, which is intercepted by smpi and turned into smpi_sleep */ + /* We are in a public file, not internal to SimGrid, so _benched flavour is preferred, as it protects against + * accidental skip */ + /* smpi_execute_benched here is mostly equivalent to sleep, which is intercepted by smpi and turned into smpi_sleep + */ /* Difference with sleep is only for energy consumption */ smpi_execute_benched(5.0); @@ -56,7 +58,8 @@ int main(int argc, char *argv[]) msg++; /* Inject 762.96 Mflops of computation time - Host Jupiter is 76.296Mf per second, so this should amount to 10s */ - /* We are in a public file, not internal to simgrid, so _benched flavour is preferred, as it protects against accidental skip */ + /* We are in a public file, not internal to SimGrid, so _benched flavour is preferred, as it protects against + * accidental skip */ smpi_execute_flops_benched(762960000); printf("[%d] After a nap, increment message's value to '%d'\n", rank, msg);