You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2022/01/24 10:54:28 UTC
[GitHub] [incubator-mxnet] matteosal commented on issue #20836: Install error when building with oneDNN
matteosal commented on issue #20836:
URL: https://github.com/apache/incubator-mxnet/issues/20836#issuecomment-1019967635
@anko-intel here is my invocation with all the flags:
```
cmake \
`# GENERAL FLAGS` \
-DCMAKE_INSTALL_PREFIX=$output_dir \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_BUILD_RPATH=On \
-DUSE_OPENCV=OFF \
-DUSE_JEMALLOC=OFF \
-DUSE_F16C=Off `# float16 support`\
-DUSE_INT64_TENSOR_SIZE=ON `# this + MKL_MULTI_THREADED=ON + MKL_USE_SINGLE_DYNAMIC_LIBRARY=OFF select MKL ILP64`\
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" `# prevent libgomp from linking` \
`# MATH BACKENDS` \
-DBLAS=MKL \
-DUSE_LAPACK=ON \
-DUSE_LAPACKE_INTERFACE=ON \
-DUSE_ONEDNN=ON \
-DBLA_STATIC=OFF \
-DMKL_MULTI_THREADED=ON \
-DMKL_USE_SINGLE_DYNAMIC_LIBRARY=OFF \
-DMKL_INCLUDE_DIR=$mkl_dir \
-DBLAS_LIBRARIES="$mkl_dir/libmkl_def.so;$mkl_dir/libmkl_intel_ilp64.so;$mkl_dir/libmkl_core.so;$mkl_dir/libmkl_intel_thread.so;$mkl_dir/libiomp5.so" \
`# OPENMP` \
-DUSE_OPENMP=ON \
-DOpenMP_C_FLAGS="-I$mkl_dir -fopenmp" \
-DOpenMP_C_LIB_NAMES="libiomp5" \
-DOpenMP_CXX_FLAGS="-I$mkl_dir -fopenmp" \
-DOpenMP_CXX_LIB_NAMES="libiomp5" \
-DOpenMP_libiomp5_LIBRARY="$mkl_dir/libiomp5.so" \
`# CUDA` \
-DUSE_CUDA=OFF \
$mxnet_dir
```
--
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: issues-unsubscribe@mxnet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org