[ It is considered bad form to publically reply to a private message. What I
had sent you earlier was a private mail. ]
On 3 April 2009 at 02:41, Jerome BENOIT wrote:
|
| -------- Original Message --------
| Subject: Re: [OMPI users] openmpi 1.3.1: bind() failed: Permission denied (13)
| Date: Fri, 03 Apr 2009 02:41:01 +0800
| From: Jerome BENOIT <ml.jgmbenoit_at_[hidden]>
| Reply-To: ml.jgmbenoit_at_[hidden]
| To: Dirk Eddelbuettel <edd_at_[hidden]>
| CC: ml.jgmbenoit_at_[hidden]
| References: <49CE5244.2000607_at_[hidden]> <CF5D8E90-17CA-4B60-AE85-2BC2EE318AED_at_[hidden]> <49D4EF88.6060506_at_[hidden]> <18901.114.820349.347227_at_ron.nulle.part>
|
| Hello List,
|
| so let me precise:
|
| I submitted on a SLURM box the attached C source phello.c via sbatch with the attached script phello.sh
|
| mpicc -o phello phello.c
| sbatch phello.sh
Works for me (though I prefer salloc), suggesting that you did something to
your network topology or Open MPI configuration:
:~$ cat /tmp/jerome_hw.c
// mpicc -o phello phello.c
// mpirun -np 5 phello
#include <unistd.h>
#include <stdio.h>
#include <mpi.h>
int main(int narg, char *args[]){
int rank,size;
char ProcessorName[MPI_MAX_PROCESSOR_NAME];
int ProcessorNameLength;
MPI_Init(&narg,&args);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
MPI_Comm_size(MPI_COMM_WORLD,&size);
MPI_Get_processor_name(ProcessorName,&ProcessorNameLength);
sleep(11);
fprintf(stdout,
"Hello world! I am %d of %d and my name is `%s'\n",
rank,size,
ProcessorName);
MPI_Finalize();
return 0; }
//
// End of file `phello.c'.
:~$ mpicc.openmpi -o /tmp/jerome_hw /tmp/jerome_hw.c
:~$ orterun -np 2 /tmp/jerome_hw
Hello world! I am 1 of 2 and my name is `xyz-1'
Hello world! I am 0 of 2 and my name is `xyz-1'
:~$ salloc orterun -np 2 /tmp/jerome_hw
salloc: Granted job allocation 421
Hello world! I am 0 of 2 and my name is `xyz-1'
Hello world! I am 1 of 2 and my name is `xyz-1'
salloc: Relinquishing job allocation 421
:~$
| I have set no MCA parameter, and the firewalls are off, and the kernels (2.6.16) were built with no Security feature.
Try simplifying further: no default hosts beside localhost etc. Try orterun
before you try salloc. Simplicity first.
Dirk
--
Three out of two people have difficulties with fractions.
|