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:

Status badges

Description (last modified by jdemeyer)

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 or sage -tp 0 <files> will doctest in parallel using 16 threads. If the -j flag in MAKE 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 in MAKE is not set, then use only 1 thread.

In #6495, we should implement the same behavior for doc building.


  1. 12016-root.v2.patch to the SAGE_ROOT repository.
  2. trac_12016-scripts.patch to the SCRIPTS repository.
  3. 12016-sage.v2.patch to the Sage library.

Change History (3)

comment:1 Changed 11 years ago by jdemeyer

We should remove NUM_THREADS from the top-level Makefile.

comment:2 Changed 11 years ago by jdemeyer

  • Authors changed from John Palmieri to John Palmieri, Jeroen Demeyer
  • Description modified (diff)

comment:3 Changed 11 years ago by jdemeyer

  • Description modified (diff)
Note: See TracTickets for help on using tickets.