[vsipl++] VSIPL++ availability for PowerPC AltiVec
Brooks Moses
brooks at codesourcery.com
Mon Feb 11 21:10:00 UTC 2008
Hello, Jeff,
Jeff Bateman wrote, at 2/11/2008 12:28 PM:
> Please advise - is VSIPL++ available for AltiVec? Or, might it be ported
> to AltiVec in the (near) future?
Yes, Altivec is supported, and we will be producing a PowerPC-Altivec
binary package as part of the upcoming 1.4 release.
VSIPL++ contains some internal SIMD code, and also depends heavily on
the BLAS, LAPACK, and FFTW libraries that it is linked with for the
back-end computation, so as long as you compile the VSIPL++ library and
your code with the relevant compiler options and link with Altivec
versions of those libraries, you should see the library making good use
of the Altivec extensions.
Fedora 7 provides Altivec-enabled versions of ALTAS as standard RPMS
("atlas-altivec" and "atlas-altivec-devel"); we've had success linking
against those, using the following configure options:
--with-lapack=atlas --with-atlas-include=/usr/include/atlas
--with-atlas-libdir=/usr/lib/altivec
(Note the libdir option in particular; Fedora also has a non-Altivec
ATLAS that goes in /usr/lib, which would be used if you don't explicitly
point to the /usr/lib/altivec ones.)
Also, I believe that the standard Fedora FFTW3 packages ("fftw" and
"fftw-devel") use Altivec as well. The configure flag to link against
those is simply:
--enable-fft=fftw3
Finally, for GCC you will want to include
CXXFLAGS="-maltivec"
in the configure line; other compilers will need an equivalent option
unless they enable Altivec extensions by default.
Hope that helps, and let us know if you have further questions!
Thanks,
- Brooks
More information about the vsipl++
mailing list