From: Arnaud Giersch Date: Wed, 1 Jun 2022 08:10:10 +0000 (+0200) Subject: Various small fixes. X-Git-Tag: v3.32~206 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/18d12ce561054eb897779339f3d6aca3aea1389e Various small fixes. * parameter smpi/runnning-power has been renamed * fix error message [ci-skip] --- diff --git a/docs/source/Tutorial_MPI_Applications.rst b/docs/source/Tutorial_MPI_Applications.rst index 12d61e7aa2..e06fb9cada 100644 --- a/docs/source/Tutorial_MPI_Applications.rst +++ b/docs/source/Tutorial_MPI_Applications.rst @@ -544,7 +544,7 @@ The computing part of this example is the matrix multiplication routine .. code-block:: console $ smpicxx -O3 gemm_mpi.cpp -o gemm - $ time smpirun -np 16 -platform cluster_crossbar.xml -hostfile cluster_hostfile --cfg=smpi/display-timing:yes --cfg=smpi/running-power:1000000000 ./gemm + $ time smpirun -np 16 -platform cluster_crossbar.xml -hostfile cluster_hostfile --cfg=smpi/display-timing:yes --cfg=smpi/host-speed:1000000000 ./gemm This should end quite quickly, as the size of each matrix is only 1000x1000. But what happens if we want to simulate larger runs? diff --git a/src/smpi/internals/smpi_config.cpp b/src/smpi/internals/smpi_config.cpp index e459692755..acd32c6b97 100644 --- a/src/smpi/internals/smpi_config.cpp +++ b/src/smpi/internals/smpi_config.cpp @@ -41,7 +41,7 @@ simgrid::config::Flag _smpi_cfg_host_speed_string{ [](const std::string& str) { _smpi_cfg_host_speed = xbt_parse_get_speed("smpi/host-speed", 1, str, "option smpi/host-speed"); xbt_assert(_smpi_cfg_host_speed > 0.0, "Invalid value (%s) for 'smpi/host-speed': it must be positive.", - _smpi_cfg_host_speed_string.get().c_str()); + str.c_str()); }}; simgrid::config::Flag _smpi_cfg_simulate_computation{