-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[MXNET-244] Fixed armv7 wheel #11053
Changes from all commits
e85ee93
a6f2e8b
a92e45d
dce641a
6aa6840
be5441b
94a8f4f
b55e867
7324772
6e0b64b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,13 +37,16 @@ ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran | |
| ENV HOSTCC gcc | ||
| ENV TARGET ARMV8 | ||
|
|
||
| WORKDIR /work | ||
| WORKDIR /work/deps | ||
|
|
||
| # Build OpenBLAS | ||
| RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \ | ||
| cd OpenBLAS && \ | ||
| make -j$(nproc) && \ | ||
| PREFIX=${CROSS_ROOT} make install | ||
| COPY install/ubuntu_arm.sh /work/ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need to copy the scripts vs running them directly from the mount volume?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we have to copy them because the volumes are not mounted during build time of the container |
||
| RUN /work/ubuntu_arm.sh | ||
|
|
||
| COPY install/arm_openblas.sh /work/ | ||
| RUN /work/arm_openblas.sh | ||
|
|
||
| ENV OpenBLAS_HOME=${CROSS_ROOT} | ||
| ENV OpenBLAS_DIR=${CROSS_ROOT} | ||
|
|
||
| COPY runtime_functions.sh /work/ | ||
| WORKDIR /work/mxnet | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| set -ex | ||
|
|
||
| git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git | ||
|
|
||
| cd OpenBLAS | ||
| make -j$(nproc) | ||
| PREFIX=${CROSS_ROOT} make install | ||
|
|
||
| cd .. | ||
|
|
||
| rm -rf OpenBLAS |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/usr/bin/env bash | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please rename file to match our filenaming style.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What exactly the name you are suggesting in this case?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind, this is fine :) |
||
|
|
||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| set -ex | ||
|
|
||
| apt update | ||
| apt install -y \ | ||
| unzip | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is CMAKE_CROSSCOMPILING enabled/governed? For android I noticed we are not in "cross compiling" mode or whatever that is supposed to be in cmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, saw it below.