From 2a06c45e7828b1b60de1dc1d110eefe2a6bdc64a Mon Sep 17 00:00:00 2001 From: muli Date: Sun, 10 Apr 2016 20:00:09 -0400 Subject: [PATCH] update tools/launch.py to use launcher=local if no hostfile is given --- tools/launch.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/launch.py b/tools/launch.py index 850157ab84fb..3e0444952046 100755 --- a/tools/launch.py +++ b/tools/launch.py @@ -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 @@ -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':