%define _approot /opt/scalapack %define _pkgname scalapack %define _modroot /usr/share/Modules/modulefiles/scalapack Name: scalapack-mpich1-gnu Version: 1.8.0 Release: 4 Summary: The ScaLAPACK (or Scalable LAPACK) library includes a subset of LAPACK routines redesigned for distributed memory MIMD parallel computers. Group: Development/Libraries # This is freely distributable without any restrictions. License: Public Domain URL: http://www.netlib.org/scalapack/ Source: %{name}-%{version}.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: mpich1-ethernet-gnu coreutils glibc BuildRequires: mpich1-ethernet-gnu atlas atlas-devel coreutils blacs-mpich1-gnu %description The ScaLAPACK (or Scalable LAPACK) library includes a subset of LAPACK routines redesigned for distributed memory MIMD parallel computers. It is currently written in a Single-Program-Multiple-Data style using explicit message passing for interprocessor communication. It assumes matrices are laid out in a two-dimensional block cyclic decomposition. Like LAPACK, the ScaLAPACK routines are based on block-partitioned algorithms in order to minimize the frequency of data movement between different levels of the memory hierarchy. (For such machines, the memory hierarchy includes the off-processor memory of other processors, in addition to the hierarchy of registers, cache, and local memory on each processor.) The fundamental building blocks of the ScaLAPACK library are distributed memory versions (PBLAS) of the Level 1, 2 and 3 BLAS, and a set of Basic Linear Algebra Communication Subprograms (BLACS) for communication tasks that arise frequently in parallel linear algebra computations. In the ScaLAPACK routines, all interprocessor communication occurs within the PBLAS and the BLACS. One of the design goals of ScaLAPACK was to have the ScaLAPACK routines resemble their LAPACK equivalents as much as possible. %prep %setup -q -n %{name} %build tar xzf %{_pkgname}-%{version}.tgz %ifarch i386 cp SLmake-mpich1-gnu.inc.32 %{_pkgname}-%{version}/SLmake.inc %else cp SLmake-mpich1-gnu.inc.64 %{_pkgname}-%{version}/SLmake.inc %endif cd %{_pkgname}-%{version} #cp %{SOURCE2} REDIST/TESTING/. export home=%{_builddir}/%{name}/%{_pkgname}-%{version} make lib make exe %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot}/mpich1/gnu/lib mkdir -p %{buildroot}%{_approot}/mpich1/gnu/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_pkgname}-%{version} cp -f libscalapack.* %{buildroot}%{_approot}/mpich1/gnu/lib cp -f TESTING/x* %{buildroot}%{_approot}/mpich1/gnu/bin cp -f TESTING/*.dat %{buildroot}%{_approot}/mpich1/gnu/bin chmod a+r %{buildroot}%{_approot}/mpich1/gnu/bin/*.dat %clean rm -rf %{buildroot} %post %pre %files %defattr(-,root,root,-) %{_approot} %{_modroot}/%{name} %changelog * Fri Nov 28 2008 Mehdi Bozzo-Rey 1.8.0-4 - fixed permissions for *.dat input files for test cases; binaries and input files are now in the same directory * Mon Jun 2 2008 Mike Frisch 1.8.0-3 - Add missing copyright * Thu May 15 2008 Mike Frisch 1.8.0-2 - Adjusted compiler flags for Fortran 90 compiler (#108811) * Tue Sep 25 2007 Najib Ninaba - Initial packaging