diff --git a/cmake/paddlepaddle.cmake b/cmake/paddlepaddle.cmake index 78d700718ae6d737ccc422288e88d0b094fab4c3..c9ac3d2f04db833f34211af3cc7aaac2d5184bf9 100644 --- a/cmake/paddlepaddle.cmake +++ b/cmake/paddlepaddle.cmake @@ -31,7 +31,7 @@ message( "WITH_GPU = ${WITH_GPU}") # Paddle Version should be one of: # latest: latest develop build # version number like 1.5.2 -SET(PADDLE_VERSION "1.6.3") +SET(PADDLE_VERSION "1.7.1") if (WITH_GPU) SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}-gpu-cuda${CUDA_VERSION_MAJOR}-cudnn7-avx-mkl") diff --git a/core/general-client/CMakeLists.txt b/core/general-client/CMakeLists.txt index f3bb666a3a0eb114463e941fdaa1ba8134337bb1..b6d2eeabb87cec82f6fd6aebd705b875a5253f68 100644 --- a/core/general-client/CMakeLists.txt +++ b/core/general-client/CMakeLists.txt @@ -2,4 +2,6 @@ if(CLIENT_ONLY) add_subdirectory(pybind11) pybind11_add_module(serving_client src/general_model.cpp src/pybind_general_model.cpp) target_link_libraries(serving_client PRIVATE -Wl,--whole-archive utils sdk-cpp pybind python -Wl,--no-whole-archive -lpthread -lcrypto -lm -lrt -lssl -ldl -lz) +file(GLOB so ${PADDLE_SERVING_BINARY_DIR}/core/general-client/serving_client.*) +file(RENAME ${so} ${PADDLE_SERVING_BINARY_DIR}/core/general-client/serving_client.so) endif() diff --git a/python/paddle_serving_server/__init__.py b/python/paddle_serving_server/__init__.py index ed4c6b76110e6fb6a4bce41d04d3b84d3857d5ba..87c6b4960e439dd529cc0354c667c244369c133a 100644 --- a/python/paddle_serving_server/__init__.py +++ b/python/paddle_serving_server/__init__.py @@ -19,7 +19,7 @@ import google.protobuf.text_format import tarfile import socket import paddle_serving_server as paddle_serving_server -from version import serving_server_version +from .version import serving_server_version from contextlib import closing diff --git a/python/paddle_serving_server_gpu/__init__.py b/python/paddle_serving_server_gpu/__init__.py index d8bcd7bbf6aa827ff80fa455726b6f3f356eb810..8ee1e137fb8fe282d26bda95e4b4bffa6f670f11 100644 --- a/python/paddle_serving_server_gpu/__init__.py +++ b/python/paddle_serving_server_gpu/__init__.py @@ -20,7 +20,7 @@ import google.protobuf.text_format import tarfile import socket import paddle_serving_server_gpu as paddle_serving_server -from version import serving_server_version +from .version import serving_server_version from contextlib import closing import argparse