Re: [OMPI users] dual cores --> timing + /usr/bin/time

2008-11-11 Thread Raymond Wan
Hi Fabian, On a separate topic, but related to your post here, how did you do the timing? [Especially to so many digits of accuracy. :-) ] I will have to time my program and I don't think /usr/bin/time would do it. Are the numbers it report accurate [for an MPI program]? I think the

Re: [OMPI users] dual cores

2008-11-10 Thread Fabian Hänsel
Hi Erin, > I have a dual core laptop and I would like to have both cores running. > > Here is the following my-hosts file: > localhost slots=2 Be warned that at least in default config running more MPI threads than you have cores results in dog slow code. Single core machine: $ cat my-hosts

Re: [OMPI users] dual cores

2008-11-10 Thread Hodgess, Erin
ff Squyres Sent: Mon 11/10/2008 1:14 PM To: Open MPI Users Subject: Re: [OMPI users] dual cores There's also a great project at SourceForge called "htop" that is a "better" version of top. It includes the ability to query for and set processor affinity for abitrary pro

Re: [OMPI users] dual cores

2008-11-10 Thread Jeff Squyres
Sent: Sun 11/9/2008 11:21 PM To: Open MPI Users Subject: Re: [OMPI users] dual cores Run 'top' For long running applications you should see 4 processes each at 50% (4*50=200% two cpus). You are ok, your hello_c did what it should, each of thoese 'hello's could have came from any of the two cpu

Re: [OMPI users] dual cores

2008-11-10 Thread Lenny Verkhovsky
; Erin M. Hodgess, PhD > Associate Professor > Department of Computer and Mathematical Sciences > University of Houston - Downtown > mailto: hodge...@uhd.edu > > > > -Original Message- > From: users-boun...@open-mpi.org on behalf of Brock Palen > Sent: Sun 11/9/

Re: [OMPI users] dual cores

2008-11-10 Thread Hodgess, Erin
MPI Users Subject: Re: [OMPI users] dual cores Run 'top' For long running applications you should see 4 processes each at 50% (4*50=200% two cpus). You are ok, your hello_c did what it should, each of thoese 'hello's could have came from any of the two cpus. Also if your only running on your

Re: [OMPI users] dual cores

2008-11-10 Thread Brock Palen
Run 'top' For long running applications you should see 4 processes each at 50% (4*50=200% two cpus). You are ok, your hello_c did what it should, each of thoese 'hello's could have came from any of the two cpus. Also if your only running on your local machine, you don't need a hostfile,

Re: [OMPI users] dual cores

2008-11-10 Thread Hodgess, Erin
Sent: Sun 11/9/2008 11:20 PM To: Open MPI Users Subject: Re: [OMPI users] dual cores Dear Erin, I'm nowhere near a guru, so I hope you don't what I have to say (it might be wrong...). But what I did was just put a long loop into the program and while it was running, I opened another window

Re: [OMPI users] dual cores

2008-11-10 Thread Raymond Wan
Dear Erin, I'm nowhere near a guru, so I hope you don't what I have to say (it might be wrong...). But what I did was just put a long loop into the program and while it was running, I opened another window and looked at the output of "top". Obviously, without the loop, the program would

[OMPI users] dual cores

2008-11-10 Thread Hodgess, Erin
Dear Open MPI gurus: I have just installed Open MPI this evening. I have a dual core laptop and I would like to have both cores running. Here is the following my-hosts file: localhost slots=2 and here is the command and output: mpirun --hostfile my-hosts -np 4 --byslot hello_c |sort Hello,