Skip to content

Commit

Permalink
fixing issue #290, adding --machinefile option
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Dec 7, 2011
1 parent d22f2c8 commit dde9519
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions j/client.j
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ function process_options(args::Array{Any,1})
i+=1
np = int32(args[i])
addprocs_local(np-1)
elseif args[i]=="--machinefile"
i+=1
f = open(args[i])
machines = split(readall(f), '\n', false)
close(f)
addprocs_ssh(machines)
elseif args[i]=="-v" || args[i]=="--version"
println("julia version $VERSION")
println(jl_commit_string)
Expand Down
3 changes: 2 additions & 1 deletion ui/repl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ static const char *opts =
" -b --bare Bare: don't load default startup files\n"
" -J --sysimage=file Start up with the given system image file\n\n"

" -p n Run n local processes\n\n"
" -p n Run n local processes\n"
" --machinefile file Run processes on hosts listed in file\n\n"

" -h --help Print this message\n";

Expand Down

0 comments on commit dde9519

Please sign in to comment.