+\label{sec:04.02}
+
+One of our objectives when simulating the application in SIMGRID is, as in real life, to get accurate results (solutions of the problem) but also ensure the test reproducibility under the same conditions. According our experience, very few modifications are required to adapt a MPI program to run in SIMGRID simulator using SMPI (Simulator MPI).The first modification is to include SMPI libraries and related header files (smpi.h). The second and important modification is to eliminate all global variables in moving them to local subroutine or using a Simgrid selector called "runtime automatic switching" (smpi/privatize\_global\_variables). Indeed, global variables can generate side effects on runtime between the threads running in the same process, generated by the Simgrid to simulate the grid environment.The last modification on the MPI program pointed out for some cases, the review of the sequence of the MPI\_Isend, MPI\_Irecv and MPI\_Waitall instructions which might cause an infinite loop.
+
+
+\paragraph{SIMGRID Simulator parameters}
+
+\begin{itemize}
+ \item hostfile: Hosts description file.
+ \item plarform: File describing the platform architecture : clusters (CPU power,
+\dots{}), intra cluster network description, inter cluster network (bandwidth bw,
+latency lat, \dots{}).
+ \item archi : Grid computational description (Number of clusters, Number of
+nodes/processors for each cluster).
+\end{itemize}
+
+
+In addition, the following arguments are given to the programs at runtime:
+
+\begin{itemize}
+ \item Maximum number of inner and outer iterations;
+ \item Inner and outer precisions;
+ \item Matrix size (N$_{x}$, N$_{y}$ and N$_{z}$);
+ \item Matrix diagonal value = 6.0;
+ \item Execution Mode: synchronous or asynchronous.
+\end{itemize}
+
+At last, note that the two solver algorithms have been executed with the Simgrid selector -cfg=smpi/running\_power which determine the computational power (here 19GFlops) of the simulator host machine.