The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
binding.h File Reference

Load sharing rules across worker threads. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void rebind_LPs (void)
 
void force_rebind_GLP (void)
 

Detailed Description

Load sharing rules across worker threads.

Implements load sharing rules for LPs among worker threads

This file is part of ROOT-Sim (ROme OpTimistic Simulator).

ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.

ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Author
Alessandro Pellegrini

Definition in file binding.h.

Function Documentation

void rebind_LPs ( void  )

This function is used to create a temporary binding between LPs and KLT. The first time this function is called, each worker thread sets up its data structures, and the performs a (deterministic) block allocation. This is because no runtime data is available at the time, so we "share" the load as the number of LPs. Then, successive invocations, will use the knapsack load sharing policy

Author
Alessandro Pellegrini

Definition at line 252 of file binding.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: