LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2005-02-19 00:16:24


On Feb 18, 2005, at 6:17 PM, Jonathan Greenberg wrote:

> I'm trying to go through the process of learning to write parallel
> code that
> I'd like to run on my powermac dual-G5. I installed lammpi + all the
> developer code using fink. When I run lamboot:
>
> lamboot -v -ssi rsh hostfile
>
> And then "lamnodes", I get this:
>
> n0 localhost:1:origin,this_node
>
> Clearly, its not picking up my second processor (and my hello world
> example
> proves this by only returning one "hello world". My hostfiles have
> used the
> following formats, all of which do the same thing (each hostfile I
> tried is
> separated by a ***:

A quick follow-up to Robin's answer. The hostfile entry you are
looking for is:

localhost cpu=2

LAM doesn't actually understand CPU pinning or detect the number of
CPUs in the machine or anything like that. The cpu field in the
hostfile is a count of the number of processes that LAM should schedule
on the given node before "oversubscribing" any node in the system.

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/