<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Thank you about the answer to my Question.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I will try this. but I believe,&nbsp;the compiler will include all the MPI's code, and I would like to disable this part with macros, because my programm works with lists and normally the list are made with pointers, and as far as I know, the MPI dont "like" pointers... So the Seriell version, when the MPI part is on, will not&nbsp;be&nbsp;optimized. </DIV>
<DIV>&nbsp;</DIV>
<DIV>With Regards</DIV>
<DIV>&nbsp;</DIV>
<DIV>Matheus<BR><BR>--- <B>Mar 30/12/08, Bruno Coutinho <I>&lt;coutinho@dcc.ufmg.br&gt;</I></B> ha scritto:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">Da: Bruno Coutinho &lt;coutinho@dcc.ufmg.br&gt;<BR>Oggetto: Re: [Beowulf] An Ask about Compilation<BR>A: beowulf@beowulf.org<BR>Data: Martedì 30 dicembre 2008, 22:12<BR><BR>
<DIV id=yiv1505090897><BR>2008/12/30 matheus reimann &lt;<A href="mailto:mgrhferlamb2002@yahoo.it" target=_blank rel=nofollow>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></DIV><PRE>_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org
To change your subscription (digest mode or unsubscribe) visit
http://www.beowulf.org/mailman/listinfo/beowulf
</PRE></BLOCKQUOTE></td></tr></table><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.