Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d283e5e

Browse files
committedJul 29, 2021
Add dummy CUDA CI test.
1 parent c41f033 commit d283e5e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,25 @@ jobs:
8787
- run: cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --features parallel
8888
- run: cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --release
8989

90+
cuda:
91+
name: Test CUDA support
92+
runs-on: ubuntu-20.04
93+
steps:
94+
- uses: actions/checkout@master
95+
- name: Install cuda-minimal-build-11-4
96+
shell: bash
97+
run: |
98+
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network
99+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
100+
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
101+
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
102+
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
103+
sudo apt-get update
104+
sudo apt-get -y install cuda-minimal-build-11-4
105+
- name: Test 'cudart' feature
106+
shell: bash
107+
run: env PATH=/usr/local/cuda/bin:$PATH cargo test --manifest-path cc-test/Cargo.toml --features test_cuda
108+
90109
msrv:
91110
name: MSRV
92111
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)
Please sign in to comment.