diff --git a/cmake/external/boost.cmake b/cmake/external/boost.cmake index 0ab248f8c8a0bca9fa6f97f4520a5a9781c9b239..5eca6c5ba88ca50909e78a3d3b67c60c228c8207 100644 --- a/cmake/external/boost.cmake +++ b/cmake/external/boost.cmake @@ -25,7 +25,7 @@ set(BOOST_PROJECT "extern_boost") set(BOOST_VER "1.74.0") set(BOOST_TAR "boost_1_74_0" CACHE STRING "" FORCE) -set(BOOST_URL "http://paddlepaddledeps.cdn.bcebos.com/${BOOST_TAR}.tar.gz" CACHE STRING "" FORCE) +set(BOOST_URL "http://paddlepaddledeps.bj.bcebos.com/${BOOST_TAR}.tar.gz" CACHE STRING "" FORCE) MESSAGE(STATUS "BOOST_TAR: ${BOOST_TAR}, BOOST_URL: ${BOOST_URL}") diff --git a/cmake/paddlepaddle.cmake b/cmake/paddlepaddle.cmake index 666d39f5e5290633a9f0119512a0d525fb8e655f..3ccef9cd80e43860ebbeb7cddfe8b663f0b498d0 100644 --- a/cmake/paddlepaddle.cmake +++ b/cmake/paddlepaddle.cmake @@ -52,14 +52,20 @@ if (WITH_GPU) else() set(WITH_TRT OFF) endif() - +#https://paddle-inference-lib.bj.bcebos.com/2.2.0-rc0/cxx_c/Linux/XPU/arm64_gcc7.3_openblas/paddle_inference_install_dir.tar.gz if (WITH_GPU) SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}/cxx_c/Linux/GPU/${CUDA_SUFFIX}") elseif (WITH_LITE) + message("cpu arch: ${CMAKE_SYSTEM_PROCESSOR}") if (WITH_XPU) - SET(PADDLE_LIB_VERSION "x86-64_gcc8.2_avx_mkl") + if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86-64") + SET(PADDLE_LIB_VERSION "x86-64_gcc8.2_avx_mkl") + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + SET(PADDLE_LIB_VERSION "arm64_gcc7.3_openblas") + endif() else() - SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}-${CMAKE_SYSTEM_PROCESSOR}") + MESSAGE("paddle lite lib is unknown.") + SET(PADDLE_LIB_VERSION "paddle-lite-unknown") endif() else() if (WITH_AVX)