forked from dials/dials
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rationalise discovery of available memory and CPUs (dials#2619)
Rationalise the discovery of system resources (CPUs and available virtual memory) across DIALS, using tooling adapted from Dask and Dask Distributed. Introduces dials.util.system.CPU_COUNT and dials.util.system.MEMORY_LIMIT. In cases where there is a large memory footprint, do not resort to adding swap space into the total available memory to calculate the appropriate number of multiprocessing tasks. --------- Co-authored-by: Jim Crist <jcrist@users.noreply.github.com> Co-authored-by: Albert DeFusco <albert.defusco@me.com> Co-authored-by: James Bourbeau <jrbourbeau@users.noreply.github.com> Co-authored-by: crusaderky <crusaderky@gmail.com> Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Samantha Hughes <shughes-uk@users.noreply.github.com> Co-authored-by: Florian Jetter <fjetter@users.noreply.github.com> Co-authored-by: Johan Olsson <johan@jmvo.se>
- Loading branch information
1 parent
f18f8af
commit 6372cee
Showing
19 changed files
with
196 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Do more accurate and reliable discovery of available CPUs and virtual memory across a range of different systems. This should make various DIALS tools, in particular ``dials.integrate``, function better in situations where system resources are fairly limited or DIALS requires a lot of memory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.