Skip to content

Commit d322ac1

Browse files
committed
Updated config.yml
1 parent 0e8715a commit d322ac1

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.circleci/config.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,33 @@ commands:
1919
sudo wget -q https://github.com/bazelbuild/bazel/releases/download/<< parameters.version >>/bazel-<< parameters.version >>-linux-<< parameters.platform >> -O /usr/bin/bazel
2020
sudo chmod a+x /usr/bin/bazel
2121
22+
install-cuda:
23+
description: "Install CUDA"
24+
parameters:
25+
os:
26+
type: string
27+
default: "ubuntu2004"
28+
platform:
29+
type: string
30+
default: "x86_64"
31+
cuda-pkg-name:
32+
type: string
33+
default: "cuda-toolkit-11-4"
34+
steps:
35+
- run:
36+
name: Install CUDA
37+
command: |
38+
cd ~
39+
40+
wget https://developer.download.nvidia.com/compute/cuda/repos/<< parameters.os >>/<< parameters.platform >>/cuda-<< parameters.os >>.pin
41+
sudo mv cuda-<< parameters.os >>.pin /etc/apt/preferences.d/cuda-repository-pin-600
42+
43+
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/<< parameters.os >>/<< parameters.platform >>/3bf863cc.pub
44+
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/<< parameters.os >>/<< parameters.platform >>/ /"
45+
sudo apt-get update
46+
47+
sudo apt-get install << parameters.cuda-pkg-name >>
48+
2249
create-env:
2350
description: "Install dependencies for Torch-TensorRT"
2451
parameters:
@@ -283,10 +310,14 @@ jobs:
283310
type: string
284311
default: 3.8.13
285312
machine:
286-
image: ubuntu-2004-cuda-11.4:202110-01
313+
image: ubuntu-2004:current
287314
resource_class: arm.xlarge
288315
steps:
289316
- checkout
317+
- install-cuda:
318+
os: "ubuntu2004"
319+
platform: "sbsa"
320+
cuda-pkg-name: "cuda-toolkit-11-4"
290321
- create-env:
291322
os: "ubuntu2004"
292323
platform: "sbsa"

0 commit comments

Comments
 (0)