[pooma-dev] Patch: Doof2d: Eliminate Duplicate Computations

James Crotinger jcrotinger at proximation.com
Fri Oct 12 20:58:26 UTC 2001


I wouldn't think you'd want to time the initial condition setup.

  Jim

> -----Original Message-----
> From: Jeffrey Oldham [mailto:oldham at codesourcery.com]
> Sent: Friday, October 12, 2001 2:51 PM
> To: pooma-dev at pooma.codesourcery.com
> Subject: [pooma-dev] Patch: Doof2d: Eliminate Duplicate Computations
> 
> 
> 2001-10-12  Jeffrey D. Oldham  <oldham at codesourcery.com>
> 
>         This patch reduces duplicate computation in the 
> Doof2d benchmarks.
>         Both initialize() and run() set the initial conditions.  In
>         consultations with Stephen Smith, we have the untimed 
> initialize()
>         ensure that all the allocated memory pages are 
> actually created
>         and have run() set up the initial conditions.
> 
>         * Doof2d.h (Doof2dBase::initialize): Replace initialize() with
>         statements to ensure all memory pages are actually created.
>         (Doof2dBase::setInitialConditions): Removed in favor 
> of code in
>         initialize().
>         * Doof2dInC.h (Doof2dInC::initialize) and
>         (Doof2dInC::setInitialConditions): Likewise.
>         (Doof2dCoefsInC::initialize) and
>         (Doof2dCoefsInC::setInitialConditions): Likewise.
> 
> Tested on       sequential Linux using g++3.1 by running Doof2d
> Approved by     Stephen Smith
> Applied to      mainline
> 
> Thanks,
> Jeffrey D. Oldham
> oldham at codesourcery.com
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20011012/b694ba7c/attachment.html>


More information about the pooma-dev mailing list