From 2c44708cedf0722363c65450e0ea771f85ae5839 Mon Sep 17 00:00:00 2001 From: edoapra Date: Wed, 23 Jun 2021 16:12:38 -0700 Subject: [PATCH] caching intel install on macos --- .github/workflows/github_actions.yml | 6 ++++++ travis/build_env.sh | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 9590b474d1..b693d004e4 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -198,6 +198,12 @@ jobs: ~/cache ~/apps key: ${{ matrix.os }}-${{ matrix.mpi_impl}}-${{ matrix.fc}}-xcode${{ matrix.xcode_version}}-simint${{ matrix.use_simint}}-blas${{ matrix.blas}}-simd${{ steps.get-simd.outputs.simd }}-nwchemcache-v007 + - name: fetch apps cache + if: steps.setup-cache.outputs.cache-hit == 'true' + run: | + if [[ -f ~/apps/oneapi/setvars.sh ]]; then \ + echo "apps oneapi cache fetched" ; \ + export GOT_APPSCACHE="Y" ; fi - name: build environment run: | pwd diff --git a/travis/build_env.sh b/travis/build_env.sh index 1ef7006544..01f273dc42 100755 --- a/travis/build_env.sh +++ b/travis/build_env.sh @@ -28,7 +28,10 @@ esac # HOMEBREW_NO_AUTO_UPDATE=1 brew cask uninstall oclint || true # HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" openblas python3 ||true HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" python3 gsed grep ||true - if [[ "$FC" == "ifort" ]]; then + if [[ "$FC" == "ifort" ]]; then + if [[ "$GOT_APPSCACHE" == "Y" ]]; then + echo ' using intel cache installation ' + else mkdir -p ~/mntdmg ~/apps/oneapi || true cd ~/Downloads dir_base="17714" @@ -52,6 +55,7 @@ esac sudo rm -rf "$IONEAPI_ROOT"/intelpython "$IONEAPI_ROOT"/dal "$IONEAPI_ROOT"/advisor \ "$IONEAPI_ROOT"/ipp "$IONEAPI_ROOT"/conda_channel "$IONEAPI_ROOT"/dnnl \ "$IONEAPI_ROOT"/installer "$IONEAPI_ROOT"/vtune_profiler "$IONEAPI_ROOT"/tbb || true + fi source "$IONEAPI_ROOT"/setvars.sh || true ls -lrta ~/apps/oneapi ||true df -h