comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
To: Francis Burton <fburton@nyx.net>
Subject: Re: Multithreaded scientific programming
Date: Thu, 05 Oct 2006 22:20:53 +0200
Date: 2006-10-05T22:20:57+02:00	[thread overview]
Message-ID: <45256925.2010607@obry.net> (raw)
In-Reply-To: <1160074696.879735@irys.nyx.net>

Francis Burton a �crit :
> In article <eg3c27$7kl$1@reader1.panix.com>,
> David B. Chorlian  <davidc@panix.com> wrote:
>> Please, let's have something worthwhile rather the above joke.
> 
> You don't say why it is a joke and not worthwhile. Is this
> an opinion, or fact?

Probably not a joke as this was presented by Jim as a "modest example".
I also think that this is not a proper solution as creating 9 tasks for
each 3x3 matrix product is a waste of resources. But isn't this the path
followed by OpenMP ?

First of all : I'm no expert on this domain.

I tend to think that in a real world scientific applications there is a
lot of vector/matrix/whatever computations to be done. Also not the
whole application is computation intensive (data loading or
initialization for example).

I like to think as a work flow. Some tasks are preparing data to be
computed and storing them in a queue. Some others are getting the job to
be done from those queues. In this case the tasks are on the same
computer or distributed (here Ada Distributed Annex can be of great
use). The deal is to balance the different tasks to avoid starvation
(from reader tasks) or waiting when queues are full.

At least in such architecture the number of tasks is mostly static. We
do not waste too much time creating and finalizing tasks/threads.

Anyway, here Ada concurrency and distributed support can be used instead
of the OpenMP and MPI couple as used in many Fortran and C/C++ applications.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



  reply	other threads:[~2006-10-05 20:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1159978124.458442.80520@m7g2000cwm.googlegroups.com>
     [not found] ` <4523e925$1@nntp.unige.ch>
2006-10-04 21:47   ` Multithreaded scientific programming mrohan
2006-10-05  0:14     ` jimmaureenrogers
2006-10-05  4:18       ` tmoran
2006-10-05 16:32       ` David B. Chorlian
2006-10-05 17:58         ` jimmaureenrogers
2006-10-05 18:35         ` Martin Krischik
2006-10-06 18:22           ` Björn Persson
2006-10-06 20:57             ` jimmaureenrogers
2006-10-09  6:36             ` Martin Krischik
2006-10-05 18:58         ` Francis Burton
2006-10-05 20:20           ` Pascal Obry [this message]
2006-10-06  1:28         ` jimmaureenrogers
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox