Re: [sage-devel] How parallel should @parallel be?

2018-07-10 Thread Erik Bray
On Tue, Jul 10, 2018 at 12:43 PM Jeroen Demeyer wrote: > > On 2018-07-10 12:37, Erik Bray wrote: > > If I want to limit > > parallelization on a machine that I'm concurrently using for other > > work, that's kind of a decision a human has to make. > > One could argue the other way around: if I

Re: [sage-devel] How parallel should @parallel be?

2018-07-10 Thread Jeroen Demeyer
On 2018-07-10 12:37, Erik Bray wrote: If I want to limit parallelization on a machine that I'm concurrently using for other work, that's kind of a decision a human has to make. One could argue the other way around: if I want Sage to use all resources on the machine that it's running on,

Re: [sage-devel] How parallel should @parallel be?

2018-07-10 Thread Erik Bray
On Mon, Jul 9, 2018 at 6:35 PM Julian Rüth wrote: > > Hello. > > since Sage 8.2 sage.parallel.ncpus.ncpus() returns 1 if you have no > environment variables such as MAKE, SAGE_NUM_THREADS, MAKEOPTS set. > > This number is used by the @parallel decorator and similar constructions to > determine

Re: [sage-devel] How parallel should @parallel be?

2018-07-09 Thread Jori Mäntysalo
On Mon, 9 Jul 2018, Julian Rüth wrote: The question is: What is a good default for things such as @parallel when SAGE_NUM_THREADS has not been set? I think that 1 is not a good one. The actual number of cores/threads on a system probably isn't either on servers with lots of cores. At some point

[sage-devel] How parallel should @parallel be?

2018-07-09 Thread Julian Rüth
Hello. since Sage 8.2 sage.parallel.ncpus.ncpus() returns 1 if you have no environment variables such as MAKE, SAGE_NUM_THREADS, MAKEOPTS set. This number is used by the @parallel decorator and similar constructions to determine the number of processes to run in parallel. (Unless during