We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205c37b commit 90d869dCopy full SHA for 90d869d
1 file changed
adaptive/runner.py
@@ -495,8 +495,7 @@ def _get_ncores(ex):
495
elif isinstance(ex, SequentialExecutor):
496
return 1
497
elif with_distributed and isinstance(ex, distributed.cfexecutor.ClientExecutor):
498
- # XXX: check if not sum(n for n in ex._client.ncores().values())
499
- return len(ex._client.ncores())
+ return sum(n for n in ex._client.ncores().values())
500
else:
501
raise TypeError('Cannot get number of cores for {}'
502
.format(ex.__class__))
0 commit comments