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

Commit

Permalink
Fixed OpenBLAS android build
Browse files Browse the repository at this point in the history
  • Loading branch information
lebeg committed Aug 9, 2018
1 parent 6c1370f commit ab66991
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 62 deletions.
10 changes: 6 additions & 4 deletions ci/docker/Dockerfile.build.android_armv7
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ FROM dockcross/android-arm

WORKDIR /work/deps

COPY install/deb_ubuntu_ccache.sh /work/
RUN /work/deb_ubuntu_ccache.sh

ENV ARCH armv7l
ENV TARGET ARMV7
ENV ARM_SOFTFP_ABI 1
ENV OSNAME Android
ENV ONLY_CBLAS 1
ENV HOSTCC gcc

COPY install/arm_openblas.sh /work/
RUN /work/arm_openblas.sh

ENV OpenBLAS_HOME=${CROSS_ROOT}

WORKDIR /work/build
COPY install/deb_ubuntu_ccache.sh /work/
RUN /work/deb_ubuntu_ccache.sh

COPY runtime_functions.sh /work/
WORKDIR /work/mxnet
10 changes: 6 additions & 4 deletions ci/docker/Dockerfile.build.android_armv8
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ FROM dockcross/android-arm64

WORKDIR /work/deps

COPY install/deb_ubuntu_ccache.sh /work/
RUN /work/deb_ubuntu_ccache.sh

ENV ARCH aarch64
ENV TARGET ARMV8
ENV ARM_SOFTFP_ABI 1
ENV OSNAME Android
ENV ONLY_CBLAS 1
ENV HOSTCC gcc

COPY install/arm_openblas.sh /work/
RUN /work/arm_openblas.sh

ENV OpenBLAS_HOME=${CROSS_ROOT}

WORKDIR /work/build
COPY install/deb_ubuntu_ccache.sh /work/
RUN /work/deb_ubuntu_ccache.sh

COPY runtime_functions.sh /work/
WORKDIR /work/mxnet
35 changes: 0 additions & 35 deletions ci/docker/install/arm64_openblas.sh

This file was deleted.

40 changes: 21 additions & 19 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,37 +199,39 @@ build_android_armv7() {
set -ex
cd /work/build
cmake \
-DANDROID=ON\
-DANDROID=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CROSSCOMPILING=ON \
-DUSE_CUDA=OFF\
-DUSE_SSE=OFF\
-DSUPPORT_F16C=OFF\
-DUSE_LAPACK=OFF\
-DUSE_OPENCV=OFF\
-DUSE_OPENMP=OFF\
-DUSE_SIGNAL_HANDLER=ON\
-DCMAKE_BUILD_TYPE=RelWithDebInfo\
-DUSE_MKL_IF_AVAILABLE=OFF\
-DUSE_CUDA=OFF \
-DUSE_SSE=OFF \
-DSUPPORT_F16C=OFF \
-DUSE_LAPACK=OFF \
-DUSE_OPENCV=OFF \
-DUSE_OPENMP=OFF \
-DUSE_SIGNAL_HANDLER=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_MKL_IF_AVAILABLE=OFF \
-G Ninja /work/mxnet
ninja -v
}

build_android_armv8() {
set -ex
cd /work/build
cmake\
cmake \
-DANDROID=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CROSSCOMPILING=ON \
-DUSE_CUDA=OFF\
-DUSE_SSE=OFF\
-DUSE_LAPACK=OFF\
-DUSE_OPENCV=OFF\
-DUSE_OPENMP=OFF\
-DUSE_SIGNAL_HANDLER=ON\
-DCMAKE_BUILD_TYPE=RelWithDebInfo\
-DUSE_MKL_IF_AVAILABLE=OFF\
-DUSE_CUDA=OFF \
-DUSE_SSE=OFF \
-DUSE_LAPACK=OFF \
-DUSE_OPENCV=OFF \
-DUSE_OPENMP=OFF \
-DUSE_SIGNAL_HANDLER=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_MKL_IF_AVAILABLE=OFF \
-G Ninja /work/mxnet
ninja -v
}
Expand Down

0 comments on commit ab66991

Please sign in to comment.