mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
Fixed OpenBLAS fallback installation
This commit is contained in:
parent
4a0d29ae68
commit
199bfff015
1 changed files with 5 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ case "${with_openblas}" in
|
|||
if [ "0" = "${BUILD_DYNAMIC}" ]; then
|
||||
TARGET=$(tr '[:lower:]' '[:upper:]' <<< "${OPENBLAS_LIBCORE}")
|
||||
echo "Installing OpenBLAS library for target ${TARGET}"
|
||||
make -j $(get_nprocs) \
|
||||
if ! make -j $(get_nprocs) \
|
||||
TARGET=${TARGET} \
|
||||
MAKE_NB_JOBS=0 \
|
||||
NUM_THREADS=128 \
|
||||
|
|
@ -73,8 +73,10 @@ case "${with_openblas}" in
|
|||
CC="${CC}" \
|
||||
FC="${FC}" \
|
||||
PREFIX="${pkg_install_dir}" \
|
||||
> make.${OPENBLAS_LIBCORE}.log 2>&1 || tail -n ${LOG_LINES} make.${OPENBLAS_LIBCORE}.log
|
||||
BUILD_DYNAMIC=$?
|
||||
> make.${OPENBLAS_LIBCORE}.log 2>&1; then
|
||||
tail -n ${LOG_LINES} make.${OPENBLAS_LIBCORE}.log
|
||||
BUILD_DYNAMIC=1
|
||||
fi
|
||||
fi
|
||||
if [ "0" != "${BUILD_DYNAMIC}" ]; then
|
||||
echo "Installing OpenBLAS library for dynamic target"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue