From 0b3b5dd62cad9c44f016342c1eda0e39f6b2ece5 Mon Sep 17 00:00:00 2001 From: joey12300 <136876878@qq.com> Date: Wed, 30 Oct 2019 19:49:24 +0800 Subject: [PATCH] cp libmklml_intel.so to /usr/lib. Necessary in ubuntu 18.04 --- inference/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/inference/CMakeLists.txt b/inference/CMakeLists.txt index fb97f91f..6a13d69e 100644 --- a/inference/CMakeLists.txt +++ b/inference/CMakeLists.txt @@ -134,6 +134,7 @@ if(WITH_MKL) else () set(MATH_LIB ${PADDLE_DIR}/third_party/install/mklml/lib/libmklml_intel${CMAKE_SHARED_LIBRARY_SUFFIX} ${PADDLE_DIR}/third_party/install/mklml/lib/libiomp5${CMAKE_SHARED_LIBRARY_SUFFIX}) + execute_process(COMMAND cp -r ${PADDLE_DIR}/third_party/install/mklml/lib/libmklml_intel${CMAKE_SHARED_LIBRARY_SUFFIX} /usr/lib) endif () set(MKLDNN_PATH "${PADDLE_DIR}/third_party/install/mkldnn") if(EXISTS ${MKLDNN_PATH}) -- GitLab