Compare commits

...

3 Commits
master ... f20

Author SHA1 Message Date
Dominik Mierzejewski
c8f4e5ab00 disable tests on i686 with mpich
They don't seem to complete in time.
2014-07-03 19:43:43 +02:00
Dominik 'Rathann' Mierzejewski
3495c34d52 Add rsh BR to fix failing regtests with openmpi 2014-07-02 14:47:56 +02:00
Dominik 'Rathann' Mierzejewski
78a085cd54 initial import on f20 branch 2014-07-01 23:41:50 +02:00
4 changed files with 31 additions and 16 deletions

View File

@ -6,7 +6,7 @@ diff -up mpich/configure.ac.blacs mpich/configure.ac
dnl first check blas
- AC_SEARCH_LIBS([dgemm],[blas],[can_link_with_blas=yes],[can_link_with_blas=no])
+ AC_SEARCH_LIBS([dgemm],[satlas blas],[can_link_with_blas=yes],[can_link_with_blas=no])
+ AC_SEARCH_LIBS([dgemm],[f77blas blas],[can_link_with_blas=yes],[can_link_with_blas=no],[-lf77blas -latlas])
AC_MSG_CHECKING([whether we can link a program with a blas lib])
AC_MSG_RESULT([${can_link_with_blas}])

21
elpa-blacs.patch Normal file
View File

@ -0,0 +1,21 @@
diff -up mpich/configure.ac.blacs mpich/configure.ac
--- mpich/configure.ac.blacs 2014-03-21 12:10:21.000000001 +0100
+++ mpich/configure.ac 2014-06-29 22:47:36.214804126 +0200
@@ -291,7 +291,7 @@ else
fi
dnl now blacs
- AC_SEARCH_LIBS([blacs_gridinit],[mpiblacs],[can_link_with_blacs=yes],[can_link_with_blacs=no])
+ AC_SEARCH_LIBS([blacs_gridinit],[mpiblacs],[can_link_with_blacs=yes],[can_link_with_blacs=no],[-lmpiblacsF77init])
AC_MSG_CHECKING([whether we can link a program with a blacs lib])
AC_MSG_RESULT([${can_link_with_blacs}])
@@ -300,7 +300,7 @@ else
fi
dnl now scalapack
- AC_SEARCH_LIBS([pdtran],[mpiscalapack],[can_link_with_scalapack=yes],[can_link_with_scalapack=no])
+ AC_SEARCH_LIBS([pdtran],[mpiscalapack scalapack],[can_link_with_scalapack=yes],[can_link_with_scalapack=no],[-lmpiblacsF77init])
AC_MSG_CHECKING([whether we can link a program with a scalapack lib])
AC_MSG_RESULT([${can_link_with_scalapack}])

View File

@ -1,12 +0,0 @@
diff -up mpich/configure.ac.r mpich/configure.ac
--- mpich/configure.ac.r 2014-05-19 22:31:26.000000000 +0200
+++ mpich/configure.ac 2014-06-07 16:30:09.806374359 +0200
@@ -300,7 +300,7 @@ else
fi
dnl now scalapack
- AC_SEARCH_LIBS([pdtran],[mpiscalapack],[can_link_with_scalapack=yes],[can_link_with_scalapack=no])
+ AC_SEARCH_LIBS([pdtran],[scalapack],[can_link_with_scalapack=yes],[can_link_with_scalapack=no])
AC_MSG_CHECKING([whether we can link a program with a scalapack lib])
AC_MSG_RESULT([${can_link_with_scalapack}])

View File

@ -8,8 +8,8 @@ Release: 3.%{rel}%{?dist}
URL: http://elpa.rzg.mpg.de/
# http://elpa.rzg.mpg.de/elpa-tar-archive/elpa-2013-11.006/at_download/file
Source0: ELPA_%{version}.%{rel}_%{snap}.tar.gz
# fix scalapack detection on F21+
Patch0: elpa-scalapack.patch
# fix blacs/scalapack detection on <F21
Patch0: elpa-blacs.patch
# fix pkgconfig files and linking against mpi libraries
Patch1: elpa-rpm.patch
# build against atlas instead of reference blas
@ -78,6 +78,8 @@ Summary: Fast library for parallel solution of eigenvalue problems (OpenMPI vers
BuildRequires: openmpi-devel
BuildRequires: blacs-openmpi-devel
BuildRequires: scalapack-openmpi-devel
# for regression tests using openmpi
BuildRequires: rsh
Requires: blacs-openmpi
Requires: scalapack-openmpi
Requires: %{name}-common = %{version}-%{release}
@ -115,7 +117,7 @@ This package contains the development files for ELPA (OpenMPI version).
%setup -q -c -T -a 0
mv ELPA_%{version} mpich
pushd mpich
%patch0 -p1 -b .scalapack
%patch0 -p1 -b .blacs
%patch1 -p1 -b .r
%patch2 -p1 -b .atlas
autoreconf -vifs
@ -126,6 +128,7 @@ cp -pr mpich openmpi _mt/
%build
export LDFLAGS="-L%{_libdir}/atlas"
export BLACS_LDFLAGS="-lmpiblacs -lmpiblacsF77init"
export FCFLAGS=-ffree-line-length-none
%{_mpich_load}
@ -196,6 +199,8 @@ rm %{buildroot}%{_bindir}/test*
%if 1
%check
# tests on i686 with mpich never complete, disable for now
%ifnarch i686
%{_mpich_load}
pushd mpich
make check
@ -204,6 +209,7 @@ pushd _mt/mpich
make check
popd
%{_mpich_unload}
%endif
# only non-mt openmpi build can be tested, see bug #1105902
%{_openmpi_load}