From 25223944d3d4339429c0f94f33d26f58c7c05d50 Mon Sep 17 00:00:00 2001 From: Dom Heinzeller Date: Mon, 11 Apr 2022 10:14:37 -0600 Subject: [PATCH] Temporary commit for Intel in .github/actions/setup-spack-stack/action.yaml --- .github/actions/setup-spack-stack/action.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-spack-stack/action.yaml b/.github/actions/setup-spack-stack/action.yaml index 47f51b200..2b9e34de0 100644 --- a/.github/actions/setup-spack-stack/action.yaml +++ b/.github/actions/setup-spack-stack/action.yaml @@ -138,6 +138,17 @@ runs: sed -i".bak" "s|fc: null|fc: /usr/local/bin/gfortran-10|" ${SPACK_ENV}/spack.yaml elif [[ "${{ inputs.compiler }}" == "intel"* ]]; then spack compiler add /opt/intel/oneapi/compiler/latest/linux/bin/intel64 + # DH* TEMPORARY + #cat envs/${{ inputs.app }}/site/compilers.yaml + cat envs/${{ inputs.app }}/spack.yaml + #spack config add "compilers:compiler: + echo "EXIT SOON FOR TESTING" + ls -l /opt/intel/oneapi/compiler/latest/linux/compiler/lib + cat envs/${{ inputs.app }}/spack.yaml | grep -e 'environment: {}' + sed -i 's#environment: {}#environment: {prepend_path: {LD_LIBRARY_PATH: /opt/intel/oneapi/compiler/latest/linux/compiler/lib}}#g' envs/${{ inputs.app }}/spack.yaml + cat envs/${{ inputs.app }}/spack.yaml + echo "EXIT HERE FOR TESTING" + exit 1 else spack compiler find fi @@ -214,12 +225,6 @@ runs: spack config add "modules:default:tcl:whitelist:[${{ inputs.mpi }}]" spack config add "modules:default:lmod:whitelist:[${{ inputs.mpi }}]" - # Currently, this is the case for all workflows - wrap in if statement - # when this changes in the future - # Whitelist the mpi providers so that spack creates the modules for them - spack config add "modules:default:tcl:whitelist:[${{ inputs.mpi }}]" - spack config add "modules:default:lmod:whitelist:[${{ inputs.mpi }}]" - if [[ "$RUNNER_OS" == "Linux" ]]; then echo "" elif [[ "$RUNNER_OS" == "macOS" ]]; then