The machinefile format is n*hostname for n processes at hostname. Or
auto*hostname for detecting the number of cores at hostname.
addprocs accepts an array of tuples or strings.
addprocs([("host1", :auto), ("host2", 5), "host3"]) will launch as many
workers as cores on host1, 5 workers on host2 and a single worker on host3.
On Tue, Jun 9, 2015 at 3:44 PM, Tim Holy <[email protected]> wrote:
> On Tuesday, June 09, 2015 11:15:52 AM Amit Murthy wrote:
> > Julia 0.4 supports "auto*host" which will launch as many workers on host
> as
> > cores.
>
> Amit, can you be a little more explicit about how one uses this? I tried
> this:
> julia> addprocs("auto*host")
> ERROR: MethodError: `addprocs` has no method matching
> addprocs(::ASCIIString)
>
> julia> addprocs(["auto*host"])
> ssh: Could not resolve hostname auto*host: Name or service not known
>
> (which just hung)
>
> --Tim
>
>