Skip to content

Commit 2a93bda

Browse files
committed
pr-checks: update compile-rocm workflow
- switch to using ubuntu 22.04 base image - set LD_LIBRARY_PATH before compiling Open MPI to avoid a link error with ompi_info - remove the cleanup step Signed-off-by: Edgar Gabriel <Edgar.Gabriel@amd.com>
1 parent f2d10ef commit 2a93bda

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/compile-rocm.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,26 @@ env:
66
ROCM_VER: 5-4
77
jobs:
88
compile-rocm:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- name: Install dependencies
1212
run: |
13-
sudo apt-get update
14-
sudo apt-get install -y --no-install-recommends wget lsb-core software-properties-common gpg curl
13+
sudo apt update
14+
sudo apt install -y --no-install-recommends wget lsb-core software-properties-common gpg curl
1515
- name: Install extra dependencies
1616
run: |
17-
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/rocm-keyring.gpg
18-
echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/debian focal main' | sudo tee /etc/apt/sources.list.d/rocm.list
19-
sudo apt-get update
20-
sudo apt-get install -y rocm-hip-runtime
17+
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
18+
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
19+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/5.7.1/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/amdgpu.list
20+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/5.7.1 jammy main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
21+
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
22+
sudo apt update
23+
sudo apt install -y rocm-hip-runtime
2124
- uses: actions/checkout@v3
2225
with:
2326
submodules: recursive
2427
- name: Build Open MPI
2528
run: |
2629
./autogen.pl
2730
./configure --prefix=${PWD}/install --with-rocm=/opt/rocm --disable-mpi-fortran
28-
make -j
29-
- name: Clean up
30-
run: |
31-
ls -la ./
32-
rm -rf ./*
33-
rm -rf ./.??*
34-
ls -la ./
31+
LD_LIBRARY_PATH=/opt/rocm/lib make -j

0 commit comments

Comments
 (0)