From 108f8dfc9728da0110558651cb8ebffc108ab2a7 Mon Sep 17 00:00:00 2001 From: ShiningZhang Date: Tue, 17 May 2022 14:50:48 +0800 Subject: [PATCH] update paddlepaddle.cmake --- cmake/paddlepaddle.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/paddlepaddle.cmake b/cmake/paddlepaddle.cmake index d0cbac9f..3f8c4056 100644 --- a/cmake/paddlepaddle.cmake +++ b/cmake/paddlepaddle.cmake @@ -53,6 +53,7 @@ else() set(WITH_TRT OFF) endif() if (WITH_GPU) + SET(PADDLE_VERSION "2.3.0-no-ort") SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}/cxx_c/Linux/GPU/${CUDA_SUFFIX}") elseif (WITH_LITE) message("cpu arch: ${CMAKE_SYSTEM_PROCESSOR}") @@ -85,6 +86,7 @@ elseif (WITH_ASCEND_CL) endif() else() if (WITH_AVX) + SET(PADDLE_VERSION "2.3.0-no-ort") if (WITH_MKLML) SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}/cxx_c/Linux/CPU/gcc8.2_avx_mkl") else() @@ -177,7 +179,7 @@ if (NOT WITH_MKLML) endif() ADD_LIBRARY(paddle_inference STATIC IMPORTED GLOBAL) -SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.so) +SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.a) if (WITH_ASCEND_CL) SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.so) endif() -- GitLab