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 2019/03/02 17:56:54 UTC

[GitHub] sl1pkn07 opened a new issue #14304: error: inlining failed in call to always_inline 'float _cvtsh_ss(short unsigned int)': target specific option mismatch

sl1pkn07 opened a new issue #14304: error: inlining failed in call to always_inline 'float _cvtsh_ss(short unsigned int)': target specific option mismatch
URL: https://github.com/apache/incubator-mxnet/issues/14304
 
 
   ## Description
   Fail build
   
   ## Environment info (Required)
   
   ```
   └───╼  python tools/diagnose.py 
   ----------Python Info----------
   Version      : 3.7.2
   Compiler     : GCC 8.2.1 20181127
   Build        : ('default', 'Jan 10 2019 23:51:51')
   Arch         : ('64bit', 'ELF')
   ------------Pip Info-----------
   Version      : 18.1
   Directory    : /usr/lib/python3.7/site-packages/pip
   ----------MXNet Info-----------
   No MXNet installed.
   ----------System Info----------
   Platform     : Linux-4.20.11-arch2-1-ARCH-x86_64-with-arch
   system       : Linux
   node         : sL1pKn07
   release      : 4.20.11-arch2-1-ARCH
   version      : #1 SMP PREEMPT Fri Feb 22 13:09:33 UTC 2019
   ----------Hardware Info----------
   machine      : x86_64
   processor    : 
   Arquitectura:                        x86_64
   modo(s) de operación de las CPUs:    32-bit, 64-bit
   Orden de los bytes:                  Little Endian
   Tamaños de las direcciones:          46 bits physical, 48 bits virtual
   CPU(s):                              48
   Lista de la(s) CPU(s) en línea:      0-47
   Hilo(s) de procesamiento por núcleo: 2
   Núcleo(s) por «socket»:              12
   «Socket(s)»                          2
   Modo(s) NUMA:                        2
   ID de fabricante:                    GenuineIntel
   Familia de CPU:                      6
   Modelo:                              79
   Nombre del modelo:                   Genuine Intel(R) CPU 0000 @ 2.20GHz
   Revisión:                            0
   CPU MHz:                             2195.247
   CPU MHz máx.:                        2200,0000
   CPU MHz mín.:                        1200,0000
   BogoMIPS:                            4392.42
   Virtualización:                      VT-x
   Caché L1d:                           32K
   Caché L1i:                           32K
   Caché L2:                            256K
   Caché L3:                            30720K
   CPU(s) del nodo NUMA 0:              0-11,24-35
   CPU(s) del nodo NUMA 1:              12-23,36-47
   Indicadores:                         fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm arat pln pts
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0573 sec, LOAD: 0.7692 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0694 sec, LOAD: 0.9907 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0836 sec, LOAD: 0.8912 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0720 sec, LOAD: 0.3601 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0487 sec, LOAD: 0.8830 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0442 sec, LOAD: 0.1343 sec.
   
   ```
   
   Compiler (gcc/clang/mingw/visual studio):
   gcc (GCC) 8.2.1 20181127
   gcc-7 (GCC) 7.4.1 20181207 (for CUDA code)
   
   CUDA 10.0.130
   OpenCV 4.0.1
   CuDNN 7.5.0.56
   NCCL 2.4.2.1 (from GIT)
   OpenBLAS 0.3.5
   lapack 3.8.0
   
   MXNet commit hash:
   7aac0b52539361415c3ba74e9e0de99c05813d4b
   
   Build config:
   ```
     cd incubator-mxnet
   
     # Use system openmp
     git submodule deinit -f 3rdparty/openmp
     rm -rf .git/modules/3rdparty/openmp
     git rm -f 3rdparty/openmp
   
     # Use system gtest
     git submodule deinit -f 3rdparty/googletest
     rm -rf .git/modules/3rdparty/googletest
     git rm -f 3rdparty/googletest
   
     # not needed
     git submodule deinit -f 3rdparty/ps-lite
     rm -rf .git/modules/3rdparty/ps-lite
     git rm -f 3rdparty/ps-lite
   
     git config submodule.3rdparty/onnx-tensorrt.url "${srcdir}/onnx-tensorrt"
     git config submodule.3rdparty/mshadow.url "${srcdir}/mshadow"
     git config submodule.3rdparty/dmlc-core.url "${srcdir}/dmlc-core"
     git config submodule.3rdparty/dlpack.url "${srcdir}/dlpack"
     git config submodule.3rdparty/mkldnn.url "${srcdir}/mkl-dnn"
     git config submodule.3rdparty/cub.url "${srcdir}/cub"
     git config submodule.3rdparty/tvm.url "${srcdir}/tvm"
     git submodule update --init
   
     pushd 3rdparty/tvm &> /dev/null
     git config submodule.dmlc-core.url "${srcdir}/dmlc-core"
     git config submodule.HalideIR.url "${srcdir}/HalideIR"
     git config submodule.dlpack.url "${srcdir}/dlpack"
   #   git config submodule.rang.url "${srcdir}/rang"
     git submodule update --init
     popd &> /dev/null
   
     pushd 3rdparty/onnx-tensorrt &> /dev/null
     git config submodule.third_party/onnx.url "${srcdir}/onnx"
     git submodule update --init
     popd &> /dev/null
   
     # Fix cython module names
     sed 's|mxnet/%s/.%s|mxnet_%s_%s|' \
       -i python/setup.py
   
     # Not install lib when run 'python setup.py install'
     sed '/data_files/s/^/#/g' \
       -i python/setup.py
   
     # Add /usr/lib to search path in the python module
     sed -e '23aimport sysconfig' \
         -e "s|'\.\.\/\.\.\/\.\.\/'|sysconfig\.get_config_var\('LIBDIR'\)|g" \
         -i python/mxnet/libinfo.py
   
     # Use system gtest
     sed '/GTEST/s/^/#/g' \
       -i CMakeLists.txt
   
     # Not install dmlc-core docs in /
     sed '/doc/s/^/#/g' \
       -i 3rdparty/dmlc-core/CMakeLists.txt \
       -i 3rdparty/tvm/3rdparty/dmlc-core/CMakeLists.txt
   
     # Add project version, VERSION and SOVERSION
     _ver="$(cat docs/_static/mxnet-theme/index.html | grep -m1 '<h3>MXNet' | cut -d ' ' -f10 | tr - .)"
     sed -e "2aset(_PROJECT_VERSION \"${_ver%.*}\")\n" \
         -e '711aset_target_properties(mxnet PROPERTIES VERSION "${_PROJECT_VERSION}")' \
         -e '711aset_target_properties(mxnet PROPERTIES SOVERSION \"0\")' \
         -i CMakeLists.txt
   
     # Fix typo (?) in cpp-package/CMakeLists.txt. https://github.com/apache/incubator-mxnet/issues/10742
     sed 's|NOT DO_NOT_BUILD_EXAMPLES|BUILD_CPP_EXAMPLES|' -i cpp-package/CMakeLists.txt
   
     # Opencv4 support
     sed -e 's/CV_HLS2BGR/cv::COLOR_HLS2BGR/g' \
         -e 's/CV_BGR2HLS/cv::COLOR_BGR2HLS/g' \
         -e 's/CV_GRAY2BGR/cv::COLOR_GRAY2BGR/g' \
         -e 's/CV_RGB2GRAY/cv::COLOR_RGB2GRAY/g' \
         -e 's/CV_BGR2RGB/cv::COLOR_BGR2RGB/g' \
         -i src/io/image_io.cc \
         -i src/io/image_det_aug_default.cc \
         -i src/io/image_aug_default.cc
   
     cd build
     cmake ../incubator-mxnet \
       -DCMAKE_BUILD_TYPE=None \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_INSTALL_LIBDIR=lib \
       -DCMAKE_INSTALL_DOCDIR=share/doc/mxnet \
       -DCUDA_HOST_COMPILER=/usr/bin/gcc-7 \
       -DCUDA_SDK_ROOT_DIR=/opt/cuda \
       -DBUILD_SHARED_LIBS=ON \
       -DUSE_CPP_PACKAGE=ON \
       -DUSE_CUDNN=ON \
       -DUSE_NCCL=ON \
       -DNCCL_LIBRARIES=/opt/cuda/lib/libnccl.so \
       -DUSE_OPENCV=ON \
       -DUSE_OPENMP=ON \
       -DUSE_MKLML_MKL=OFF \
       -DUSE_LAPACK=ON \
       -DUSE_JEMALLOC=OFF \
       -DUSE_GPERFTOOLS=OFF \
       -DWITH_EXAMPLE=OFF \
       -DWITH_TEST=OFF \
       -DBUILD_TESTING=OFF \
       -DBUILD_CPP_EXAMPLES=OFF \
       -DCMAKE_C_COMPILER=/usr/bin/gcc-7 \
       -DCMAKE_C_COMPILER_AR=/usr/bin/gcc-ar-7 \
       -DCMAKE_C_COMPILER_RANLIB=/usr/bin/gcc-ranlib-7 \
       -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \
       -DCMAKE_CXX_COMPILER_AR=/usr/bin/gcc-ar-7 \
       -DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/gcc-ranlib-7
   
     LC_ALL=C make -j1 VERBOSE=1
   ```
   
   ## Error Message:
   ```
   [  4%] Building CXX object CMakeFiles/mxnet_static.dir/src/common/utils.cc.o
   /usr/bin/g++-7  -DCUB_MKL=1 -DDMLC_USE_CXX11 -DDMLC_USE_CXX11=1 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_CUDA=1 -DMSHADOW_USE_CUDNN=1 -DMSHADOW_USE_MKL=0 -DMXNET_ENABLE_CUDA_RTC=1 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_CUDA=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_MKLDNN=1 -DMXNET_USE_NCCL=1 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DNDEBUG=1 -DUSE_CUDNN -DUSE_MKL=1 -I/tmp/makepkg/sl1-mxnet-git/src/build/mklml/mklml_lnx_2019.0.1.20180928/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/mkldnn/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src -I/opt/cuda/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/mshadow -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/cub -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/tvm/nnvm/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/tvm/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/dmlc-core/include -I/tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/3rdparty/dlpack/include -isystem /usr/include/opencv4  -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -fopenmp -std=c++0x -fPIC   -o CMakeFiles/mxnet_static.dir/src/common/utils.cc.o -c /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src/common/utils.cc
   In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/immintrin.h:87:0,
                    from /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/x86intrin.h:48,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/././half.h:13,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/./base.h:278,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/tensor.h:16,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mxnet/./base.h:33,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mxnet/engine.h:34,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src/common/./utils.h:31,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src/common/utils.cc:25:
   /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/f16cintrin.h: In member function 'mshadow::half::half_t::operator float() const':
   /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/f16cintrin.h:38:1: error: inlining failed in call to always_inline 'float _cvtsh_ss(short unsigned int)': target specific option mismatch
    _cvtsh_ss (unsigned short __S)
    ^~~~~~~~~
   In file included from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/./base.h:278:0,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/tensor.h:16,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mxnet/./base.h:33,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mxnet/engine.h:34,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src/common/./utils.h:31,
                    from /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/src/common/utils.cc:25:
   /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/././half.h:79:30: note: called from here
        return T(_cvtsh_ss(half_));   /* NOLINT(*)*/                          \
                                 ^
   /tmp/makepkg/sl1-mxnet-git/src/incubator-mxnet/include/mshadow/././half.h:126:3: note: in expansion of macro 'MSHADOW_HALF_CONVERSIONOP'
      MSHADOW_HALF_CONVERSIONOP(float)
      ^~~~~~~~~~~~~~~~~~~~~~~~~
   make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:193: CMakeFiles/mxnet_static.dir/src/common/utils.cc.o] Error 1
   make[2]: Leaving directory '/tmp/makepkg/sl1-mxnet-git/src/build'
   make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/mxnet_static.dir/all] Error 2
   make[1]: Leaving directory '/tmp/makepkg/sl1-mxnet-git/src/build'
   make: *** [Makefile:130: all] Error 2
   ```
   
   ## Minimum reproducible example
   none
   
   ## Steps to reproduce
   see build config section
   
   ## What have you tried to solve it?
   none
   

----------------------------------------------------------------
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