On Fri, Sep 3, 2010 at 10:47 AM, Simon King <[email protected]> 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.

Are the tests simultaneously using lots of CPU on all three processes,
or (more likely) is one doing the work and the other two waiting
around for most of the time. In this case, no need to divide by two or
three.

> 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?

I don't know of any way to do that, but saving to a file isn't so bad.

- Robert

-- 
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-support
URL: http://www.sagemath.org

Reply via email to