Skip to content

Commit 19b0e90

Browse files
authored
[Dev] update CI config (open-mmlab#3377)
1 parent 64172d6 commit 19b0e90

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.circleci/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ARG CUDNN="7"
55

66
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
77

8+
ARG DEBIAN_FRONTEND=noninteractive
9+
810
# To fix GPG key error when running apt-get update
911
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
1012
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub

.circleci/test.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,22 @@ jobs:
8282
type: string
8383
cuda:
8484
type: enum
85-
enum: ["10.1", "10.2", "11.1"]
85+
enum: ["10.1", "10.2", "11.1", "11.7", "11.8"]
8686
cudnn:
8787
type: integer
8888
default: 7
8989
machine:
90-
image: ubuntu-2004-cuda-11.4:202110-01
91-
# docker_layer_caching: true
92-
resource_class: gpu.nvidia.small
90+
image: linux-cuda-11:default
91+
docker_layer_caching: true
92+
resource_class: gpu.nvidia.small.multi
9393
steps:
9494
- checkout
95+
- run:
96+
name: Install nvidia-container-toolkit and Restart Docker
97+
command: |
98+
sudo apt-get update
99+
sudo apt-get install -y nvidia-container-toolkit
100+
sudo systemctl restart docker
95101
- run:
96102
# Cloning repos in VM since Docker doesn't have access to the private key
97103
name: Clone Repos
@@ -154,9 +160,8 @@ workflows:
154160
- lint
155161
- build_cpu:
156162
name: maximum_version_cpu
157-
# TODO: Fix torch 1.13 forward crush
158-
torch: 1.12.0
159-
torchvision: 0.13.0
163+
torch: 2.0.0
164+
torchvision: 0.15.0
160165
python: 3.9.0
161166
requires:
162167
- minimum_version_cpu
@@ -166,10 +171,10 @@ workflows:
166171
- maximum_version_cpu
167172
- build_cuda:
168173
name: mainstream_version_gpu
169-
torch: 1.8.1
174+
torch: 2.0.0
170175
# Use double quotation mark to explicitly specify its type
171176
# as string instead of number
172-
cuda: "10.2"
177+
cuda: "11.8"
173178
requires:
174179
- hold
175180
merge_stage_test:
@@ -188,3 +193,14 @@ workflows:
188193
only:
189194
- dev-1.x
190195
- main
196+
- build_cuda:
197+
name: maximum_version_gpu
198+
torch: 2.0.0
199+
# Use double quotation mark to explicitly specify its type
200+
# as string instead of number
201+
cuda: "11.8"
202+
cudnn: 8
203+
filters:
204+
branches:
205+
only:
206+
- main

0 commit comments

Comments
 (0)