File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1298,6 +1298,7 @@ end
1298
1298
1299
1299
write_cookie (io:: IO ) = print (io. in, string (cluster_cookie (), " \n " ))
1300
1300
1301
+ # Starts workers specified by (-n|--procs) and --machine-file command line options
1301
1302
function process_opts (opts)
1302
1303
# startup worker.
1303
1304
# opts.startupfile, opts.load, etc should should not be processed for workers.
@@ -1310,14 +1311,17 @@ function process_opts(opts)
1310
1311
end
1311
1312
end
1312
1313
1314
+ # Propagate --threads to workers
1315
+ exeflags = opts. nthreads > 0 ? ` --threads=$(opts. nthreads) ` : ` `
1316
+
1313
1317
# add processors
1314
1318
if opts. nprocs > 0
1315
- addprocs (opts. nprocs)
1319
+ addprocs (opts. nprocs; exeflags = exeflags )
1316
1320
end
1317
1321
1318
1322
# load processes from machine file
1319
1323
if opts. machine_file != C_NULL
1320
- addprocs (load_machine_file (unsafe_string (opts. machine_file)))
1324
+ addprocs (load_machine_file (unsafe_string (opts. machine_file)); exeflags = exeflags )
1321
1325
end
1322
1326
return nothing
1323
1327
end
You can’t perform that action at this time.
0 commit comments