next up previous contents
Next: Writing the server part Up: Configuring the PaCO++ layer Previous: Global context   Contents

Parallel method context

For each parallel method where there is one or many distributed argument, you have to initialise the method context.

To configure the method context, you two things to do :

  1. For distributed argument you have to set the right distribution library. To do this, you have to rfor each distributed argument the right library. The figure [*] shows an example.

  2. Secondly you have to configure the algorille library with the methods set_beta and set_k.The figure [*] shows an example.

Figure: Set the distribution libraries
\begin{figure}\begin{verbatimtab}
PaCO_operation * latence_ptr =
serveur->get...
...;
latence_ptr->setDisLibArg(0,''GaBro'',''in'');
\end{verbatimtab}
\end{figure}

Figure: Initialiation of the algorille library
\begin{figure}\begin{verbatimtab}
paco_comScheduling_libgraph* libgraph_ptr =
...
...
method_ptr->set_beta(1);
method_ptr->set_k(1);
\end{verbatimtab}
\end{figure}

We do not show distribution libraries configurations. This is dependent to the distribution library.



2013-04-10