Skip to content

Commit 81bbb35

Browse files
committed
workflow: add CUDA compile check
Add a quick compile-time check to test CUDA components Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
1 parent 55c0bda commit 81bbb35

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/compile-cuda.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CUDA
2+
3+
on: [pull_request]
4+
5+
env:
6+
CUDA_PATH: /usr/local/cuda
7+
jobs:
8+
compile-cuda:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- name: Install dependencies
12+
run: |
13+
sudo apt update
14+
sudo apt install -y --no-install-recommends wget
15+
- name: Install extra dependencies
16+
run: |
17+
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
18+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
19+
sudo apt update
20+
sudo apt install -y cuda-toolkit
21+
- uses: actions/checkout@v3
22+
with:
23+
submodules: recursive
24+
- name: Build Open MPI
25+
run: |
26+
./autogen.pl
27+
./configure --prefix=${PWD}/install --with-cuda=${CUDA_PATH} --with-cuda-libdir=${CUDA_PATH}/lib64/stubs
28+
make -j

0 commit comments

Comments
 (0)