#18100: Parallelization of computations on tensors on free modules
-------------------------------------+-------------------------------------
       Reporter:  egourgoulhon       |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.10
      Component:  linear algebra     |   Resolution:
       Keywords:  parallelization,   |    Merged in:
  free module, tensor                |    Reviewers:  Vincent Delecroix
        Authors:  Marco Mancini      |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  53c248cd5f915134eb63e96050b0c5b5f9e47996
  public/18100-parallelization_tensors|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_info
 * reviewer:   => Vincent Delecroix


Comment:

 Some more questions:

 - I still don't understand why there is an object oriented interface
 '''and''' a function interface. Why not only one?

 - Wouldn't it be better to gather everything related to parallelism in a
 single place? You could mimic what is done for proofs
 (`sage.structure.proof.proof`) or global options
 (`sage.structure.global_options`). These two are not perfect but at least
 they intend to be general and reusable. The object oriented interface
 could be something like:
 {{{
 sage: Parallelism().get('tensor')
 1
 sage: Parallelism().set('tensor', 3)
 sage: Parallelism().set_default(3)
 sage: Parallelism().get_default()
 3
 sage: Parallellism().get_all()
 {
  'tensor': 3,
  'xyz': 2
 }
 }}}
 (though that could be postponed to some other tickets)

 - The functions `get_nproc_tensor` and `set_nproc_tensor` should
 definitely not be in the global namespace as they are very much
 specialized.

--
Ticket URL: <http://trac.sagemath.org/ticket/18100#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to