Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Various small fixes.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Jun 2022 08:10:10 +0000 (10:10 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Jun 2022 08:37:04 +0000 (10:37 +0200)
* parameter smpi/runnning-power has been renamed
* fix error message

[ci-skip]

docs/source/Tutorial_MPI_Applications.rst
src/smpi/internals/smpi_config.cpp

index 12d61e7..e06fb9c 100644 (file)
@@ -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
 .. 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?
 
 This should end quite quickly, as the size of each matrix is only 1000x1000.
 But what happens if we want to simulate larger runs?
index e459692..acd32c6 100644 (file)
@@ -41,7 +41,7 @@ simgrid::config::Flag<std::string> _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.",
     [](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<bool> _smpi_cfg_simulate_computation{
     }};
 
 simgrid::config::Flag<bool> _smpi_cfg_simulate_computation{