Skip to Content.
Sympa Menu

mathemagix-devel - Multi-thread support

Subject: Mathemagix

List archive

Multi-thread support


Chronological Thread 
  • From: Joris van der Hoeven <address@concealed>
  • To: address@concealed
  • Subject: Multi-thread support
  • Date: Tue, 27 Nov 2007 23:03:03 +0100

Hi,

Last days, I added multi-thread support to Mathemagix.
For the moment, the model is very simple, since memory management and
tables are not thread-safe. Therefore, the different threads should
only operate on very low-level data, such as vectors or matrices
of doubles or integers mod p. As for high performance fortran,
we start a fixed number of threads to which a vector of tasks
can be passed using the instruction

void threads_execute (task* ts, nat n);

The mechanism has been validated for vector operations and
matrix multiplication. In the last case, I indeed seem to gain
a factor 2 on my bi-processor system. The usual timing mechanism
does not seem to work though.

Best wishes,

Joris


  • Multi-thread support, Joris van der Hoeven, 11/27/2007

Archive powered by MHonArc 2.6.18.

Top of Page