Ticket #7011: trac_7011-sage-root-makefile.patch

File trac_7011-sage-root-makefile.patch, 1.6 KB (added by ddrake, 12 years ago)

patch for $SAGE_ROOT/makefile

  • makefile

    old new  
    1 # NUM_THREADS is the number of threads to use for parallel testing
    2 # (and sometime in the future, parallel building).  If this is 0, then
    3 # later it gets set to the number of processors -- see sage-ptest.
     1# NUM_THREADS is the number of threads to use for parallel testing (and
     2# sometime in the future, parallel building).  If this is 0, then it
     3# will be set to the number of processors, with a default maximum of 8
     4# -- see sage-ptest.
     5#
    46# The detection of number of processors might not be reliable on some
    5 # platforms. On a Sun SPARC T5240 (t2.math), the reported number of processors
    6 # might not correspond to the actual number of processors. See ticket #6283.
     7# platforms. On a Sun SPARC T5240 (t2.math), the number of processors
     8# reported by multiprocessing.cpu_count() might not correspond to the
     9# actual number of processors. See ticket #6283.
    710#
    8 # WARNING: Unless you are certain that you want to use all the cores/processors
    9 # on your system for parallel doctesting, change the value of NUM_THREADS to
    10 # a (sensible) positive integer. The default value is zero.
    11 NUM_THREADS=0  # default is zero
     11# WARNING: if your machine has <= 8 cpus (according to cpu_count() and
     12# you *don't* want to use that many threads for parallel doctesting,
     13# change the value of NUM_THREADS to a (sensible) positive integer. If
     14# cpu_count() reports > 8, then if NUM_THREADS is 0, only 8 threads will
     15# be used. The default value is zero.
     16NUM_THREADS=0  # 0 interpreted as min(8, multiprocessing.cpu_count())
    1217
    1318
    1419all: