Skip to content

Commit

Permalink
Toolchain: Fix caching in install_elpa.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Apr 25, 2022
1 parent 452edd3 commit a166711
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tools/toolchain/scripts/stage5/install_elpa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ case "$with_elpa" in
echo "==================== Installing ELPA ===================="
pkg_install_dir="${INSTALLDIR}/elpa-${elpa_ver}"
install_lock_file="$pkg_install_dir/install_successful"
enable_openmp="yes"

# specific settings needed on CRAY Linux Environment
if [ "$ENABLE_CRAY" = "__TRUE__" ]; then
if [ ${CRAY_PRGENVCRAY} ]; then
# extra LDFLAGS needed
cray_ldflags="-dynamic"
fi
enable_openmp="no"
fi

if verify_checksums "${install_lock_file}"; then
echo "elpa-${elpa_ver} is already installed, skipping it."
else
Expand Down Expand Up @@ -74,17 +85,6 @@ case "$with_elpa" in
patch -p1 < "${patch}"
done

enable_openmp="yes"

# specific settings needed on CRAY Linux Environment
if [ "$ENABLE_CRAY" = "__TRUE__" ]; then
if [ ${CRAY_PRGENVCRAY} ]; then
# extra LDFLAGS needed
cray_ldflags="-dynamic"
fi
enable_openmp="no"
fi

# ELPA-2017xxxx enables AVX2 by default, switch off if machine doesn't support it.
AVX_flag=""
AVX512_flags=""
Expand Down

0 comments on commit a166711

Please sign in to comment.