Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix arm64 docker build for v1.2.0 branch (#11578)
Browse files Browse the repository at this point in the history
* Fix arm64 docker build
- Added @KellenSunderland fix for jetson/jetpack

* [MXNET-601] Fix caffe converter test (#11425)

* fix url

* fix url

* fix url

* Update compare_layers.py

* Update compare_layers.py

* Update test_converter.py

* Update compare_layers.py

* Update compare_layers.py

* Update compare_layers.py
  • Loading branch information
larroy authored and anirudh2290 committed Jul 7, 2018
1 parent daa957c commit c5dbc81
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
8 changes: 6 additions & 2 deletions ci/docker/Dockerfile.build.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
# Dockerfile to build MXNet for ARM64/ARMv8

# Temporary fix due to https://github.com/apache/incubator-mxnet/issues/10837
#FROM dockcross/linux-arm64
FROM mxnetci/dockcross-linux-arm64:05082018
FROM dockcross/linux-arm64
#FROM mxnetci/dockcross-linux-arm64:05082018

ENV ARCH aarch64
ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
ENV HOSTCC gcc
ENV TARGET ARMV8

# gh issue #11567
RUN sed -i '\#deb http://cdn-fastly.deb.debian.org/debian-security jessie/updates main#d' /etc/apt/sources.list
RUN sed -i 's/cdn-fastly.//' /etc/apt/sources.list

WORKDIR /work/deps

COPY install/ubuntu_arm.sh /work/
Expand Down
23 changes: 14 additions & 9 deletions ci/docker/Dockerfile.build.jetson
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
ENV HOSTCC gcc
ENV TARGET ARMV8

# gh issue #11567
RUN sed -i '\#deb http://cdn-fastly.deb.debian.org/debian-security jessie/updates main#d' /etc/apt/sources.list
RUN sed -i 's/cdn-fastly.//' /etc/apt/sources.list


WORKDIR /work/deps

COPY install/ubuntu_arm.sh /work/
Expand All @@ -47,20 +52,20 @@ COPY --from=cudabuilder /usr/local/cuda /usr/local/cuda
ENV TARGET_ARCH aarch64
ENV TARGET_OS linux

# Install ARM depedencies based on Jetpack 3.2
RUN JETPACK_DOWNLOAD_PREFIX=http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/ && \
# Install ARM depedencies based on Jetpack 3.2.1
RUN JETPACK_DOWNLOAD_PREFIX=https://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2.1/m8u2ki/JetPackL4T_321_b23 && \
ARM_CUDA_INSTALLER_PACKAGE=cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb && \
ARM_CUDNN_INSTALLER_PACKAGE=libcudnn7_7.0.5.13-1+cuda9.0_arm64.deb && \
ARM_CUDNN_DEV_INSTALLER_PACKAGE=libcudnn7-dev_7.0.5.13-1+cuda9.0_arm64.deb && \
ARM_CUDNN_INSTALLER_PACKAGE=libcudnn7_7.0.5.15-1+cuda9.0_arm64.deb && \
ARM_CUDNN_DEV_INSTALLER_PACKAGE=libcudnn7-dev_7.0.5.15-1+cuda9.0_arm64.deb && \
dpkg --add-architecture arm64 && \
wget -nv $JETPACK_DOWNLOAD_PREFIX/$ARM_CUDA_INSTALLER_PACKAGE && \
wget -nv $JETPACK_DOWNLOAD_PREFIX/$ARM_CUDNN_INSTALLER_PACKAGE && \
wget -nv $JETPACK_DOWNLOAD_PREFIX/$ARM_CUDNN_DEV_INSTALLER_PACKAGE && \
dpkg -i $ARM_CUDA_INSTALLER_PACKAGE && \
dpkg -i --force-architecture $ARM_CUDA_INSTALLER_PACKAGE && \
apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub && \
dpkg -i $ARM_CUDNN_INSTALLER_PACKAGE && \
dpkg -i $ARM_CUDNN_DEV_INSTALLER_PACKAGE && \
apt update -y && apt install -y unzip cuda-libraries-dev-9-0 libcudnn7-dev

dpkg -i --force-architecture $ARM_CUDNN_INSTALLER_PACKAGE && \
dpkg -i --force-architecture $ARM_CUDNN_DEV_INSTALLER_PACKAGE && \
apt update -y || true && apt install -y cuda-libraries-dev-9-0 libcudnn7-dev
ENV PATH $PATH:/usr/local/cuda/bin
ENV NVCCFLAGS "-m64"
ENV CUDA_ARCH "-gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62"
Expand Down
3 changes: 2 additions & 1 deletion example/ssd/tools/caffe_converter/compare_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ def main():
parser = argparse.ArgumentParser(
description='Tool for testing caffe to mxnet conversion layer by layer')
parser.add_argument('--image_url', type=str,
default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
parser.add_argument('--caffe_prototxt_path', type=str,
default='./model.prototxt',
Expand Down
3 changes: 2 additions & 1 deletion tools/caffe_converter/compare_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def main():
parser = argparse.ArgumentParser(
description='Tool for testing caffe to mxnet conversion layer by layer')
parser.add_argument('--image_url', type=str,
default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
parser.add_argument('--caffe_prototxt_path', type=str,
default='./model.prototxt',
Expand Down
3 changes: 2 additions & 1 deletion tools/caffe_converter/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def main():
parser = argparse.ArgumentParser(description='Test Caffe converter')
parser.add_argument('--cpu', action='store_true', help='use cpu?')
parser.add_argument('--image_url', type=str,
default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
args = parser.parse_args()
if args.cpu:
Expand Down

0 comments on commit c5dbc81

Please sign in to comment.