|
|
|
@@ -82,6 +82,7 @@ if(ENABLE_CACHE) |
|
|
|
${PYTHON_LIBRARIES} |
|
|
|
${SECUREC_LIBRARY} |
|
|
|
pthread |
|
|
|
-ldl |
|
|
|
-Wl,--no-as-needed |
|
|
|
mindspore::grpc++) |
|
|
|
else() |
|
|
|
@@ -95,6 +96,7 @@ if(ENABLE_CACHE) |
|
|
|
${PYTHON_LIBRARIES} |
|
|
|
${SECUREC_LIBRARY} |
|
|
|
pthread |
|
|
|
-ldl |
|
|
|
-Wl,--no-as-needed |
|
|
|
mindspore::grpc++ |
|
|
|
-Wl,--as-needed) |
|
|
|
@@ -109,8 +111,14 @@ if(ENABLE_CACHE) |
|
|
|
endif() |
|
|
|
|
|
|
|
add_executable(cache_admin cache_admin.cc cache_admin_arg.cc) |
|
|
|
target_link_libraries(cache_admin _c_dataengine _c_mindrecord mindspore::protobuf ${PYTHON_LIBRARIES} pthread) |
|
|
|
target_link_libraries(cache_admin mindspore -Wl,--as-needed mindspore_core mindspore_shared_lib) |
|
|
|
target_link_libraries(cache_admin _c_dataengine _c_mindrecord ${PYTHON_LIBRARIES} pthread -ldl) |
|
|
|
if(ENABLE_TDTQUE) |
|
|
|
target_link_libraries(cache_admin |
|
|
|
-Wl,--start-group mindspore::protobuf mindspore_core mindspore_shared_lib ${ACL_TDT_CHANNEL} -Wl,--end-group) |
|
|
|
else() |
|
|
|
target_link_libraries(cache_admin |
|
|
|
-Wl,--start-group mindspore::protobuf mindspore_core mindspore_shared_lib -Wl,--end-group) |
|
|
|
endif() |
|
|
|
|
|
|
|
if(USE_GLOG) |
|
|
|
target_link_libraries(cache_admin mindspore::glog) |
|
|
|
|