rpms/scalapack/devel scalapack-1.7-fedora.patch, NONE, 1.1 scalapack.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Tom Callaway (spot) fedora-extras-commits at redhat.com
Sun Apr 24 17:46:34 UTC 2005


Author: spot

Update of /cvs/extras/rpms/scalapack/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5198/devel

Modified Files:
	.cvsignore sources 
Added Files:
	scalapack-1.7-fedora.patch scalapack.spec 
Log Message:
auto-import scalapack-1.7-2 on branch devel from scalapack-1.7-2.src.rpm

scalapack-1.7-fedora.patch:

--- NEW FILE scalapack-1.7-fedora.patch ---
--- scalapack-1.7/SCALAPACK/SLmake.inc.BAD	2005-04-18 16:22:41.000000000 -0500
+++ scalapack-1.7/SCALAPACK/SLmake.inc	2005-04-18 16:34:42.000000000 -0500
@@ -29,16 +29,16 @@
 #  and the directory where the BLACS libraries are
 #
 BLACSDBGLVL   = 0
-BLACSdir      = /usr/local/lib
+BLACSdir      = /usr/lib
 #
 #  MPI setup; tailor to your system if using MPIBLACS
 #  Will need to comment out these 6 lines if using PVM
 #
 USEMPI        = -DUsingMpiBlacs
-SMPLIB        = /usr/local/mpich-1.2.1/lib/libmpich.a
-BLACSFINIT    = $(BLACSdir)/libmpiblacsF77init-p4.a
-BLACSCINIT    = $(BLACSdir)/libmpiblacsCinit-p4.a
-BLACSLIB      = $(BLACSdir)/libmpiblacs-p4.a
+SMPLIB        = /usr/lib/libmpi.a
+BLACSFINIT    = $(BLACSdir)/libmpiblacsF77init.a
+BLACSCINIT    = $(BLACSdir)/libmpiblacsCinit.a
+BLACSLIB      = $(BLACSdir)/libmpiblacs.a
 TESTINGdir    = $(home)/TESTING
 
 #
@@ -67,12 +67,12 @@
 #
 #  The fortran and C compilers, loaders, and their flags
 #
-F77           = g77
+F77           = gfortran
 #F77           = /usr/local/pgi/linux86/bin/pgf77
 CC            = gcc
 NOOPT         = 
-F77FLAGS      =  -O3 $(NOOPT)
-CCFLAGS       = -O4
+F77FLAGS      = $(RPM_OPT_FLAGS) $(NOOPT)
+CCFLAGS       = $(RPM_OPT_FLAGS)
 SRCFLAG       =
 F77LOADER     = $(F77)
 CCLOADER      = $(CC)
@@ -94,7 +94,7 @@
 #  The name of the libraries to be created/linked to
 #
 SCALAPACKLIB  = $(home)/libscalapack.a
-BLASLIB       = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
+BLASLIB       = /usr/lib/libblas.a
 #
 PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
 PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
--- scalapack-1.7/SCALAPACK/SLmake.inc.BAD	2005-04-18 16:59:45.000000000 -0500
+++ scalapack-1.7/SCALAPACK/SLmake.inc	2005-04-18 16:59:59.000000000 -0500
@@ -19,7 +19,7 @@
 #  The complete path to the top level of ScaLAPACK directory, usually
 #  $(HOME)/SCALAPACK
 #
-home          = $(HOME)/SCALAPACK
+home          = $(RPM_BUILD_DIR)/scalapack-1.7/SCALAPACK
 #
 #  The platform identifier to suffix to the end of library names
 #
--- scalapack-1.7/SCALAPACK/SLmake.inc.BAD	2005-04-18 17:17:04.000000000 -0500
+++ scalapack-1.7/SCALAPACK/SLmake.inc	2005-04-18 17:20:06.000000000 -0500
@@ -96,7 +96,10 @@
 SCALAPACKLIB  = $(home)/libscalapack.a
 BLASLIB       = /usr/lib/libblas.a
 #
-PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
-PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
-RLIBS         = $(SCALAPACKLIB) $(FBLACSLIB) $(CBLACSLIB) $(BLASLIB) $(SMPLIB)
+LAMLIBS       = /usr/lib/liblam.a /usr/lib/liblamf77mpi.a
+EXTRALIBS     = -ldl -lpthread -llam -lmpi -llamf77mpi
+
+PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB) $(LAMLIBS) $(EXTRALIBS)
+PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB) $(LAMLIBS) $(EXTRALIBS)
+RLIBS         = $(SCALAPACKLIB) $(FBLACSLIB) $(CBLACSLIB) $(BLASLIB) $(SMPLIB) $(LAMLIBS) $(EXTRALIBS)
 LIBS          = $(PBLIBS)


--- NEW FILE scalapack.spec ---
Summary: A subset of LAPACK routines redesigned for distributed memory MIMD parallel computers
Name: scalapack
Version: 1.7
Release: 2
License: Freely distributable
Group: Development/Libraries
URL: http://www.netlib.org/scalapack/scalapack_home.html
Source0: http://www.netlib.org/scalapack/scalapack.tgz
BuildRequires: lapack, blas, lam, blacs
BuildRequires: gcc-gfortran
Requires: lapack, blas, lam, blacs
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: scalapack-1.7-fedora.patch

%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.

ScaLAPACK is designed for heterogeneous computing and is 
portable on any computer that supports MPI or PVM.

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 -c -n %{name}-%{version}
%patch0 -p1

%build
cd SCALAPACK
make lib
make exe

%install
rm -fr ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}

cd SCALAPACK
cp -f INSTALL/scalapack_install.ps ../
cp -f README ../
cp -f libscalapack.a ${RPM_BUILD_ROOT}%{_libdir}
cp -f TESTING/x* ${RPM_BUILD_ROOT}%{_bindir}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -fr ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc scalapack_install.ps README
%{_bindir}/x*
%{_libdir}/libscalapack.a

%changelog
* Tue Apr 19 2005 Tom "spot" Callaway <tcallawa at redhat.com> 1.7-2
- fix buildroot
- add gcc-gfortran to BuildRequires (gcc-g77 for fc3)

* Mon Apr 18 2005 Tom "spot" Callaway <tcallawa at redhat.com> 1.7-1
- initial package creation


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/scalapack/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Apr 2005 17:44:27 -0000	1.1
+++ .cvsignore	24 Apr 2005 17:46:32 -0000	1.2
@@ -0,0 +1 @@
+scalapack.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/scalapack/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Apr 2005 17:44:27 -0000	1.1
+++ sources	24 Apr 2005 17:46:32 -0000	1.2
@@ -0,0 +1 @@
+6d214940fab71d56117184d55cbb29f1  scalapack.tgz




More information about the scm-commits mailing list