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
y="66.582924"
sodipodi:role="line"
id="tspan17218"
- style="stroke-width:0.0891421">$./my_simulator|MSG_visualization/colorize.pl</tspan><tspan
+ style="stroke-width:0.0891421">$./my_simulator</tspan><tspan
x="186.39912 188.38054 188.71083 189.04111 189.37141 189.70169 190.03198"
y="67.293381"
sodipodi:role="line"
-p Test the use of SMPI+MSG in the same file, as well as several different SMPI instances at the same time
+p Test the use of SMPI+S4u in the same file, as well as several different SMPI instances at the same time
! output sort
$ ./masterworker_mailbox_smpi ${srcdir:=.}/../../platforms/small_platform_with_routers.xml ${srcdir:=.}/deployment_masterworker_mailbox_smpi.xml --log=smpi.:info --cfg=smpi/simulate-computation:no
> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/simulate-computation' to 'no'
</table>
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
*
* @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)
/** @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.
* 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.
"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. "
}
@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*)).
*/