%define _approot /opt/scalapack %define _pkgname scalapack %define _modroot /usr/share/Modules/modulefiles/scalapack Name: scalapack-mvapich1-gnu Version: 1.8.0 Release: 5 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: mvapich1-infiniband-gnu coreutils glibc BuildRequires: mvapich1-infiniband-gnu atlas coreutils blacs-mvapich1-gnu >= 20000224-4 %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-mvapich1-gnu.inc.32 %{_pkgname}-%{version}/SLmake.inc %else cp SLmake-mvapich1-gnu.inc.64 %{_pkgname}-%{version}/SLmake.inc %endif cd %{_pkgname}-%{version} export home=%{_builddir}/%{name}/%{_pkgname}-%{version} make lib make exe %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot}/mvapich1/gnu/lib mkdir -p %{buildroot}%{_approot}/mvapich1/gnu/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_pkgname}-%{version} cp -f libscalapack.* %{buildroot}%{_approot}/mvapich1/gnu/lib cp -f TESTING/x* %{buildroot}%{_approot}/mvapich1/gnu/bin cp -f TESTING/*.dat %{buildroot}%{_approot}/mvapich1/gnu/bin chmod a+r %{buildroot}%{_approot}/mvapich1/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-5 - fixed the perms problem for dat files and moved them in the bin directory * Wed Nov 26 2008 Mehdi Bozzo-Rey 1.8.0-4 - cleanup + updated buildreq (blacs version) * Mon Jun 2 2008 Mike Frisch 1.8.0-3 - Add missing copyright * Thu May 15 2008 Mike Frisch 1.8.0-2 - Modified to support Fortran 90 * Tue Sep 25 2007 Najib Ninaba - Initial packaging