Update generator.py
This commit is contained in:
parent
6008449a4b
commit
9034a8e090
@ -37,11 +37,11 @@ def backtesting(ind):
|
|||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
ncpus = int(sys.argv[1])
|
ncpus = int(sys.argv[1])
|
||||||
# Creates jobserver with ncpus workers
|
# Creates jobserver with ncpus workers restart=True is not needed
|
||||||
job_server = pp.Server(ncpus, ppservers=ppservers, restart=True)
|
job_server = pp.Server(ncpus, ppservers=ppservers)
|
||||||
else:
|
else:
|
||||||
# Creates jobserver with automatically detected number of workers
|
# Creates jobserver with automatically detected number of workers
|
||||||
job_server = pp.Server(ppservers=ppservers, restart=True)
|
job_server = pp.Server(ppservers=ppservers)
|
||||||
|
|
||||||
print("Starting pp with", job_server.get_ncpus(), "workers")
|
print("Starting pp with", job_server.get_ncpus(), "workers")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user