k128 edited a comment on issue #14664: mxnet-cu100mkl "illegal instruction" on 
CPU
URL: 
https://github.com/apache/incubator-mxnet/issues/14664#issuecomment-577665393
 
 
   I might be doing something completely wrong here, but I installed MKL via 
APT without error and used the code on this page in order: 
https://mxnet.apache.org/api/python/docs/tutorials/performance/backend/mkldnn/mkldnn_readme.html
   
   Exact code I ran:
   #Installing MKL
   sudo bash
   cd /tmp
   wget 
https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
   apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
   rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
   exit
   sudo wget https://apt.repos.intel.com/setup/intelproducts.list -O 
/etc/apt/sources.list.d/intelproducts.list
   sudo apt update
   sudo apt install intel-mkl-64bit-2020.0-088
   
   #Building MXNet
   sudo apt install -y build-essential git libopenblas-dev liblapack-dev 
libopencv-dev graphviz
   git clone --recursive https://github.com/apache/incubator-mxnet.git
   cd incubator-mxnet
   mkdir build && cd build
   cmake -DUSE_CUDA=OFF -DUSE_MKL_IF_AVAILABLE=ON -DUSE_MKLDNN=ON 
-DUSE_OPENMP=ON -DUSE_OPENCV=ON ..
   make -j $(nproc)
   
   Results:
   Lots of warnings like: 
   
/home/k64/incubator-mxnet/src/operator/numpy/./../nn/../tensor/././elemwise_unary_op.h:262:50:
 warning: typedef ‘DType’ locally defined but not used [-Wunused-local-typedefs]
        MXNET_INT_TYPE_SWITCH(outputs[0].type_flag_, DType, {
   
   Errors:
   CMakeFiles/Makefile2:1165: recipe for target 
'CMakeFiles/mxnet_static.dir/all' failed
   make[1]: *** [CMakeFiles/mxnet_static.dir/all] Error 2
   Makefile:140: recipe for target 'all' failed
   make: *** [all] Error 2

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to