Skip to content

Commit

Permalink
Merge pull request #12624 from wenduwan/add_cuda_build_check
Browse files Browse the repository at this point in the history
workflow: add CUDA compile check
  • Loading branch information
wenduwan authored Jun 20, 2024
2 parents 5e45a9d + 81bbb35 commit 7b28730
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/compile-cuda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CUDA

on: [pull_request]

env:
CUDA_PATH: /usr/local/cuda
jobs:
compile-cuda:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends wget
- name: Install extra dependencies
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt install -y cuda-toolkit
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build Open MPI
run: |
./autogen.pl
./configure --prefix=${PWD}/install --with-cuda=${CUDA_PATH} --with-cuda-libdir=${CUDA_PATH}/lib64/stubs
make -j

0 comments on commit 7b28730

Please sign in to comment.