9680a0e
Notes on the Fedora version of ATLAS
Quentin Spencer cdd5623
Quentin Spencer cdd5623
by Quentin Spencer
Quentin Spencer 2c4ed29
updated: October 4, 2005
Quentin Spencer cdd5623
9680a0e
updated by Deji Akingunola
9680a0e
October 15, 2008
Quentin Spencer cdd5623
Quentin Spencer cdd5623
Because ATLAS relies on compile-time optimizations to obtain improved
Quentin Spencer cdd5623
performance over BLAS and LAPACK, the resulting binaries are closely
Quentin Spencer cdd5623
tied to the hardware on which they are compiled, and can likely result
Quentin Spencer cdd5623
in very poor performance on other hardware.  For this reason,
Quentin Spencer cdd5623
including a package like ATLAS in Fedora requires some compromises.
Quentin Spencer cdd5623
Firstly, a binary ATLAS package must perform reasonably well on the
Quentin Spencer cdd5623
entire range of hardware on which it could potentially be installed.
Quentin Spencer cdd5623
Optimizing ATLAS for the most modern hardware can result in
Quentin Spencer cdd5623
significant performance penalties for users using the same package on
Quentin Spencer cdd5623
older hardware.  Second, building from the same source package must
Quentin Spencer cdd5623
result in identical binaries for any computer of a particular
Quentin Spencer 2c4ed29
architecture.  This is because the binaries installed on a user's
Quentin Spencer 2c4ed29
computer are built on a computer in the Fedora Extras build system,
Quentin Spencer 2c4ed29
which will have hardware different from the end user's hardware, and
Quentin Spencer 2c4ed29
quite possibly different from other available hardware in the build
Quentin Spencer 2c4ed29
system.
Quentin Spencer cdd5623
9680a0e
As of version 3.8.2 (in Fedora), ATLAS builds uses achitectural defaults,
9680a0e
are partial results of past searches when the compiler and architecture
9680a0e
are known, to discover the appropriate kernels used to build all the required
9680a0e
libraries. They make install time quicker and also ensure that good results are
9680a0e
obtained, since they typically represent several searches and/or user
9680a0e
intervention into the usual search so that maximum performance is found.
9680a0e
The result is a set of libraries that will not
Quentin Spencer cdd5623
necessarily achieve optimal performance on any given hardware but
Quentin Spencer cdd5623
should still offer significant performance gains over the reference
Quentin Spencer cdd5623
BLAS and LAPACK libraries on most hardware.  The binary package
Quentin Spencer cdd5623
includes the atlas libraries as well as binary-compatible blas and
Quentin Spencer cdd5623
lapack libraries that should work as a drop-in replacement for the
9680a0e
standard ones (they are installed in /usr/lib{64}/atlas* rather than
9680a0e
/usr/lib{64}).
9680a0e
3cd5fae
For i386 systems, 4 ATLAS subpackages are built for 3Dnow, SSE1, SSE2, and SSE3
3cd5fae
ix86 extensions, using architectural defaults obtained from Athlon K7, PIII, Pentium 4 with SSE2 extension and PENTIUM 4 with SSE3 extensions respectively.
3cd5fae
3cd5fae
This packaging allows multiple installation of different atlas sub-packages
3cd5fae
at the same time. The alternatives system (read 'man alternatives' for usage)
3cd5fae
is used in the -devel subpackages to select the appropriate location for the 
3cd5fae
architectural dependent header files.
3cd5fae
 
Quentin Spencer cdd5623
This package is designed to build RPMs that are identical regardless
Quentin Spencer cdd5623
of where they are compiled and that provide reasonable performance on
Quentin Spencer cdd5623
a wide range of hardware. For users who want optimal performance on
Quentin Spencer cdd5623
particular hardware, custom RPMs can be built from the source package
9680a0e
by setting the RPM macro "enable_native_atlas" to a value of 1. This
Quentin Spencer cdd5623
can be done from the command line as in the following example:
Quentin Spencer cdd5623
3cd5fae
rpmbuild -D "enable_native_atlas 1" --rebuild atlas-3.8.3-1.src.rpm
Quentin Spencer cdd5623
9680a0e
This will cause the ATLAS build to use the achitectural default most
9680a0e
appropriate for the system on which the package is to be built.