Hi,

Regarding your question 3:

Le vendredi 22 mars 2019 11:15:04 UTC+1, Clement Pernet a écrit :

>
> 3. What interface do we want for the sage user who wants to 
>
>    3a switch between sequential and parallel, 
>
>    3b specify the number of cores to be used ? 
>
> Should there be some kind of environment variable containing such 
> informations? 
>
>
note that there exists already in Sage the singleton class Parallelism(), 
which has been invented precisely for this:
http://doc.sagemath.org/html/en/reference/parallel/sage/parallel/parallelism.html
For instance, in your case, it could be used as 

sage: Parallelism().set('fflas-ffpack', nproc=8)

or any better name that you may figure out, e.g.

sage: Parallelism().set('linear_algebra', nproc=8)

Note that one can also use the shorten version

sage: Parallelism().set(nproc=8)

to trigger parallel computations in all declared fields, i.e. including 
fflas-ffpack if you have registered it in the dictionary attribute `_nrpoc` 
of class Parallelism.

Best wishes,

Eric. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to