Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] dual cores
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-11-10 14:14:21


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 processes, colorized output, tree-
based output (showing process hierarchies), etc. It's pretty nice
(IMHO):

     http://htop.sf.net/

On Nov 10, 2008, at 3:03 AM, Lenny Verkhovsky wrote:

> you can also press "f" while"top" is running and choose option "j"
> this way you will see what CPU is chosen under column P
> Lenny.
>
> On Mon, Nov 10, 2008 at 7:38 AM, Hodgess, Erin <HodgessE_at_[hidden]>
> wrote:
> great!
>
> Thanks,
> Erin
>
>
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgesse_at_[hidden]
>
>
>
> -----Original Message-----
> From: users-bounces_at_[hidden] on behalf of Brock Palen
> 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 cpus.
>
> Also if your only running on your local machine, you don't need a
> hostfile, and -byslot is meaningless in this case,
>
> mpirun -np 4 ./hello_c
>
> Would work just fine.
>
> Brock Palen
> www.umich.edu/~brockp
> Center for Advanced Computing
> brockp_at_[hidden]
> (734)936-1985
>
>
>
> On Nov 10, 2008, at 12:05 AM, 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_at_erinstoy:~/Desktop/openmpi-1.2.8/examples>
> >
> >
> > How do I know if both cores are running, please?
> >
> > thanks,
> > Erin
> >
> >
> > Erin M. Hodgess, PhD
> > Associate Professor
> > Department of Computer and Mathematical Sciences
> > University of Houston - Downtown
> > mailto: hodgesse_at_[hidden]
> >
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Jeff Squyres
Cisco Systems