Skip to content

Commit daf5b9b

Browse files
authored
Support for arm64 in enas-cnn-cifar10 image (#1944)
Signed-off-by: tenzen-y <[email protected]> Signed-off-by: tenzen-y <[email protected]>
1 parent 6870587 commit daf5b9b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

examples/v1beta1/trial-images/enas-cnn-cifar10/Dockerfile.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ADD examples/v1beta1/trial-images/enas-cnn-cifar10 ${TARGET_DIR}
88

99
WORKDIR ${TARGET_DIR}
1010

11-
RUN if [ "${TARGETARCH}" = "aarch64" ]; then \
11+
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
1212
apt-get -y update && \
1313
apt-get -y install gfortran libpcre3 libpcre3-dev && \
1414
apt-get clean && \

examples/v1beta1/trial-images/enas-cnn-cifar10/Dockerfile.gpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM tensorflow/tensorflow:2.9.1-gpu
1+
# tensorflow-gpu=2.9.1, cuda=11.7.1
2+
# Ref: https://docs.nvidia.com/deeplearning/frameworks/tensorflow-release-notes/rel_22-08.html#rel_22-08
3+
FROM nvcr.io/nvidia/tensorflow:22.08-tf2-py3
24

35
ENV TARGET_DIR /opt/enas-cnn-cifar10
46
ENV PYTHONPATH ${TARGET_DIR}

examples/v1beta1/trial-images/tf-mnist-with-summaries/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ADD examples/v1beta1/trial-images/tf-mnist-with-summaries /opt/tf-mnist-with-sum
66

77
WORKDIR /opt/tf-mnist-with-summaries
88

9-
RUN if [ "${TARGETARCH}" = "aarch64" ]; then \
9+
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
1010
apt-get -y update && \
1111
apt-get -y install gfortran libpcre3 libpcre3-dev && \
1212
apt-get clean && \

scripts/v1beta1/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +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 Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n"
124-
docker buildx build --platform linux/amd64 -t "${REGISTRY}/enas-cnn-cifar10-gpu:${TAG}" -f examples/${VERSION}/trial-images/enas-cnn-cifar10/Dockerfile.gpu .
125-
126123
echo -e "\nBuilding PyTorch CIFAR-10 CNN training container example for DARTS with CPU support...\n"
127124
docker buildx build --platform linux/amd64 -t "${REGISTRY}/darts-cnn-cifar10-cpu:${TAG}" -f examples/${VERSION}/trial-images/darts-cnn-cifar10/Dockerfile.cpu .
128125

@@ -148,4 +145,7 @@ docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/tf-mnist-with-summa
148145
echo -e "\nBuilding Keras CIFAR-10 CNN training container example for ENAS with CPU support...\n"
149146
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/enas-cnn-cifar10-cpu:${TAG}" -f examples/${VERSION}/trial-images/enas-cnn-cifar10/Dockerfile.cpu .
150147

148+
echo -e "\nBuilding Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n"
149+
docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/enas-cnn-cifar10-gpu:${TAG}" -f examples/${VERSION}/trial-images/enas-cnn-cifar10/Dockerfile.gpu .
150+
151151
echo -e "\nAll Katib images with ${TAG} tag have been built successfully!\n"

0 commit comments

Comments
 (0)