[patch] Fix Rt_layout/Rt_extdata/Fftw3 BE

Jules Bergmann jules at codesourcery.com
Sat Jun 16 05:32:55 UTC 2007


This patch fixes a couple of bugs

  - First, it fixes Applied_layout<Rt_layout<Dim> > (used by
    Rt_extdata) to only pay attention to alignment
    when the pack type is stride_unit_aligned.  Previously it
    adjusted alignment when it was non-zero.  (This is probably
    the only fix strictly necessary to fix the test failures).

  - Second, it robustifies the FFT workspace frontend and
    the FFTW3 BE to deal with alignment requirements.

    For workspace, before constructing temporary input/output
    buffers, the backend is not queried to determine the
    acceptable layout.  This will handle cases
    where padding is needed to fix alignment.

    For the FFTW3 BE, the 2D FFTM implementation class now
    uses the stride arguments to determine the FFT to FFT
    stride (instead of the size).  This lets it deal with
    non-dense but unit-stride matrices.  (Right now query_layout
    guarantees that input/output matrices will be unit-stride,
    but in the future we can relax this).

I'm going to start a snapshot build with this.

				-- Jules

-- 
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fftw3.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20070616/41ecf30e/attachment.ksh>


More information about the vsipl++ mailing list