Opened 11 years ago
Last modified 10 years ago
#12016 closed enhancement
parallelism in Sage: just use value of 'MAKE' — at Version 3
Reported by: | jhpalmieri | Owned by: | GeorgSWeber |
---|---|---|---|
Priority: | critical | Milestone: | sage-4.8 |
Component: | build | Keywords: | |
Cc: | jdemeyer, leif | Merged in: | |
Authors: | John Palmieri, Jeroen Demeyer | Reviewers: | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #11969 | Stopgaps: |
Description (last modified by )
With the attached patches, along with the changes from #11959, the various parallel aspects of Sage should be controlled by setting the -j
flag in MAKE
. That is, if MAKE='make -j16'
, then
- running
make
will build spkg's in parallel, using 16 processes (this was done in #11959)
- running
make ptestlong
orsage -tp 0 <files>
will doctest in parallel using 16 threads. If the-j
flag inMAKE
is not set, then determine the number of threads as before:min(8, cpu_count())
.
- TODO: running
./sage -b
will build the Sage library using 16 threads. If the-j
flag inMAKE
is not set, then use only 1 thread.
In #6495, we should implement the same behavior for doc building.
Apply:
- 12016-root.v2.patch to the
SAGE_ROOT
repository. - trac_12016-scripts.patch to the
SCRIPTS
repository. - 12016-sage.v2.patch to the Sage library.
Change History (3)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
- Description modified (diff)
comment:3 Changed 11 years ago by
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
We should remove
NUM_THREADS
from the top-levelMakefile
.