Skip to content

Commit

Permalink
Merge pull request #9 from edoapra/apptainer-pr
Browse files Browse the repository at this point in the history
ROCM images for gfx908 and gfx90a
  • Loading branch information
edoapra authored Jan 7, 2024
2 parents 5e13fa2 + 779441c commit 1ef6997
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 82 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/apptainer_exachem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ jobs:
- apptainer.ompi41x
branch:
- main
cxx:
- g++
armci_network:
- MPI-PR
env:
CXX: ${{ matrix.cxx }}
gpu:
- nvidia
- amd_gfx908_rocm5.5.1
- amd_gfx90a_rocm5.5.1
- amd_gfx908_rocm6.0
- amd_gfx90a_rocm6.0
- amd_gfx908_rocm5.7.3
- amd_gfx90a_rocm5.7.3
steps:
- name: Get Instruction
id: get-simd
Expand All @@ -37,18 +41,17 @@ jobs:
else
myversion=""
fi
if [[ ${{ matrix.gpu }} != nvidia ]]; then
myversion+=.${{ matrix.gpu }}
fi
echo "exachemversion=$myversion" >> $GITHUB_ENV
if [[ ${{ matrix.armci_network }} != MPI-PR ]]; then
net_tag=$(echo ${{ matrix.armci_network }} | tr '[:upper:]' '[:lower:]')
echo "armci_network="${net_tag}"." >> $GITHUB_ENV
fi
- name: tag
run: |
if [[ ${{ matrix.cxx }} == "g++" ]]; then
echo "tag=oras://ghcr.io/${{ github.repository }}/apptainer${{ env.exachemversion}}.${{ env.armci_network}}ompi41x" >> $GITHUB_ENV
else
echo "tag=oras://ghcr.io/${{ github.repository }}/apptainer${{ env.exachemversion}}.${{ env.armci_network}}ompi41x.${{ matrix.cxx }}" >> $GITHUB_ENV
fi
echo "tag=oras://ghcr.io/${{ github.repository }}/apptainer${{ env.exachemversion}}.${{ env.armci_network}}ompi41x" >> $GITHUB_ENV
- name: echo-tag
run: |
echo ' the apptainer tag is ' '${{ env.tag }}'
Expand Down Expand Up @@ -85,7 +88,7 @@ jobs:
with:
path: |
~/cache
key: ${{ matrix.folder}}-${{ env.exachemversion}}-exachemcache-${{ matrix.cxx}}-v001
key: ${{ matrix.folder}}-${{ env.exachemversion}}-exachemcache-v001
- name: fetch cache
if: steps.setup-cache.outputs.cache-hit == 'true'
run: |
Expand Down Expand Up @@ -116,7 +119,7 @@ jobs:
- name: build an apptainer container
run: |
cd ${{ matrix.folder }}
CXX=${{ matrix.cxx }} MYUSERNAME=${{ github.actor}} BRANCH=${{ matrix.branch}} ARMCI_NETWORK=${{ matrix.armci_network}} MPI_IMPL=ompi apptainer build --fakeroot ${{ matrix.folder }}.simg Singularity
MYUSERNAME=${{ github.actor}} BRANCH=${{ matrix.branch}} GPU=${{ matrix.gpu}} ARMCI_NETWORK=${{ matrix.armci_network}} MPI_IMPL=ompi apptainer build --fakeroot ${{ matrix.folder }}.simg Singularity
- name: builddate
id: build-date
run: |
Expand Down
Loading

0 comments on commit 1ef6997

Please sign in to comment.