Skip to content

Commit

Permalink
Accelerate lapack and scalapack lib build
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Jan 10, 2019
1 parent 63f3595 commit 8de8083
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/toolchain/scripts/install_reflapack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ TMGLIB = libtmglib.a
LAPACKELIB = liblapacke.a
EOF
# lapack/blas build is *not* parallel safe (updates to the archive race)
make -j 1 lib blaslib > make.log 2>&1
# Run first in parallel which will result most likely in an incomplete library
make -j $NPROCS lib blaslib > make.log 2>&1
# Complete library in non-parallel mode
make -j 1 lib blaslib > make1.log 2>&1
# no make install, so have to do this manually
! [ -d "${pkg_install_dir}/lib" ] && mkdir -p "${pkg_install_dir}/lib"
cp libblas.a liblapack.a "${pkg_install_dir}/lib"
Expand Down
5 changes: 4 additions & 1 deletion tools/toolchain/scripts/install_scalapack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ LAPACKLIB = ${MATH_LIBS}
LIBS = \$(LAPACKLIB) \$(BLASLIB)
EOF
# scalapack build not parallel safe (update to the archive race)
make -j 1 lib > make.log 2>&1
# Run first in parallel which will result most likely in an incomplete library
make -j $NPROCS lib > make.log 2>&1
# Complete library in non-parallel mode
make -j 1 lib > make1.log 2>&1
# does not have make install, so install manually
! [ -d "${pkg_install_dir}/lib" ] && mkdir -p "${pkg_install_dir}/lib"
cp libscalapack.a "${pkg_install_dir}/lib"
Expand Down

0 comments on commit 8de8083

Please sign in to comment.