Le mercredi 22 janvier 2020 07:43:52 UTC+1, Mattia Villani a écrit : > > How to use parallelization on contraction of tensor? Consider the case I > have two successive contraction like this: > > Tud=etuu['^{ab}']*eamup['^c_b'] > Tp=Tud['^{ab}']*eamup['^c_a'] > > How con I parallelize it? >
It suffices to type, before your code for contraction: Parallelism().set(nproc=8) Then the calculus of the contactions will be parallelized on 8 processes. Of course, you can adapt the value of nproc to your computer. An example is here <https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Notebooks/SM_Kerr.ipynb> . Best wishes, Eric. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/ce95b14e-f7bb-4db5-85b2-f50c7e7ad4d9%40googlegroups.com.