Skip to content

Commit 6dc9b3e

Browse files
authored
update to use pytorch 21.08 base image (#2867)
* update cron tests Signed-off-by: Wenqi Li <[email protected]> * temp tests Signed-off-by: Wenqi Li <[email protected]> * update gpu info Signed-off-by: Wenqi Li <[email protected]> * tmp tests Signed-off-by: Wenqi Li <[email protected]> * temp test Signed-off-by: Wenqi Li <[email protected]> * Revert "temp test" This reverts commit 3a5b8f8. Signed-off-by: Wenqi Li <[email protected]> * Revert "tmp tests" This reverts commit e960dac. Signed-off-by: Wenqi Li <[email protected]> * Revert "temp tests" This reverts commit 911c332. Signed-off-by: Wenqi Li <[email protected]>
1 parent a25b733 commit 6dc9b3e

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/cron.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
if: github.repository == 'Project-MONAI/MONAI'
6363
strategy:
6464
matrix:
65-
container: ["pytorch:21.02", "pytorch:21.06"] # 21.02 for backward comp.
65+
container: ["pytorch:21.02", "pytorch:21.08"] # 21.02 for backward comp.
6666
container:
6767
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
6868
options: "--gpus all"
@@ -106,7 +106,7 @@ jobs:
106106
if: github.repository == 'Project-MONAI/MONAI'
107107
strategy:
108108
matrix:
109-
container: ["pytorch:21.02", "pytorch:21.06"] # 21.02 for backward comp.
109+
container: ["pytorch:21.02", "pytorch:21.08"] # 21.02 for backward comp.
110110
container:
111111
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
112112
options: "--gpus all"
@@ -204,7 +204,7 @@ jobs:
204204
if: github.repository == 'Project-MONAI/MONAI'
205205
needs: cron-gpu # so that monai itself is verified first
206206
container:
207-
image: nvcr.io/nvidia/pytorch:21.06-py3 # testing with the latest pytorch base image
207+
image: nvcr.io/nvidia/pytorch:21.08-py3 # testing with the latest pytorch base image
208208
options: "--gpus all --ipc=host"
209209
runs-on: [self-hosted, linux, x64, common]
210210
steps:

.github/workflows/pythonapp-gpu.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- "PT17+CUDA102"
2424
- "PT17+CUDA110"
2525
- "PT18+CUDA102"
26-
- "PT19+CUDA113"
26+
- "PT19+CUDA114"
2727
- "PT19+CUDA102"
2828
include:
2929
- environment: PT16+CUDA110
@@ -40,10 +40,12 @@ jobs:
4040
- environment: PT18+CUDA102
4141
pytorch: "torch==1.8.1 torchvision==0.9.1"
4242
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
43-
- environment: PT19+CUDA113
43+
- environment: PT19+CUDA114
4444
# we explicitly set pytorch to -h to avoid pip install error
45+
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
46+
# 21.08: 1.10.0a0+3fd9dcf
4547
pytorch: "-h"
46-
base: "nvcr.io/nvidia/pytorch:21.06-py3"
48+
base: "nvcr.io/nvidia/pytorch:21.08-py3"
4749
- environment: PT19+CUDA102
4850
pytorch: "torch==1.9.0 torchvision==0.10.0"
4951
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
@@ -91,9 +93,9 @@ jobs:
9193
python get-pip.py && \
9294
rm get-pip.py;
9395
fi
94-
- if: matrix.environment == 'PT19+CUDA113'
95-
name: Optional Cupy dependency (cuda113)
96-
run: echo "cupy-cuda113" >> requirements-dev.txt
96+
- if: matrix.environment == 'PT19+CUDA114'
97+
name: Optional Cupy dependency (cuda114)
98+
run: echo "cupy-cuda114" >> requirements-dev.txt
9799
- name: Install dependencies
98100
run: |
99101
which python

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# To build with a different base image
1313
# please run `docker build` using the `--build-arg PYTORCH_IMAGE=...` flag.
14-
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:21.06-py3
14+
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:21.08-py3
1515
FROM ${PYTORCH_IMAGE}
1616

1717
LABEL maintainer="[email protected]"

0 commit comments

Comments
 (0)