comp.lang.ada
 help / color / mirror / Atom feed
From: Brad Moore <brad.moore@shaw.ca>
Subject: ANN: Paraffin 4.2, Parallelism Generics
Date: Sun, 05 May 2013 11:18:38 -0600
Date: 2013-05-05T11:18:38-06:00	[thread overview]
Message-ID: <Pvwht.54168$zt4.27465@newsfe15.iad> (raw)

This is a minor update to the Paraffin release 4.1 that was released a 
couple days ago.

This release (4.2) is geared towards getting the Ravenscar version of 
the FFT (Fast Fourier Transform) paraffinalia app to work on Windows, 
and other targets where synchronous barriers are implemented by
protected types.

To achieve this, a new package, called 
Parallel.Simple_Synchronous_Barriers was introduced.

This package provides the services of a barrier when only two tasks
need to wait on the barrier, and is implemented using Ada's suspension
objects, rather than a protected type.

The issue is that on Windows, Ada.Synchronous_Barriers is implemented
by a protected object in GNAT. Ravenscar disallows protected objects
to be declared at a nested level, which is needed by the FFT app.
Since only two tasks ever need to wait on a barrier in the FFT
algorithm, a specialized implementation of a barrier can be constructed
using Ada's suspension objects.

This specialized barrier satisfies the Ravenscar restrictions, but also
is lighter weight, and was deemed worthwhile for use for the 
non-ravenscar version of fft.

As a result of this change, the project file test_ravenscar_fft_linux
was renamed to test_ravenscar_fft, since it should now be portable to
all targets.

The latest stable release and older releases may be downloaded from;

  https://sourceforge.net/projects/paraffin/files/

For those who want the current development versions of the source they
can download using git (http://git-scm.com/) by issuing the following
commands;

  mkdir sandbox
  cd sandbox
  git clone git://git.code.sf.net/p/paraffin/code paraffin-code



             reply	other threads:[~2013-05-05 17:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-05 17:18 Brad Moore [this message]
2013-06-05 15:39 ` ANN: Paraffin 4.2, Parallelism Generics volkert.barr
2013-06-06 14:38   ` Brad Moore
2013-06-07  9:19     ` volkert.barr
replies disabled

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