bgawrych commented on issue #20301:
URL:
https://github.com/apache/incubator-mxnet/issues/20301#issuecomment-872941465
@matteosal These was my reproduction steps
```
conda create -n dotmkl3 python=3.7.7
conda activate dotmkl3
conda install ninja cmake
conda install mkl mkl-include mkl-service -c intel
cd build
cmake -GNinja \
`# GENERAL FLAGS` \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_BUILD_RPATH=On \
-DUSE_OPENCV=OFF \
-DUSE_F16C=Off `# float16 support`\
-DUSE_INT64_TENSOR_SIZE=OFF \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
`# MATH BACKENDS` \
-DBLAS=MKL \
-DUSE_LAPACK=OFF \
-DUSE_ONEDNN=OFF \
-DBLA_VENDOR="Intel10_64ilp" \
-DBLA_STATIC=OFF \
-DMKL_USE_SINGLE_DYNAMIC_LIBRARY=OFF \
-DMKL_INCLUDE_DIR=/home/bg/anaconda3/envs/dotmkl3/include \
-DBLAS_LIBRARIES="/home/bg/anaconda3/envs/dotmkl3/lib/libmkl_intel_ilp64.so;/home/bg/anaconda3/envs/dotmkl3/lib/libmkl_core.so;/home/bg/anaconda3/envs/dotmkl3/lib/libmkl_intel_thread.so;/home/bg/anaconda3/envs/dotmkl3/lib/libiomp5.so"
\
-DUSE_OPENMP=ON \
-DOpenMP_C_FLAGS="-I/home/bg/anaconda3/envs/dotmkl3/include" \
-DOpenMP_C_LIB_NAMES="libiomp5" \
-DOpenMP_CXX_FLAGS="-I/home/bg/anaconda3/envs/dotmkl3/include" \
-DOpenMP_CXX_LIB_NAMES="libiomp5" \
-DOpenMP_libiomp5_LIBRARY="/home/bg/anaconda3/envs/dotmkl3/lib/libiomp5.so"
\
`# CUDA` \
-DUSE_CUDA=OFF ..
```
There is issue with DBLAS_LIBRARIES - after changing this to
`-DBLAS_LIBRARIES="/home/bg/anaconda3/envs/dotmkl3/lib/libmkl_rt.so"`
everything seems to be fine

--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]