public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Frank Reininghaus <frank78ac@googlemail.com>
To: gsl-discuss@sourceware.org
Subject: Re: Adding OpenMP support for some of the GSL functions
Date: Wed, 12 Dec 2012 16:35:00 -0000	[thread overview]
Message-ID: <CAFoZWWjOJHyZG1JQpUAix7CpK3U+nagd92cSgnMM4SPZnGZfLg@mail.gmail.com> (raw)
In-Reply-To: <50C791BB.4060303@calculquebec.ca>

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

  reply	other threads:[~2012-12-12 16:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 20:04 Maxime Boissonneault
2012-12-12 16:35 ` Frank Reininghaus [this message]
2012-12-12 21:11   ` Maxime Boissonneault
2012-12-12 21:41     ` Rhys Ulerich
2012-12-12 23:32       ` Maxime Boissonneault
2012-12-12 17:05 ` Rhys Ulerich
2012-12-12 21:13   ` Maxime Boissonneault
2012-12-12 21:36     ` Rhys Ulerich
2012-12-12 23:35       ` Maxime Boissonneault
2012-12-13  2:29         ` Rhys Ulerich
2012-12-13 13:22           ` Maxime Boissonneault
2012-12-13 15:53             ` Rhys Ulerich
2012-12-13 16:44               ` Rhys Ulerich
2012-12-13 21:07                 ` Maxime Boissonneault
2012-12-13 21:05               ` Maxime Boissonneault
2012-12-13 21:14                 ` Maxime Boissonneault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFoZWWjOJHyZG1JQpUAix7CpK3U+nagd92cSgnMM4SPZnGZfLg@mail.gmail.com \
    --to=frank78ac@googlemail.com \
    --cc=gsl-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).