Skip to content

Commit 6894967

Browse files
committed
update hip action -- ubuntu 20.04 runner is going away
this syncs the dependency script up with amrex
1 parent 05b09dc commit 6894967

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/dependencies/dependencies_hip.sh

+11-9
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ sudo apt-key add rocm.gpg.key
3333

3434
source /etc/os-release # set UBUNTU_CODENAME: focal or jammy or ...
3535

36-
echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${1-latest} ${UBUNTU_CODENAME} main" \
36+
VERSION=${1-6.3.2}
37+
38+
echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${VERSION} ${UBUNTU_CODENAME} main" \
3739
| sudo tee /etc/apt/sources.list.d/rocm.list
3840
echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
3941
| sudo tee -a /etc/profile.d/rocm.sh
@@ -53,16 +55,16 @@ sudo apt-get install -y --no-install-recommends \
5355
libnuma-dev \
5456
libopenmpi-dev \
5557
openmpi-bin \
56-
rocm-dev \
57-
roctracer-dev \
58-
rocprofiler-dev \
59-
rocrand-dev \
60-
rocfft-dev \
61-
rocprim-dev \
62-
rocsparse-dev
58+
rocm-dev${VERSION} \
59+
roctracer-dev${VERSION} \
60+
rocprofiler-dev${VERSION} \
61+
rocrand-dev${VERSION} \
62+
rocfft-dev${VERSION} \
63+
rocprim-dev${VERSION} \
64+
rocsparse-dev${VERSION}
6365

6466
# hiprand-dev is a new package that does not exist in old versions
65-
sudo apt-get install -y --no-install-recommends hiprand-dev || true
67+
sudo apt-get install -y --no-install-recommends hiprand-dev${VERSION} || true
6668

6769
# activate
6870
#

.github/workflows/hip.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88

99
jobs:
1010
hip-compile:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
@@ -27,7 +27,7 @@ jobs:
2727
cd ../..
2828
2929
- name: Dependencies
30-
run: .github/workflows/dependencies/dependencies_hip.sh
30+
run: .github/workflows/dependencies/dependencies_hip.sh 6.3.2
3131

3232
- name: compile test_react with HIP (iso7)
3333
run: |

0 commit comments

Comments
 (0)