From 99d6b84c84b6f2656f3afaf606152c7ffff0420f Mon Sep 17 00:00:00 2001 From: edoapra Date: Mon, 11 Sep 2017 16:21:55 -0700 Subject: [PATCH 1/4] fix for case for large matrices when nprocs0/(2**I) is always larger than 1 provided by Huub van Dam --- global/src/scalapack.F | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global/src/scalapack.F b/global/src/scalapack.F index 443043d87..6c56540fc 100644 --- a/global/src/scalapack.F +++ b/global/src/scalapack.F @@ -230,7 +230,7 @@ INTGR4 function slgetmxproc(n,nnodes) INTGR4 nmax,nprocs,twoi double precision nprocs0 double precision otto - parameter(nmax=11,fact=((7108d0*7108d0)/1024d0),otto=8d0) + parameter(nmax=19,fact=((7108d0*7108d0)/1024d0),otto=8d0) cnew parameter(nmax=11,fact=((7108d0*7108d0)/512d0),otto=8d0) c lower bound of 8 procs nprocs0=max((n*n)/fact,otto) @@ -238,7 +238,7 @@ INTGR4 function slgetmxproc(n,nnodes) c try to get powers of two c do i = nmax, 0, -1 - if(nint(nprocs0/(2d0**i)).eq.1) goto 1 + if(nint(nprocs0/(2d0**i)).ge.1) goto 1 enddo i=4 1 twoi=2**i From ec05fdb3884dd85fcce537705e73aab738732c09 Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 12 Sep 2017 00:10:55 -0700 Subject: [PATCH 2/4] fix for case when system liblapack.so is present --- m4/ga_lapack.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ga_lapack.m4 b/m4/ga_lapack.m4 index 9cc4869bb..0210899a9 100644 --- a/m4/ga_lapack.m4 +++ b/m4/ga_lapack.m4 @@ -88,7 +88,7 @@ AS_IF([test $ga_lapack_ok = no], # Generic LAPACK library? for lib in lapack lapack_rs6k; do AS_IF([test $ga_lapack_ok = no], - [ga_save_LIBS="$LIBS"; LIBS="-l$lib $BLAS_LIBS $LIBS" + [ga_save_LIBS="$LIBS"; LIBS="-l$lib $BLAS_LIBS $LIBS"; LAPACK_LIBS="-l$lib" AS_IF([test "x$enable_f77" = xno], [AC_MSG_CHECKING([for C LAPACK using -l$lib]) AC_LANG_PUSH([C]) From d5eacc995f394f6a3d7c6bde13f83afe6899c745 Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 12 Sep 2017 00:40:51 -0700 Subject: [PATCH 3/4] sem_open() is in libpthread --- comex/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comex/configure.ac b/comex/configure.ac index 4611f3c68..8651d3537 100644 --- a/comex/configure.ac +++ b/comex/configure.ac @@ -129,7 +129,7 @@ AC_CHECK_SIZEOF([double]) # Checks for C library functions. AC_FUNC_MMAP COMEX_SEARCH_LIBS([sqrt], [m]) -COMEX_SEARCH_LIBS([sem_open], [rt]) +COMEX_SEARCH_LIBS([sem_open], [pthread]) COMEX_SEARCH_LIBS([shm_open], [rt]) COMEX_SEARCH_LIBS([shm_unlink], [rt]) COMEX_CHECK_FUNCS([bzero]) From 2b1cd84888d7290724027f3fd764bd3e7a5b47ff Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 12 Sep 2017 11:41:24 -0700 Subject: [PATCH 4/4] need to patch mpich-3.2 to avoid MPID_Request SEGV https://lists.mpich.org/pipermail/discuss/2016-May/004764.html --- travis/install-mpi.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/travis/install-mpi.sh b/travis/install-mpi.sh index 174ac3f61..759ffba18 100755 --- a/travis/install-mpi.sh +++ b/travis/install-mpi.sh @@ -42,6 +42,21 @@ case "$os" in wget --no-check-certificate http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz tar -xzf mpich-3.2.tar.gz cd mpich-3.2 +cat > mpiimpl.h.patch <