Skip to content

Commit fe921bf

Browse files
authored
Update GPU test image for development (#1191)
Changing the test Docker image for GPU tests to use Nvidia Docker `devel` image. This is necessary for #1187.
1 parent c257ee7 commit fe921bf

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ jobs:
430430
resource_class: gpu.small
431431
environment:
432432
<<: *environment
433-
image_name: "pytorch/torchaudio_unittest_base:manylinux-cuda10.1"
433+
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20201203
434434
steps:
435435
- checkout
436436
- attach_workspace:

.circleci/config.yml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ jobs:
430430
resource_class: gpu.small
431431
environment:
432432
<<: *environment
433-
image_name: "pytorch/torchaudio_unittest_base:manylinux-cuda10.1"
433+
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20201203
434434
steps:
435435
- checkout
436436
- attach_workspace:

.circleci/unittest/linux/docker/build_and_push.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ if [ $# -ne 1 ]; then
77
exit 1
88
fi
99

10+
datestr="$(date "+%Y%m%d")"
1011
if [ "$1" = "cpu" ]; then
1112
base_image="ubuntu:18.04"
12-
image="pytorch/torchaudio_unittest_base:manylinux"
13-
elif [[ "$1" =~ ^(9.2|10.1)$ ]]; then
14-
base_image="nvidia/cuda:$1-runtime-ubuntu18.04"
15-
image="pytorch/torchaudio_unittest_base:manylinux-cuda$1"
13+
image="pytorch/torchaudio_unittest_base:manylinux-${datestr}"
1614
else
17-
printf "Unexpected <CUDA_VERSION> string: %s" "$1"
18-
exit 1;
15+
base_image="nvidia/cuda:$1-devel-ubuntu18.04"
16+
docker pull "${base_image}"
17+
image="pytorch/torchaudio_unittest_base:manylinux-cuda$1-${datestr}"
1918
fi
2019

2120
cd "$( dirname "${BASH_SOURCE[0]}" )"

0 commit comments

Comments
 (0)