-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a quick compile-time check to test CUDA components Signed-off-by: Wenduo Wang <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |