Skip to content

Commit

Permalink
Temporary commit for Intel in .github/actions/setup-spack-stack/actio…
Browse files Browse the repository at this point in the history
…n.yaml
  • Loading branch information
climbfuji committed Apr 11, 2022
1 parent 9ffdfb5 commit 2522394
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/actions/setup-spack-stack/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2522394

Please sign in to comment.