LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Pierre Valiron (Pierre.Valiron_at_[hidden])
Date: 2005-06-28 12:00:13


Jeff Squyres wrote:

>On Jun 28, 2005, at 7:39 AM, Dr. Stephan Nickell wrote:
>
>
>
>>#include <stdio.h>
>>#include "mpi.h"
>>int main(int argc, char *argv[])
>>{
>>int numprocs, myid;
>>MPI_Status status;
>>MPI_Init(&argc,&argv);
>>MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
>>MPI_Comm_rank(MPI_COMM_WORLD,&myid);
>>printf("hiho! from processor %d of %d.\n",myid,numprocs);
>>MPI_Finalize();
>>}
>>
>>it works on 32 bit CPUs running LAM 6.5.6/MPI 2 C++/ROMIO - University
>>of Notre
>>Dame and on 64 bit CPUs running LAM 7.1.1/MPI 2 C++/ROMIO - Indiana
>>University
>>
>>
>>
>>>>mpirun -np 4 ./hi64
>>>>
>>>>
>>-----------------------------------------------------------------------
>>------
>>It seems that [at least] one of the processes that was started with
>>
>>
>
>You show using 2 versions of LAM/MPI -- are you absolutely sure that
>you are not accidentally mixing the versions? I.e., you're using the
>Right mpicc to compile each of your applications? For example, if you
>compile against 6.5.6 and try to run under 7.1.1, that will likely not
>work at all.
>
>Do you get any corefiles from your 4 processes?
>
>Can you run ./hi64 in serial? I.e., "./hi64" (not using mpirun)
>
>
>
Hi,

Definitely your code should work...

I tested it by curiosity on our Opteron v20z/v40z cluster running
Solaris 10,

valiron_at_h5 ~ > mpicc -xtarget=opteron -xarch=amd64 hi.c
valiron_at_h5 ~ > lamboot

LAM 7.1.1/MPI 2 C++/ROMIO - Indiana University

valiron_at_h5 ~ > mpirun -np 4 a.out
hiho! from processor 3 of 4.
hiho! from processor 0 of 4.
hiho! from processor 1 of 4.
hiho! from processor 2 of 4.
valiron_at_h5 ~ >

Is it the first MPI code you are experimenting on this cluster ?
Are you sure the installation and PATH are correct ?
How are you compiling your code ?
Are you using mpicc or some trick of your own ?

Pierre.

-- 
Soutenez le mouvement SAUVONS LA RECHERCHE :
http://recherche-en-danger.apinc.org/
       _/_/_/_/    _/       _/       Dr. Pierre VALIRON
      _/     _/   _/      _/   Laboratoire d'Astrophysique
     _/     _/   _/     _/    Observatoire de Grenoble / UJF
    _/_/_/_/    _/    _/    BP 53  F-38041 Grenoble Cedex 9 (France)
   _/          _/   _/    http://www-laog.obs.ujf-grenoble.fr/~valiron/
  _/          _/  _/     Mail: Pierre.Valiron_at_[hidden]
 _/          _/ _/      Phone: +33 4 7651 4787  Fax: +33 4 7644 8821
_/          _/_/