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.
Center for Advanced Computingbrockp@umich.edu
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
> How do I know if both cores are running, please?
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: email@example.com
> users mailing list
users mailing firstname.lastname@example.org://www.open-mpi.org/mailman/listinfo.cgi/users