On Fri, Sep 3, 2010 at 12:47 PM, 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? > > Besides, a while ago I asked how one can execute the sage test script > on a string, *without* saving that string into a file and *without* > forking a "sage -t" subprocess. Do you see a way? >
>From what I remember, sage -t just uses python doctests (can anyone confirm that?). you could use python's doctest module to run these doctests programatically. > Best regards, > Simon > > -- > 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 > -- 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