diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f45be29c869a1ab1453f9c28c5b489af704eeba..d5aaba63f7c9e3d12c3bf0fba0be7273d3b6ce3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,7 @@ endif() add_subdirectory(bsl) add_subdirectory(ullib) -add_subdirectory(proto_configure) +add_subdirectory(configure) add_subdirectory(mempool) add_subdirectory(predictor) add_subdirectory(inferencer-fluid-cpu) diff --git a/proto_configure/CMakeLists.txt b/configure/CMakeLists.txt similarity index 67% rename from proto_configure/CMakeLists.txt rename to configure/CMakeLists.txt index b67ae212e16cc6563bb9db3d7560f5a4d6e88d64..3b6e55db4f07b1b07541a2794745cd03bf48b4a2 100644 --- a/proto_configure/CMakeLists.txt +++ b/configure/CMakeLists.txt @@ -5,11 +5,11 @@ LIST(APPEND protofiles ) PROTOBUF_GENERATE_CPP(configure_proto_srcs configure_proto_hdrs ${protofiles}) -list(APPEND proto_configure_srcs ${configure_proto_srcs}) +list(APPEND configure_srcs ${configure_proto_srcs}) -list(APPEND proto_configure_srcs ${CMAKE_CURRENT_LIST_DIR}/src/configure_parser.cpp) +list(APPEND configure_srcs ${CMAKE_CURRENT_LIST_DIR}/src/configure_parser.cpp) -add_library(proto_configure ${proto_configure_srcs}) +add_library(configure ${configure_srcs}) add_executable(test_configure ${CMAKE_CURRENT_LIST_DIR}/tests/test_configure.cpp) @@ -17,4 +17,4 @@ target_include_directories(test_configure PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/ ${CMAKE_CURRENT_LIST_DIR}/include ) -target_link_libraries(test_configure proto_configure protobuf) +target_link_libraries(test_configure configure protobuf) diff --git a/proto_configure/include/configure_parser.h b/configure/include/configure_parser.h similarity index 100% rename from proto_configure/include/configure_parser.h rename to configure/include/configure_parser.h diff --git a/proto_configure/proto/inferencer_configure.proto b/configure/proto/inferencer_configure.proto similarity index 100% rename from proto_configure/proto/inferencer_configure.proto rename to configure/proto/inferencer_configure.proto diff --git a/proto_configure/proto/sdk_configure.proto b/configure/proto/sdk_configure.proto similarity index 100% rename from proto_configure/proto/sdk_configure.proto rename to configure/proto/sdk_configure.proto diff --git a/proto_configure/proto/server_configure.proto b/configure/proto/server_configure.proto similarity index 100% rename from proto_configure/proto/server_configure.proto rename to configure/proto/server_configure.proto diff --git a/proto_configure/src/configure_parser.cpp b/configure/src/configure_parser.cpp similarity index 100% rename from proto_configure/src/configure_parser.cpp rename to configure/src/configure_parser.cpp diff --git a/proto_configure/tests/test_configure.cpp b/configure/tests/test_configure.cpp similarity index 100% rename from proto_configure/tests/test_configure.cpp rename to configure/tests/test_configure.cpp diff --git a/inferencer-fluid-cpu/CMakeLists.txt b/inferencer-fluid-cpu/CMakeLists.txt index b3805f14031bf449d82dd0691561235f09b2c999..64e4cddd762a2a40aa55eb113c7eadada3019228 100644 --- a/inferencer-fluid-cpu/CMakeLists.txt +++ b/inferencer-fluid-cpu/CMakeLists.txt @@ -4,6 +4,6 @@ target_include_directories(fluid_cpu_engine PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${PADDLE_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/Paddle/fluid_install_dir/) -add_dependencies(fluid_cpu_engine pdserving paddle_fluid proto_configure) +add_dependencies(fluid_cpu_engine pdserving paddle_fluid configure) target_link_libraries(fluid_cpu_engine pdserving -liomp5 -lmklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz) diff --git a/predictor/CMakeLists.txt b/predictor/CMakeLists.txt index 0e1b4d5113318b4f38d624bcf5da8cd81934e216..4214fb7e3ad8ae6c406dd040a35b8bee2e8c8c4c 100644 --- a/predictor/CMakeLists.txt +++ b/predictor/CMakeLists.txt @@ -17,18 +17,17 @@ set_source_files_properties( PROPERTIES COMPILE_FLAGS "-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor") add_dependencies(pdserving protobuf boost brpc leveldb pdcodegen - proto_configure - ullib mempool) + configure ullib mempool) target_include_directories(pdserving PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ ${CMAKE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../mempool ${CMAKE_CURRENT_LIST_DIR}/../ullib/include) target_link_libraries(pdserving - brpc protobuf boost leveldb proto_configure ullib + brpc protobuf boost leveldb configure ullib mempool -lpthread -lcrypto -lm -lrt -lssl -ldl -lz) add_executable(pdserving_exe ${pdserving_srcs}) @@ -37,18 +36,18 @@ set_source_files_properties( PROPERTIES COMPILE_FLAGS "-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor") add_dependencies(pdserving_exe - protobuf boost brpc leveldb pdcodegen proto_configure bsl + protobuf boost brpc leveldb pdcodegen configure bsl ullib mempool) target_include_directories(pdserving_exe PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ ${CMAKE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../mempool ${CMAKE_CURRENT_LIST_DIR}/../ullib/include) target_link_libraries(pdserving_exe brpc protobuf leveldb bsl - proto_configure ullib mempool -lpthread -lcrypto -lm -lrt -lssl + configure ullib mempool -lpthread -lcrypto -lm -lrt -lssl -ldl -lz) add_library(pdclient ${pdclient_srcs}) @@ -56,13 +55,13 @@ set_source_files_properties( ${pdclient_srcs} PROPERTIES COMPILE_FLAGS "-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor") -add_dependencies(pdclient protobuf boost brpc pdcodegen proto_configure) +add_dependencies(pdclient protobuf boost brpc pdcodegen configure) target_include_directories(pdclient PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ ${CMAKE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../mempool ${CMAKE_CURRENT_LIST_DIR}/../ullib/include) target_link_libraries(pdclient protobuf boost brpc -lpthread -lcrypto -lm -lrt -lssl -ldl -lz) diff --git a/predictor/common/inner_common.h b/predictor/common/inner_common.h index 1bfcffb1a774799642ddbc9ccecc3a37e3abb74c..b91e1de3f0c18a4fff926fe8df407bb758b5f4fe 100644 --- a/predictor/common/inner_common.h +++ b/predictor/common/inner_common.h @@ -27,7 +27,7 @@ #include #include -#include "configure.pb.h" +#include "server_configure.pb.h" #include "configure_parser.h" #include "common/utils.h" diff --git a/sdk-cpp/CMakeLists.txt b/sdk-cpp/CMakeLists.txt index 2015a5fffc4d75e022386c4f49b516e3739bb225..d799f9981acc0fdd12de3210456c36f17168e6e0 100644 --- a/sdk-cpp/CMakeLists.txt +++ b/sdk-cpp/CMakeLists.txt @@ -1,23 +1,23 @@ include(src/CMakeLists.txt) include(proto/CMakeLists.txt) add_library(sdk-cpp ${sdk_cpp_srcs}) -add_dependencies(sdk-cpp pdcodegen proto_configure) +add_dependencies(sdk-cpp pdcodegen configure) target_include_directories(sdk-cpp PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${CMKAE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../ullib/include ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include ) -target_link_libraries(sdk-cpp brpc proto_configure protobuf leveldb) +target_link_libraries(sdk-cpp brpc configure protobuf leveldb) add_executable(ximage ${CMAKE_CURRENT_LIST_DIR}/demo/ximage.cpp) target_include_directories(ximage PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../ullib/include ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include) target_link_libraries(ximage sdk-cpp -lpthread -lcrypto -lm -lrt -lssl -ldl @@ -27,8 +27,8 @@ add_executable(mapcnn_dense ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_dense.cpp) target_include_directories(mapcnn_dense PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${CMAKE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../ullib/include ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include) target_link_libraries(mapcnn_dense sdk-cpp -lpthread -lcrypto -lm -lrt -lssl @@ -38,8 +38,8 @@ add_executable(mapcnn_sparse ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_sparse.cpp) target_include_directories(mapcnn_sparse PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${CMAKE_CURRENT_BINARY_DIR}/ - ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure - ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include + ${CMAKE_CURRENT_BINARY_DIR}/../configure + ${CMAKE_CURRENT_LIST_DIR}/../configure/include ${CMAKE_CURRENT_LIST_DIR}/../ullib/include ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include) target_link_libraries(mapcnn_sparse sdk-cpp -lpthread -lcrypto -lm -lrt -lssl