#12016: parallelism in Sage: just use value of 'MAKE'
---------------------------+------------------------------------------------
   Reporter:  jhpalmieri   |          Owner:  GeorgSWeber                  
       Type:  enhancement  |         Status:  new                          
   Priority:  major        |      Milestone:  sage-4.8                     
  Component:  build        |       Keywords:                               
Work_issues:               |       Upstream:  N/A                          
   Reviewer:               |         Author:  John Palmieri, Jeroen Demeyer
     Merged:               |   Dependencies:  #11969                       
---------------------------+------------------------------------------------

Comment(by jdemeyer):

 Replying to [comment:7 jhpalmieri]:
 > Replying to [comment:6 jdemeyer]:
 > > John, with your solution there is a lot of code duplication
 (determining the number of threads is done in 3 places, potentially in 3
 different ways).  How about having code in `sage-sage` or `sage-env` to
 determine the number of threads and saving it in an environment variable
 `SAGE_NUM_PROCESSES`
 >
 > Sounds okay.
 >
 > > (which the user could set by hand; if not set, the value comes from
 `MAKE` or `MAKEFLAGS`; if no `-j` option is given, set to 1).
 >
 > If you run "sage -tp <files>", should you use 1 process or more than 1?
 The "-tp" option means "parallel", so perhaps the default should be more
 than 1 in this case.  In other cases (like docbuilding, for example), the
 default should be 1.

 Sure, that is what I meant.  We should compute the value once, but in
 `sage -tp` we can still decide to use the number of processes.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12016#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to