This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 18
18
#
19
19
# Dockerfile to build MXNet for ARM64/ARMv8
20
20
21
- FROM dockcross/linux-arm64
21
+ # Temporary fix due to https://github.com/apache/incubator-mxnet/issues/10837
22
+ # FROM dockcross/linux-arm64
23
+ FROM mxnetci/dockcross-linux-arm64:05082018
22
24
23
25
ENV ARCH aarch64
24
- ENV CC /usr/bin/aarch64-linux-gnu-gcc
25
- ENV CXX /usr/bin/aarch64-linux-gnu-g++
26
- ENV FC /usr/bin/aarch64-linux-gnu-gfortran-4.9
26
+ ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
27
27
ENV HOSTCC gcc
28
+ ENV TARGET ARMV8
28
29
29
30
WORKDIR /work
30
31
31
- COPY install/arm64_openblas.sh /work/
32
- RUN /work/arm64_openblas.sh
32
+ # Build OpenBLAS
33
+ RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \
34
+ cd OpenBLAS && \
35
+ make -j$(nproc) && \
36
+ PREFIX=${CROSS_ROOT} make install
33
37
34
- ENV LD_LIBRARY_PATH /opt/OpenBLAS/lib
35
- ENV CPLUS_INCLUDE_PATH /opt/OpenBLAS/include
38
+ COPY runtime_functions.sh /work/
36
39
WORKDIR /work/mxnet
37
-
38
- COPY runtime_functions.sh /work/
Original file line number Diff line number Diff line change 22
22
23
23
FROM nvidia/cuda:9.0-cudnn7-devel as cudabuilder
24
24
25
- FROM dockcross/linux-arm64
25
+ # Temporary fix due to https://github.com/apache/incubator-mxnet/issues/10837
26
+ # FROM dockcross/linux-arm64
27
+ FROM mxnetci/dockcross-linux-arm64:05082018
26
28
27
29
ENV ARCH aarch64
28
30
ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
@@ -32,7 +34,6 @@ ENV TARGET ARMV8
32
34
WORKDIR /work
33
35
34
36
# Build OpenBLAS
35
- ADD https://api.github.com/repos/xianyi/OpenBLAS/git/refs/tags/v0.2.20 openblas_version.json
36
37
RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \
37
38
cd OpenBLAS && \
38
39
make -j$(nproc) && \
You can’t perform that action at this time.
0 commit comments