From 209b2c14ca411bd87d8c1eb856cb7bf5013d76ef Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 14 Jan 2023 15:27:20 +0100 Subject: [PATCH] Remove more references to MSG in documentation. [ci-skip] --- docs/source/Configuring_SimGrid.rst | 2 +- docs/source/img/graphical-toc.svg | 2 +- examples/smpi/smpi_s4u_masterworker/s4u_smpi.tesh | 2 +- src/plugins/host_energy.cpp | 4 ++-- src/s4u/s4u_Host.cpp | 2 +- src/s4u/s4u_VirtualMachine.cpp | 4 ++-- src/surf/xml/surfxml_sax_cb.cpp | 5 +---- src/xbt/dynar.cpp | 9 --------- 8 files changed, 9 insertions(+), 21 deletions(-) diff --git a/docs/source/Configuring_SimGrid.rst b/docs/source/Configuring_SimGrid.rst index 31139cbce6..05db361b2c 100644 --- a/docs/source/Configuring_SimGrid.rst +++ b/docs/source/Configuring_SimGrid.rst @@ -544,7 +544,7 @@ the correspondent receive. This threshold can be configured through the ``smpi/async-small-thresh`` item. The default value is 0. This behavior can also be manually set for mailboxes, by setting the receiving mode of the mailbox with a call to -:cpp:func:`MSG_mailbox_set_async`. After this, all messages sent to +:cpp:func:`sg_mailbox_set_receiver`. After this, all messages sent to this mailbox will have this behavior regardless of the message size. This value needs to be smaller than or equals to the threshold set at diff --git a/docs/source/img/graphical-toc.svg b/docs/source/img/graphical-toc.svg index a10042169e..aeaf4908c7 100644 --- a/docs/source/img/graphical-toc.svg +++ b/docs/source/img/graphical-toc.svg @@ -5773,7 +5773,7 @@ y="66.582924" sodipodi:role="line" id="tspan17218" - style="stroke-width:0.0891421">$./my_simulator|MSG_visualization/colorize.pl$./my_simulator [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/simulate-computation' to 'no' diff --git a/src/plugins/host_energy.cpp b/src/plugins/host_energy.cpp index 2f49bd433c..32af0e36b4 100644 --- a/src/plugins/host_energy.cpp +++ b/src/plugins/host_energy.cpp @@ -94,8 +94,8 @@ This encodes the following values: To change the pstate of a given CPU, use the following functions: -:cpp:func:`MSG_host_get_nb_pstates()`, :cpp:func:`simgrid::s4u::Host::set_pstate()`, -:cpp:func:`MSG_host_get_power_peak_at()`. +:cpp:func:`sg_host_get_nb_pstates()`, :cpp:func:`simgrid::s4u::Host::set_pstate()`, +:cpp:func:`sg_host_get_pstate_speed()`. .. raw:: html diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 34fdb6844b..67936f54da 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -552,7 +552,7 @@ void sg_host_turn_on(sg_host_t host) * * @brief Stop the host if it is on * - * See also #MSG_host_is_on() to test the current state of the host and @ref plugin_host_energy + * See also #sg_host_is_on() to test the current state of the host and @ref plugin_host_energy * for more info on DVFS. */ void sg_host_turn_off(sg_host_t host) diff --git a/src/s4u/s4u_VirtualMachine.cpp b/src/s4u/s4u_VirtualMachine.cpp index 2c60323846..2f15e4e21d 100644 --- a/src/s4u/s4u_VirtualMachine.cpp +++ b/src/s4u/s4u_VirtualMachine.cpp @@ -119,7 +119,7 @@ VirtualMachine* VirtualMachine::set_ramsize(size_t ramsize) /** @brief Set a CPU bound for a given VM. * @ingroup msg_VMs * - * 1. Note that in some cases MSG_task_set_bound() may not intuitively work for VMs. + * 1. Note that in some cases sg_exec_set_bound() may not intuitively work for VMs. * * For example, * On PM0, there are Task1 and VM0. @@ -137,7 +137,7 @@ VirtualMachine* VirtualMachine::set_ramsize(size_t ramsize) * It should be the sum of all tasks on the VM. But, this solution might be costly, because we have to scan all tasks * on the VM in share_resource() or we have to trap both the start and end of task execution. * - * The current solution is to use setBound(), which allows us to directly set the bound of the dummy CPU action. + * The current solution is to use set_bound(), which allows us to directly set the bound of the dummy CPU action. * * 2. Note that bound == 0 means no bound (i.e., unlimited). But, if a host has multiple CPU cores, the CPU share of a * computation task (or a VM) never exceeds the capacity of a CPU core. diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index c054e0580d..a47b4f20be 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -187,10 +187,7 @@ void STag_surfxml_platform() { "available in the tools/ directory of the source archive.\n" "Please check also out the SURF section of the ChangeLog for " - "the 3.1 version for more information. \n" - - "Last, do not forget to also update your values for " - "the calls to MSG_task_create (if any)."); + "the 3.1 version for more information."); surf_parse_assert(version >= 300L, "******* BIG FAT WARNING *********\n " "You're using an old XML file.\n" "Use simgrid_update_xml to update your file automatically. " diff --git a/src/xbt/dynar.cpp b/src/xbt/dynar.cpp index 2872072156..c26c077443 100644 --- a/src/xbt/dynar.cpp +++ b/src/xbt/dynar.cpp @@ -353,15 +353,6 @@ void xbt_dynar_map(const_xbt_dynar_t dynar, void_f_pvoid_t op) } @endverbatim * - * And now, a function to sort a dynar of MSG hosts depending on their speed: - * @verbatim - int cmpfunc(const MSG_host_t a, const MSG_host_t b) { - MSG_host_t hostA = *(MSG_host_t*)a; - MSG_host_t hostB = *(MSG_host_t*)b; - return MSG_host_get_speed(hostA) - MSG_host_get_speed(hostB); - } - @endverbatim - * * @param dynar the dynar to sort * @param compar_fn comparison function of type (int (compar_fn*) (const void*) (const void*)). */ -- 2.20.1