You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/01/14 23:28:39 UTC
[GitHub] [incubator-mxnet] ronnac opened a new issue #17310: mvn compile of
the scala package fails on armhf because of hardcoded sse and f16c flags
ronnac opened a new issue #17310: mvn compile of the scala package fails on armhf because of hardcoded sse and f16c flags
URL: https://github.com/apache/incubator-mxnet/issues/17310
## Description
mvn compile of the scala package fails on armhf because of hardcoded sse and f16c flags in init-native/pom.xml and native/pom.xml.
Cfr related issue https://github.com/apache/incubator-mxnet/issues/1916
### Error Messages
error pom.xml
g++: error: unrecognized command line option ‘-msse3’
g++: error: unrecognized command line option ‘-mf16c’
error mshadow:
[INFO] --- native-maven-plugin:1.0-alpha-7:compile (default-compile) @ libmxnet-scala ---
[INFO] /bin/sh -c cd /root/mxnet/qscala-package/native && g++ -std=c++0x -I/root/mxnet/scala-package/native/src/main/native -I/root/mxnet/scala-package/native/src/main/scala -I/usr/lib/jvm/java-8-openjdk-armhf/jre/../include -I/usr/lib/jvm/java-8-openjdk-armhf/jre/../include/linux -o/root/mxnet/scala-package/native/target/objs/org_apache_mxnet_native_c_api.o -c /root/mxnet/scala-package/native/src/main/native/org_apache_mxnet_native_c_api.cc -I/root/mxnet/scala-package/../include -I/root/mxnet/scala-package/../3rdparty/dmlc-core/include -I/root/mxnet/scala-package/../3rdparty/mshadow -I/root/mxnet/scala-package/../3rdparty/dlpack/include -I/root/mxnet/scala-package/../3rdparty/tvm/nnvm/include -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_CUDA=0 -O3 -DNDEBUG=1 -Wall -Wsign-compare -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs
In file included from /root/mxnet/scala-package/../3rdparty/mshadow/mshadow/./base.h:278:0,
from /root/mxnet/scala-package/../3rdparty/mshadow/mshadow/tensor.h:16,
from /root/mxnet/scala-package/../include/mxnet/./base.h:33,
from /root/mxnet/scala-package/../include/mxnet/ndarray.h:43,
from /root/mxnet/scala-package/native/src/main/native/org_apache_mxnet_native_c_api.cc:29:
/root/mxnet/scala-package/../3rdparty/mshadow/mshadow/././half.h:13:25: fatal error: x86intrin.h: No such file or directory
compilation terminated.
## To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
### Steps to reproduce
(Paste the commands you ran that produced the error.)
On an armhf 32bit device with linux disco :
1. build opencv3.4 from source
build mxnet from source with cmake
cd ~/mxnet/scala package
mvn compile -e
## What have you tried to solve it?
This solves the problem, but the Intel specific flags sse and f16c should be set based on the underlying architecture, not by default.
cd ~/mxnet/scala package
sed -i 's/-msse3 -mf16c//g' init-native/pom.xml native/pom.xml
sed -i 's/-DMSHADOW_USE_CUDA=0/-DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_SSE=0 -DMSHADOW_USE_F16C=0/g' native/pom.xml
## Environment
```
----------Python Info---------- ('Version :', '2.7.16') ('Compiler :', 'GCC 8.3.0') ('Build :', ('default', 'Oct 7 2019 17:36:04')) ('Arch :', ('32bit', '')) ------------Pip Info----------- No corresponding pip install for current python. ----------MXNet Info----------- No MXNet installed. ----------System Info---------- ('Platform :', 'Linux-4.4.111-16046393-armv8l-with-Ubuntu-19.04-disco') ('system :', 'Linux') ('node :', 'localhost') ('release :', '4.4.111-16046393') ('version :', '#1 SMP PREEMPT Wed Oct 9 14:44:51 KST 2019') ----------Hardware Info---------- ('machine :', 'armv8l') ('processor :', 'armv8l')
lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory
----------cat /proc/cpuinfo---------- processor : 0
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 4
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 5
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 52.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 6
model name : ARMv8 Processor rev 2 (v8l)
BogoMIPS : 52.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
processor : 7
model name : ARMv8 Processor rev 2 (v8l)
BogoMIPS : 52.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
----------Network Test---------- Setting timeout: 10 Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0807 sec, LOAD: 1.7457 sec. Timing for D2L: http://d2l.ai, DNS: 0.0656 sec, LOAD: 0.2946 sec. Timing for FashionMNIST: https://repo.mxnet.io/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.2743 sec, LOAD: 0.9302 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0487 sec, LOAD: 0.5180 sec. Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0375 sec, LOAD: 0.8872 sec. Timing for GluonNLP: http://gluon-nlp.mxnet.io, DNS: 0.0857 sec, LOAD: 1.1839 sec. Timing for D2L (zh-cn): http://zh.d2l.ai, DNS: 0.0722 sec, LOAD: 0.4554 sec. Timing for GluonNLP GitHub: https://github.com/dmlc/gluon-nlp, DNS: 0.0250 sec, LOAD: 0.7598 sec.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services