On Sep 3, 10:47 am, Simon King <simon.k...@nuigalway.ie> wrote: > Hi! > > I have a list of computations (in fact, a test suite), and I'd like to > do them in parallel. Of course, I could use @parallel, but: > 1) each computation uses 3 processes (Sage, GAP, Singular) > 2) it is probably not nice to other users if parallel computation > uses all available CPUs. > > I'd like to restrict @parallel(ncpus=...), where "..." is something > like 1/2 (or 1/3?) of the available CPUs. But how can I determine > this number?
>From sage (or python): sage: import multiprocessing sage: multiprocessing.cpu_count() returns a number claiming to be the number of cpus. I don't have an answer to your other question. -- John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org