[mpich-discuss] Running mpi from bash script

Francisco Pastor paco at ceam.es
Thu Apr 17 06:21:29 CDT 2014


Hi

I've installed a new MPICH version but the problem persists. I looked at 
mpich.org download page, the version por Ubuntu 12.04 is mpich2-1.4.1

The problem still remains when running from batch. If I run my script 
from command line everything works fine, if I launch the job with at no 
processes appear on the cluster nodes and no output files are produced.

In master node some processes appear:

ps -ef | grep rams

meteo     8288  7559  0 13:03 ?        00:00:00 time /usr/bin/mpirun -n 
40 -f machinefile ./rams60 -f RAMSIN.operatiu
meteo     8289  8288  0 13:03 ?        00:00:00 /usr/bin/mpirun -n 40 -f 
machinefile ./rams60 -f RAMSIN.operatiu
meteo     8295  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8296  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8297  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8298  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8299  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8300  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8301  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu
meteo     8302  8290  0 13:03 ?        00:00:00 ./rams60 -f RAMSIN.operatiu

Should I set some environment when launching the job?

Thanks

Paco

El 17/04/2014 11:06, Reuti escribió:
> Hi,
>
> Am 17.04.2014 um 10:04 schrieb Francisco Pastor:
>
>> 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
> 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
>
>
>> # 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
>>
>> -- 
>> -----------
>> Dr. Francisco Pastor
>> Meteorology department, Instituto Universitario CEAM-UMH
>> http://www.ceam.es
>> -----------
>> Mendeley profile: http://www.mendeley.com/profiles/francisco-pastor1/
>> Google Scholar: http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
>> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
>> Cosis profile: http://www.cosis.net/profile/francisco.pastor
>> -----------
>> mail: paco at ceam.es
>> 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).
>>
>>
>>
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
>

-- 
-----------
Dr. Francisco Pastor
Meteorology department, Instituto Universitario CEAM-UMH
http://www.ceam.es
-----------
Mendeley profile: http://www.mendeley.com/profiles/francisco-pastor1/
Google Scholar: http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
Researcher ID: http://www.researcherid.com/rid/B-8331-2008
Cosis profile: http://www.cosis.net/profile/francisco.pastor
-----------
mail: paco at ceam.es
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).






More information about the discuss mailing list