Re: [OMPI users] Which MPI data types correspond to ptrdiff_t and to size_t in C?

2013-03-14 Thread Gus Correa
Hi George I see the problem you pointed out, on binding the MPI types to the specific (pointer) sizes in a heterogeneous environment. However, I would MPI_Aint would be in trouble in heterogeneous environments as well? I mean, can we safely pass MPI_AINT back and forth across 32-bit and 64-bit ma

Re: [OMPI users] Which MPI data types correspond to ptrdiff_t and to size_t in C?

2013-03-14 Thread George Bosilca
The short answer is yes. However, this answer is wrong in a heterogeneous environment. Suppose one rank is a 32 bits process, and the size_t is 4 bytes, while another one is 64 bits with a size_t of 8 bytes. If you correlate the sizeof(size_t) with the type you use for a communication, then one

Re: [OMPI users] Which MPI data types correspond to ptrdiff_t and to size_t in C?

2013-03-14 Thread Gus Correa
Many thanks, George! I passed MPI_AINT to the MPI functions, along with the ptrdiff_t buffers, and it worked right, at least for the modest buffer sizes I tried. I haven't got to size_t buffers yet, but if I understood right, your suggestion for size_t buffers would be to use MPI_UINT64_T as MPI

Re: [OMPI users] a problem about mpirun and SSH when using Open MPI 1.7rc8

2013-03-14 Thread yumenlj
I see. Thanks! After carefully reading the following FAQ item http://www.open-mpi.org/faq/?category=rsh#ssh-keys , I realized that mpirun of Open MPI does not work in a simple "master to slaves" way, while "slaves to slaves" is also possible. Therefore, a same private key with a passphrase o

Re: [OMPI users] a problem about mpirun and SSH when using Open MPI 1.7rc8

2013-03-14 Thread Reuti
Hi, Am 14.03.2013 um 09:20 schrieb yumenlj: > Hi, all > > I encountered a problem about mpirun and SSH when using Open MPI 1.7rc8. > > I have a 4-node cluster. This is the hostfile: > > [mpiuser@testnode11 openmpi-1.6.4]$ cat ~/work/hostfile > testnode11 > testnode12 > testnode13 > testnode14

[OMPI users] a problem about mpirun and SSH when using Open MPI 1.7rc8

2013-03-14 Thread yumenlj
Hi, all I encountered a problem about mpirun and SSH when using Open MPI 1.7rc8. I have a 4-node cluster. This is the hostfile: [mpiuser@testnode11 openmpi-1.6.4]$ cat ~/work/hostfile testnode11 testnode12 testnode13 testnode14 I had configured SSH, copying ".ssh/id_rsa.pub" on testnode11