Skip to content

Commit a05e16b

Browse files
authored
Merge pull request #11274 from edgargabriel/topic/rocm-github-action
pr-checks: compile with rocm support
2 parents ce5a5f4 + 67cbfd1 commit a05e16b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/compile-rocm.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitHub Action CI
2+
3+
on: [pull_request]
4+
5+
env:
6+
ROCM_VER: 5-4
7+
jobs:
8+
compile-rocm:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: Install dependencies
12+
run: |
13+
sudo apt-get update
14+
sudo apt-get install -y --no-install-recommends wget lsb-core software-properties-common gpg curl
15+
- name: Install extra dependencies
16+
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-sdk
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- name: Build Open MPI
25+
run: |
26+
./autogen.pl
27+
./configure --prefix=${PWD}/install --with-rocm=/opt/rocm --disable-mpi-fortran
28+
make -j

0 commit comments

Comments
 (0)