Skip to content

Commit 6870587

Browse files
authored
Support for arm64 in pytorch-mnist image (#1943)
1 parent 3906f8e commit 6870587

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

examples/v1beta1/trial-images/pytorch-mnist/Dockerfile.gpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
1+
# Pytorch=1.11.0, cuda=11.6.0
2+
# Ref: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel_22-08.html#rel_22-08
3+
FROM nvcr.io/nvidia/pytorch:22.02-py3
24

35
ADD examples/v1beta1/trial-images/pytorch-mnist /opt/pytorch-mnist
46

scripts/v1beta1/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ echo -e "\nBuilding training container images..."
120120
if [ ! "$ARCH" = "amd64" ]; then
121121
echo -e "\nSome training container images are supported only amd64."
122122
else
123-
echo -e "\nBuilding PyTorch mnist training container example with CPU support...\n"
124-
docker buildx build --platform linux/amd64 -t "${REGISTRY}/pytorch-mnist-cpu:${TAG}" -f examples/${VERSION}/trial-images/pytorch-mnist/Dockerfile.cpu .
125-
126-
echo -e "\nBuilding PyTorch mnist training container example with GPU support...\n"
127-
docker buildx build --platform linux/amd64 -t "${REGISTRY}/pytorch-mnist-gpu:${TAG}" -f examples/${VERSION}/trial-images/pytorch-mnist/Dockerfile.gpu .
128-
129123
echo -e "\nBuilding Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n"
130124
docker buildx build --platform linux/amd64 -t "${REGISTRY}/enas-cnn-cifar10-gpu:${TAG}" -f examples/${VERSION}/trial-images/enas-cnn-cifar10/Dockerfile.gpu .
131125

@@ -142,6 +136,12 @@ fi
142136
echo -e "\nBuilding mxnet mnist training container example...\n"
143137
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/mxnet-mnist:${TAG}" -f examples/${VERSION}/trial-images/mxnet-mnist/Dockerfile .
144138

139+
echo -e "\nBuilding PyTorch mnist training container example with CPU support...\n"
140+
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/pytorch-mnist-cpu:${TAG}" -f examples/${VERSION}/trial-images/pytorch-mnist/Dockerfile.cpu .
141+
142+
echo -e "\nBuilding PyTorch mnist training container example with GPU support...\n"
143+
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/pytorch-mnist-gpu:${TAG}" -f examples/${VERSION}/trial-images/pytorch-mnist/Dockerfile.gpu .
144+
145145
echo -e "\nBuilding Tensorflow with summaries mnist training container example...\n"
146146
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/tf-mnist-with-summaries:${TAG}" -f examples/${VERSION}/trial-images/tf-mnist-with-summaries/Dockerfile .
147147

0 commit comments

Comments
 (0)