<div>Dear Soumyajyoti, Riccardo, </div>
<div>Thanks for your input. I successfully finished the installation (it seems). I also included LD_LIBRARY_PATH as Soumya mentioned. When I tried to run examples through run_example (example01), it seems it is running in serial on single processor. I looked around a little bit and found that I need to put the path to mpiexec and no of processors in enviromental_variable files in PARA_PREFIX and PARA_POSTFIX options. When I tried that, this is what I got.</div>

<div> </div>
<div>PARA_PREFIX = ~/local/openmpi/bin/mpiexec -n 4</div>
<div>PARA_POSTFIX =</div>
<div> </div>
<div>What I got was "No executable was specified on the mpiexec command line". I though the run_example script will take care of the executable as it contain of the following lines</div>
<div> </div>
<div>PW_COMMAND="$PARA_PREFIX $BIN_DIR/pw.x $PARA_POSTFIX" <br></div>
<div>I tried searching it in archive but did not get a satisfactory answer.</div>
<div> </div>
<div> </div>
<div>Best Wishes,</div>
<div>Vikas Varshney</div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Wed, May 26, 2010 at 3:39 PM, soumyajyoti haldar <span dir="ltr"><<a href="mailto:soumyajyoti.haldar@gmail.com">soumyajyoti.haldar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, <br><br>
<div class="gmail_quote">
<div class="im">On Wed, May 26, 2010 at 9:11 PM, Riccardo Di Meo <span dir="ltr"><<a href="mailto:dimeo@democritos.it" target="_blank">dimeo@democritos.it</a>></span> wrote:<br></div>
<div class="im">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div>Vikas Varshney wrote:<br>> Dear all,<br>> I have a very simple question.<br>><br>> I have 2 mpif90 installed on my machine<br>> one in /usr/local/bin which does not have fortran support. It says<br>> "Unfortunately, this installation of Open MPU was not compiled with<br>
> Fortran 90 support ..."<br>> other one is in my local directory which was installed by me. It does<br>> have fortran compiler (ifort).<br>><br>> When, I try to run configure script to genarate makefile, it assumes<br>
> mpif90 to be the first one and results in unsuccessful configure. So,<br>> my question is that how can I direct the configure script to look for<br>> other mpif90 and the assciated libraries and header files. Where do I<br>
> need to make necessary changes? Or do I need to ask my admin to update<br>> mpif90 in /usr/local/bin (where I dont have writable access)?<br><br></div></div>Two solutions:<br><br>There's a MPIF90 environment variable, which can be set to the mpif90<br>
compiler of your choice. Just point it to your mpif90 binary in your<br>home before configuring QE. This is the standard/correct solution.<br><br>A "one size fits all" solution, which you can use also for other similar<br>
cases ,would be to make your PATH environment variable give precedence<br>to the location of the mpif90 compiler you want to use:<br><br>export PATH=<location of your mpif90>:$PATH  [bash]<br></blockquote></div>
<div><br>you need to set correct LD_LIBRARY_PATH also. Otherwise during compilation and run time it may pickup the wrong library and give you error. set this as follows <br>export LD_LIBRARY_PATH=<location of your installed openmpi directory>/lib:$LD_LIBRARY_PATH [bash]<br>
<br>and one personal experience ,by default  /usr/bin and /usr/local/bin are set as path when u boot up the system. <br>and now if you  your current mpif90 directory to PATH, it may not pick up the correct one. bcoz u have 2 mpif90, one is in /usr/bin , other is in some directory in you home.  the search order for the mpif90 depends on which folder path is loaded to your path variable first .  So if your PATH variable contains the entry of /usr/bin first then it'll not pick up the mpif90 from ur home. <br>
<br>I made some changes in my .bash_profile as follows <br><br>line 1 : unset PATH<br>line 2 : export PATH="${PATH}:<location of your mpif90>"<br>line 3: export PATH="${PATH}:/bin:/usr/bin:/usr/local/bin" and finally load "/etc/profile" again <br>
line 4: source /etc/profile <br><br>use it with extreme caution ... <br><br><br></div>
<div class="im">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><br>Hope this helps,<br>RDM<br>
<div><br>><br>> Thanks in advance.<br>><br>> Best Regards,<br>> Vikas<br></div>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>
> Pw_forum mailing list<br>> <a href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a><br>> <a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
><br><br>_______________________________________________<br>Pw_forum mailing list<br><a href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a><br><a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</blockquote></div></div><br><br>Hope this helps .... <br><br><br>SJH <br clear="all"><br>-- <br>Junior Research Fellow<br>Advance Computing Laboratory<br>Department of Physics, University of Pune<br>Ganeshkhind, Pune - 411007; INDIA<br>
<br>Tel : (+91 20) 25692678; Extn# 408<br><br>~~~***~~~***~~~***~~~***~~~***~~~***~~~***~~~<br><br>_______________________________________________<br>Pw_forum mailing list<br><a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br><br></blockquote></div><br>