next up previous contents
Next: Parallel method context Up: Configuring the PaCO++ layer Previous: Configuring the PaCO++ layer   Contents

Global context

To configure the global context, you three things to do :

  1. You have to configure the communication, the distribution, the thread and the scheduling library that you want to use in your application. To do this, you register one or many libraries of each types into the fabric manager. The figure [*] shows an example.

  2. The second step is to give the topology of the parallel object. The PaCO++ layer only needs the object nodes number.The figure [*] shows an example.

  3. Finally, you indicates that you are a parallel client with the setTypeClient method. The figure [*] shows an example.

Figure: Communication, distribution, thread and scheduling libraries registration
\begin{figure}\begin{verbatimtab}
paco_fabrique_manager* pfm = paco_getFabrique...
...heduling(''direct'', new paco_direct_fabrique());
\end{verbatimtab}
\end{figure}

Figure: Topology initialisation
\begin{figure}\begin{verbatimtab}
PaCO::PacoTopology_t client_topo;
client_top...
...umprocs;
global_ptr->setClientTopo(client_topo);
\end{verbatimtab}
\end{figure}

Figure: You are a parallel client
\begin{figure}\begin{verbatimtab}
global_ptr->setTypeClient(true);
\end{verbatimtab}
\end{figure}


next up previous contents
Next: Parallel method context Up: Configuring the PaCO++ layer Previous: Configuring the PaCO++ layer   Contents
2013-04-10