File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 87
87
- run : cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --features parallel
88
88
- run : cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --release
89
89
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
+
90
109
msrv :
91
110
name : MSRV
92
111
runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments