Skip to content

Commit

Permalink
CI: Fix ROCm and oneAPI versions (#74)
Browse files Browse the repository at this point in the history
* CI: Update location of ROCm packages

* CI: Fix version numbers for ROCm and DPCC

The DPCC and Intel MPI versions have also been fixed for consistency.
Version numbers for ROCm and Intel packages are now environment
variables like for CUDA

* CI: Bump up patch levels of oneAPI MPI and ROCm to latest versions
  • Loading branch information
julianakwan authored and mirenradia committed Dec 23, 2024
1 parent 71be84e commit 268833d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/gpu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
BUILD_ARGS: USE_${{ matrix.gpu-backend }}=TRUE DEBUG=${{ matrix.debug }} USE_MPI=TRUE
CUDA_MAJOR_VERSION: 12
CUDA_MINOR_VERSION: 0
ROCM_VERSION: 6.2.2
ONEAPI_COMP_VERSION: 2024.2
ONEAPI_MPI_VERSION: 2021.13

steps:
- name: Checkout AMReX
Expand All @@ -56,7 +59,7 @@ jobs:
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor |\
sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] \
https://repo.radeon.com/rocm/apt/debian jammy main" | sudo tee \
https://repo.radeon.com/rocm/apt/${{ env.ROCM_VERSION }} jammy main" | sudo tee \
/etc/apt/sources.list.d/rocm.list
# Prefer AMD packages over system ones
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
Expand Down Expand Up @@ -104,10 +107,10 @@ jobs:
rocprim-dev
hiprand-dev"
elif [[ "${{ matrix.gpu-backend }}" == "SYCL" ]]; then
PACKAGES="intel-oneapi-compiler-dpcpp-cpp
intel-oneapi-compiler-fortran
intel-oneapi-mkl-devel
intel-oneapi-mpi-devel"
PACKAGES="intel-oneapi-compiler-dpcpp-cpp-${{ env.ONEAPI_COMP_VERSION }}
intel-oneapi-compiler-fortran-${{ env.ONEAPI_COMP_VERSION }}
intel-oneapi-mkl-devel-${{ env.ONEAPI_COMP_VERSION }}
intel-oneapi-mpi-devel-${{ env.ONEAPI_MPI_VERSION }}"
fi
sudo apt-get -y --no-install-recommends install $PACKAGES
Expand Down

0 comments on commit 268833d

Please sign in to comment.