Skip to content

Commit f395253

Browse files
committed
Fix CUDA install in CI
1 parent 90717eb commit f395253

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

.github/workflows/ci.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,11 @@ jobs:
9898

9999
steps:
100100
- name: Install CUDA
101-
run: |
102-
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
103-
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
104-
curl -L -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
105-
sudo dpkg -i cuda-keyring_1.0-1_all.deb
106-
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
107-
sudo apt-get update -q
108-
sudo apt-get install cuda -y --no-install-recommends
101+
uses: Jimver/[email protected]
102+
with:
103+
method: network
104+
use-github-cache: false
105+
use-local-cache: false
109106

110107
- name: Checkout the Repository
111108
uses: actions/checkout@v2

.github/workflows/coverage.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Install CUDA
14-
run: |
15-
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
16-
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
17-
curl -L -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
18-
sudo dpkg -i cuda-keyring_1.0-1_all.deb
19-
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
20-
sudo apt-get update -q
21-
sudo apt-get install cuda -y --no-install-recommends
14+
uses: Jimver/[email protected]
15+
with:
16+
method: network
17+
use-github-cache: false
18+
use-local-cache: false
2219

2320
- name: Checkout the Repository
2421
uses: actions/checkout@v2

src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
#![cfg_attr(not(feature = "host"), no_std)]
44
#![feature(auto_traits)]
55
#![feature(negative_impls)]
6-
#![cfg_attr(
7-
any(all(not(feature = "host"), target_os = "cuda"), doc),
8-
feature(stdarch_nvptx)
9-
)]
6+
#![cfg_attr(all(not(feature = "host"), target_os = "cuda"), feature(stdarch_nvptx))]
107
#![cfg_attr(any(feature = "alloc", doc), feature(allocator_api))]
118
#![feature(doc_cfg)]
129
#![feature(marker_trait_attr)]

0 commit comments

Comments
 (0)