Re: [OMPI users] OpenMPI providing rank?

2010-08-04 Thread Eugene Loh
Eugene Loh wrote: Yves Caniou wrote: Le Wednesday 28 July 2010 15:05:28, vous avez écrit : I am confused. I thought all you wanted to do is report out the binding of the process - yes? Are you trying to set the affinity bindings yourself? If the latter, then your

Re: [OMPI users] Hybrid OpenMPI / OpenMP run pins OpenMP threads to a single core

2010-08-04 Thread Eugene Loh
David Akin wrote: All, I'm trying to get the OpenMP portion of the code below to run multicore on a couple of 8 core nodes. I was gone last week and am trying to catch up on e-mail. This thread was a little intriguing. I agree with Ralph and Terry: *) OMPI should not be binding by

Re: [OMPI users] OpenIB Error in ibv_create_srq

2010-08-04 Thread Terry Dontje
Allen Barnett wrote: Thanks for the pointer! Do you know if these sizes are dependent on the hardware? They can be, the following file sets up the defaults for some known cards: ompi/mca/btl/openib/mca-btl-openib-device-params.ini --td Thanks, Allen On Tue, 2010-08-03 at 10:29 -0400,

Re: [OMPI users] execuation time is not stable with 2 processes

2010-08-04 Thread Eugene Loh
Tad Lake wrote: I run it : mpirun -np 2 --host node2 ./a.out But the result of time is not stable with difference of 100 times. For example, the max value of time can be 3000, meanwhile the min is 100. Again, know what results to expect. Is 3000 a reasonable time and 100 too fast? Or, is

Re: [OMPI users] OpenIB Error in ibv_create_srq

2010-08-04 Thread Allen Barnett
Thanks for the pointer! Do you know if these sizes are dependent on the hardware? Thanks, Allen On Tue, 2010-08-03 at 10:29 -0400, Terry Dontje wrote: > Sorry, I didn't see your prior question glad you found the > btl_openib_receive_queues parameter. There is not a faq entry for > this but I

Re: [OMPI users] execuation time is not stable with 2 processes

2010-08-04 Thread Eugene Loh
Mark Potts wrote: Hi, I'd opt for the fact that tv0 is given value only on rank 0 and tv1 is only given value on rank 1. Kind of hard to get a diff betwn the two on either rank with that setup. You need to determine the tv0 and tv1 on both ranks. I don't understand this.

Re: [OMPI users] Open MPI C++ class datatype

2010-08-04 Thread Cristobal Navarro
If your class has too many complex atributes, it might be a good idea to send some sort of string or similar data representing your class, and then on the receiving node, you create the object based on that information. works on some type of problems problems. best regards. Cristobal On Wed,

Re: [OMPI users] execuation time is not stable with 2 processes

2010-08-04 Thread Mark Potts
Hi, I'd opt for the fact that tv0 is given value only on rank 0 and tv1 is only given value on rank 1. Kind of hard to get a diff betwn the two on either rank with that setup. You need to determine the tv0 and tv1 on both ranks. In addition, there are a number of other errors in

Re: [OMPI users] execuation time is not stable with 2 processes

2010-08-04 Thread Ralph Castain
Did you bind the processes? If not you may be seeing the impact of having processes bouncing between cpus, and/or processes not being local to their memory. Try adding -bind-to-core or -bind-to-socket to your cmd line and see if things smooth out. I'm assuming, of course, that you are running

[OMPI users] execuation time is not stable with 2 processes

2010-08-04 Thread Tad Lake
Hi, I have a little program for execution time. = #include "mpi.h" #include #include #include #include int main (int argc, char *argv[]) { MPI_Status Stat; struct timeval tv0, tv1; long int totaltime = 0; int i, j; int buf[10240];

Re: [OMPI users] Open MPI C++ class datatype

2010-08-04 Thread Riccardo Murri
Hi Jack, On Wed, Aug 4, 2010 at 6:25 AM, Jack Bryan wrote: > I need to transfer some data, which is C++ class with some vector > member data. > I want to use MPI_Bcast(buffer, count, datatype, root, comm); > May I use MPI_Datatype to define customized data structure that

[OMPI users] Open MPI C++ class datatype

2010-08-04 Thread Jack Bryan
Dear All: I need to transfer some data, which is C++ class with some vector member data. I want to use MPI_Bcast(buffer, count, datatype, root, comm); May I use MPI_Datatype to define customized data structure that contain C++ class ? Any help is appreciated. Jack Aug 3 2010