Dodoni.MathLibrary.Native.ACML

1. Overview

Provides wrapper for the Core Math Library (ACML), a library that provides a free set of thoroughly optimized and threaded math routines for HPC, scientific, engineering and related compute-intensive applications. The main native dll of the ACML Library should be renamed to libACML.dll to ensure that it can be found by Dodoni.MathLibrary.Native.ACML.

2. Dependencies

This assembly depends on

3. Main concepts and helpful code snippets

The Managed Extensibility Framework (MEF) is used to dynamic link to this assembly. If specific features of this assembly are used which are not covered by the generic interface one has to add a reference to this assembly; in all other cases a reference to this assembly is optional. This is true for Fast Fourier Transformations only.

The following code snippets shows how random number can be generated as a simple example.
int sampleSize = 100;
double a = 0.0;
double b = 1.0;
var library = new AcmlRandomNumberLibrary();
var sample = new double[sampleSize];

IRandomNumberStream randomStream = library.MT19937.Create(12);
// or: var randomStream = AcmlPseudoRandomNumberGenerator.MT19937.Create(12);
randomStream.NextNumberSequence.Uniform(sampleSize, sample, a, b);

One may have a look in the unit test project of Dodoni.MathLibrary.Native.ACML; see API documentation for more information.

4. Important remarks

AMD discontinued support for 32-bit ACML. Many tests have been made with ACML 4.4 which seems to be the latest 32-bit release.


Last edited Oct 15, 2014 at 11:28 AM by dodoni, version 7