This sounds great!

Thanks for your help!
Sincerely,
Erin

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 Raymond Wan
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 and looked at the output of "top".  
Obviously, without the loop, the program would terminate too fast.

If you have two CPUs and the total of the process exceeds 100% (i.e., if 
you run with np=2, you might have 98% and 98%), then I would think this 
is enough proof that both cores are being used.

I'm saying this on the list hoping that someone can correct my knowledge 
of it, too... 

Ray


Hodgess, Erin wrote:
> 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, world, I am 0 of 4
> Hello, world, I am 1 of 4
> Hello, world, I am 2 of 4
> Hello, world, I am 3 of 4
> hodgesse@erinstoy:~/Desktop/openmpi-1.2.8/examples> 
>
>
> How do I know if both cores are running, please?
>   

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to