简体   繁体   中英

Illegal instruction (core dumped) while importing mxnet

I am getting "Illegal instruction (core dumped)" exception while calling import mxnet. I am using CUDA 9.0, and did mxnet installation using anaconda. My python version is 2.7. As a side note, CUDA 10.0 is also installed on my machine.

Any help will be much appreciated.

The "illegal instruction (core dumped)" is usually caused by MXNet loading different shared libraries than was originally built with, CUDA, OpenMP, etc. One solution is to build directly from source on your own system.

For example:

    git clone --recursive https://github.com/apache/incubator-mxnet.git
    cd incubator-mxnet
    echo "USE_OPENCV = 1" >> ./config.mk
    echo "USE_BLAS = openblas" >> ./config.mk
    echo "USE_CUDA = 1" >> ./config.mk
    echo "USE_CUDA_PATH = /usr/local/cuda" >> ./config.mk
    echo "USE_CUDNN = 1" >> ./config.mk
    make -j $(nproc)

Full install instructions are available on the MXNet website: http://mxnet.incubator.apache.org/versions/master/install/index.html?platform=Linux&language=Python&processor=CPU

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM