Skip to content

Commit

Permalink
update tools/launch.py to use launcher=local if no hostfile is given
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Apr 11, 2016
1 parent aecb367 commit 2a06c45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def dmlc_opts(opts):
'--host-file', opts.hostfile,
'--sync-dst-dir', opts.sync_dst_dir]
args += opts.command;

print args
from dmlc_tracker import opts
dmlc_opts = opts.get_opts(args)
return dmlc_opts
Expand Down Expand Up @@ -52,7 +50,7 @@ def main():

args = dmlc_opts(args)

if args.cluster == 'local' or args.host_file is None:
if args.cluster == 'local' or args.host_file is None or args.host_file == 'None':
from dmlc_tracker import local
local.submit(args)
elif args.cluster == 'sge':
Expand Down

0 comments on commit 2a06c45

Please sign in to comment.