Hi, 2012/12/11 Maxime Boissonneault: > Hi, > I am using GSL from another library of my own to perform numerical > integration of vectorial differential equations. After optimizing and > parallelizing most of my library, I ended up with the conclusion that GSL is > a major bottle neck in my computation, simply because it is not parallelized > to exploit multi-core achitectures. > > I would like to submit patches to add support for OpenMP within GSL, > allowing easy parallelization on shared-memory architectures. How should I > proceed to do so ?
I think the most straightforward approach would be to use OpenMP inside the function that calculates the r.h.s. of your differential equation. This does not require any modifications to GSL at all. Reorganising the ODE solver code in GSL such that it can make use of many cores might not be easily possible because often the parameters passed to the r.h.s. function depend on the results of earlier calls. Best regards, Frank
