<br>2008/12/30 matheus reimann &lt;<a href="mailto:mgrhferlamb2002@yahoo.it">mgrhferlamb2002@yahoo.it</a>&gt;<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; I am a newbie in the group, and I have an ask about Compilation of programs in seriel and paralell.<br>
&gt;<br>&gt; I wanna have a programm which decides if the run is parallel or seriell. P.ex.: myexe.exe -&gt; runs in seriell, and when I write: myexe.exe -parallel -&gt; runs in parallel.<br>&gt;<br>&gt; I dont wanna compile ever when I need the program in seriel or in parallel. Usually is the seriell compilation with g++ and the parallel with mpiCC. Has anybody done a program like this before???<br>
<br>mpiCC is a wrap to g++ that adds flags to find MPI include and library files.<br>You can compile both with mpiCC.<br><br>To run the serial version, you can call&nbsp; the binary directly and to run the parallel version run your program through mpirun to run inside the MPI enveronment.<br>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.