Discussion:
mpich on a dual core machine
(too old to reply)
Ben
2009-02-04 15:02:37 UTC
Permalink
Hi,

I have installed mpich onto a dual core unix machine (mac osx). It has
a dual core processor.

Therefore, having installed it, if I do:

mpirun -np 2 executable

Will it take advantage of both cores on that single machine
automatically, or do I need to do something else?

Cheers,
Ben.
Jomar Bueyes
2009-02-04 17:12:15 UTC
Permalink
Post by Ben
Hi,
I have installed mpich onto a dual core unix machine (mac osx). It has
a dual core processor.
mpirun -np 2 executable
Will it take advantage of both cores on that single machine
automatically, or do I need to do something else?
Cheers,
Ben.
Hi Ben,

If your program was written for the MPI, the statement you use will
take advantage of having two cores. However, if your program is just a
serial program (w/o explicit MPI parallelization), it will always run
on a single core.

HTH.

Jomar
B
2009-02-04 17:56:36 UTC
Permalink
Post by Jomar Bueyes
Post by Ben
Hi,
I have installed mpich onto a dual core unix machine (mac osx). It has
a dual core processor.
mpirun -np 2 executable
Will it take advantage of both cores on that single machine
automatically, or do I need to do something else?
Cheers,
Ben.
Hi Ben,
If your program was written for the MPI, the statement you use will
take advantage of having two cores. However, if your program is just a
serial program (w/o explicit MPI parallelization), it will always run
on a single core.
HTH.
Jomar
Thanks Jomar, it is indeed written for the MPI, so thats good to know

Ben.

Loading...