<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi<br>
    <br>
    The application is RAMS meteorological model (<a class="moz-txt-link-freetext" href="http://www.atmet.com">http://www.atmet.com</a>)
    mostly build in Fortran and some C. Compile options for RAMS are<br>
    <br>
    <code>MAKE=/usr/bin/make<br>
      <br>
      # libraries.<br>
      <br>
      LIBUTILS=./utils/libutils-$(UTILS_VERSION)-opt.a<br>
      <br>
      # Activate appropriate parts below, comment out others.<br>
      <br>
      #---------------------------------------------------------------<br>
      # NCAR Graphics.<br>
      #---------------------------------------------------------------<br>
      #---------------------------------------------------------------<br>
      # If you are using a real distribution of NCAR Graphics...<br>
      NCARG_DIR=/usr/local/ncarg-4.4.2/lib<br>
      LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c
      -L/usr/local/ncarg-4.4.2/ncarg2d/src/libncarg_gks \<br>
               -L/usr/lib/i386-linux-gnu -lpthread -ldl -lc -lgcc_eh
      -lX11<br>
      #---------------------------------------------------------------<br>
      <br>
      #---------------------------------------------------------------<br>
      # HDF libraries<br>
      #---------------------------------------------------------------<br>
      HDF5_LIBS=-L/usr/local/hdf5/lib -lhdf5 -lz -lm<br>
      HDF5_INCS=/usr/local/hdf5/include<br>
      HDF5_DEFS=-DH5_USE_16_API<br>
      <br>
      <br>
      #---------------------------------------------------------------<br>
      # Machine-dependent options.<br>
      #---------------------------------------------------------------<br>
      <br>
      #-----------------  LINUX Portland Group pgf90/gcc ---------------<br>
      CMACH=PC_LINUX1<br>
      F_COMP=/opt/intel/bin/ifort<br>
      F_OPTS=-O3 -FR -fpp -assume byterecl -DRAMS_SUPPORT<br>
      <br>
      C_COMP=/opt/intel/bin/icc<br>
      C_OPTS=-O3 -DUNDERSCORE -DLITTLE<br>
      LOADER=/opt/intel/bin/ifort<br>
      LOADER_OPTS=<br>
      LIBS=<br>
      ARCHIVE=ar rs</code><br>
    <br>
    MPI_PATH=/usr/bin<br>
    PAR_INCS=-I/usr/local/include<br>
    PAR_LIBS=-L/usr/local/lib/ -lmpich<br>
    PAR_DEFS=-DRAMS_MPI<br>
    <br>
    <br>
    Regarding mpich2 path I installed from Ubuntu repositories with
    apt-get. Previously I just removed everything I found from mpi but
    can't be sure there was not anything left.<br>
    <br>
    When running in parallel from batch I get some processes running on
    the master node<br>
    <br>
    meteo     8288  7559  0 13:03 ?        00:00:00 time /usr/bin/mpirun
    -n 40 -f machinefile ./rams60 -f RAMSIN.operatiu<br>
    meteo     8289  8288  0 13:03 ?        00:00:00 /usr/bin/mpirun -n
    40 -f machinefile ./rams60 -f RAMSIN.operatiu<br>
    meteo     8295  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8296  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8297  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8298  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8299  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8300  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8301  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    meteo     8302  8290  0 13:03 ?        00:00:00 ./rams60 -f
    RAMSIN.operatiu<br>
    <br>
    When running mpirun from command line processes start in all nodes.
    There is still another problem that could or not be related to
    mpich, met model returns NaN where there should be numbers (values
    for meteorological variables) but maybe this has a completely
    different origin as initial data,...<br>
    <br>
    Thanks again <br>
    <br>
    <div class="moz-cite-prefix">El 22/04/2014 16:41, Reuti escribió:<br>
    </div>
    <blockquote
      cite="mid:BF4AE41C-B155-49F4-8C6C-4C2412AED781@staff.uni-marburg.de"
      type="cite">
      <pre wrap="">Am 22.04.2014 um 09:18 schrieb Francisco Pastor:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi and sorry for the delay in answering. I was out on holidays since Friday.

I recompiled the appication, just changing mpich2 path.
</pre>
      </blockquote>
      <pre wrap="">
Fine.


</pre>
      <blockquote type="cite">
        <pre wrap="">MPI_PATH=/usr/bin
PAR_INCS=-I/usr/local/include
PAR_LIBS=-L/usr/local/lib/ -lmpich
</pre>
      </blockquote>
      <pre wrap="">
Is it a C application, or are you using the wrapper during compliation to add also the Fortran interface?


</pre>
      <blockquote type="cite">
        <pre wrap="">PAR_DEFS=-DRAMS_MPI
</pre>
      </blockquote>
      <pre wrap="">
Do you have more than one MPI library at this location? Often it's better to have a dedicated directory where you can check the used path to it instantly.

Is there any output whether the application is now running in parallel, or executing a serial run N times only?

-- Reuti


</pre>
      <blockquote type="cite">
        <pre wrap="">Thanks

El 17/04/2014 17:58, Reuti escribió:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi,

Am 17.04.2014 um 11:35 schrieb Francisco Pastor:

</pre>
          <blockquote type="cite">
            <pre wrap="">The point is that I am using a program, meteorological model RAMS, that was running fine with this mpich2 version. And it runs fine from the command line.

If the system works, should I upgrade? Will it work with my program? Can I install two different versions at the same time or should I delete the older one? Is there any chance to run
</pre>
          </blockquote>
          <pre wrap="">Well, using a new version usually means to recompile the application to gain advantage of it. Did you compile it on your own, or is this a binary you downloaded somewhere?

-- Reuti


</pre>
          <blockquote type="cite">
            <pre wrap="">Thanks

El 17/04/2014 11:06, Reuti escribió:
</pre>
            <blockquote type="cite">
              <pre wrap="">Hi,

Am 17.04.2014 um 10:04 schrieb Francisco Pastor:

</pre>
              <blockquote type="cite">
                <pre wrap="">I need to daily run an mpi job from a bash script. I have prepared the script and run from the command line, this works fine. But when I try to execute at a later time with at (at -f my_script now +1 minute) the parallel processes do not start.

These are the significant parts of my script:

# path to mpi executables
ruta_mpi=/usr/local/mpich2-1.0.5p4/bin
</pre>
              </blockquote>
              <pre wrap="">This version of MPICH is quite old. Please use a more recent one, where the necessity for starting an MPD beforehand does no longer exist.

-- Reuti


</pre>
              <blockquote type="cite">
                <pre wrap=""># Function that checks if mpd processes are ok (checks mpdtrace output, five nodes should be up)
Comprueba_MPD()
{
 mpdtrace > log.mpd
 wc -l log.mpd > check.mpd
 check1=`awk '{ print $1 }' check.mpd`
 if [ $check1 -eq 5 ];
   then
      echo "Salida de mpdtrace correcta, hosts=$check1"
   else
      echo "Salida de mpdtrace incorrecta, hosts=$check1"
      $ruta_mpi/mpdboot -n 5 &
      sleep 10
      mpdtrace
 fi
}


# Run rams60 program with mpirun
time $ruta_mpi/mpirun -n 21 ./rams60 -f RAMSIN.operatiu

I am sure missing something but I can't find out what's going on.

Thanks in advance

-- 
-----------


</pre>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------
Dr. Francisco Pastor
Meteorology department, Instituto Universitario CEAM-UMH
<a class="moz-txt-link-freetext" href="http://www.ceam.es">http://www.ceam.es</a>
-----------
Mendeley profile: <a class="moz-txt-link-freetext" href="http://www.mendeley.com/profiles/francisco-pastor1/">http://www.mendeley.com/profiles/francisco-pastor1/</a>
Google Scholar: <a class="moz-txt-link-freetext" href="http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es">http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es</a>
Researcher ID: <a class="moz-txt-link-freetext" href="http://www.researcherid.com/rid/B-8331-2008">http://www.researcherid.com/rid/B-8331-2008</a>
Cosis profile: <a class="moz-txt-link-freetext" href="http://www.cosis.net/profile/francisco.pastor">http://www.cosis.net/profile/francisco.pastor</a>
-----------
mail: <a class="moz-txt-link-abbreviated" href="mailto:paco@ceam.es">paco@ceam.es</a>
skype: paco.pastor.guzman
-----------
Parque Tecnologico, C/ Charles R. Darwin, 14
46980 PATERNA (Valencia), Spain
Tlf. 96 131 82 27 - Fax. 96 131 81 90


---------------------------------------------------------------------
Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada de la empresa que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.

Su dirección de correo electrónico junto a sus datos personales forman parte de un fichero titularidad de la Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213, cuya finalidad es la de mantener el contacto con Ud. De acuerdo con la Ley Orgánica 15/1999, usted puede ejercitar sus derechos de acceso, rectificación, cancelación y, en su caso, oposición enviando una solicitud por escrito, acompañada de una fotocopia de su DNI dirigida a: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).

This message and the attached files are confidential. They contain reserved information belonging to our centre and are not to be broadcast. If you have received this email by mistake, please delete it from your system and alert the sender by returning it to his/her email address. You must not copy or divulge the contents of the message to anyone.

Your email address and personal data are included in a file belonging to the Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213. The purpose of this file is to allow us to keep in contact with you. In accordance with Organic Law 15/1999, you are permitted to access, rectify, cancel or oppose the contents of this file by submitting a written request, accompanied by a photocopy of your DNI, to: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).



</pre>
  </body>
</html>