|
|
|
@ -231,8 +231,11 @@ if (ENABLE_D)
|
|
|
|
|
find_library(PROFILING msprofiler ${ASCEND_RUNTIME_PATH})
|
|
|
|
|
find_library(PROFILING_SHARED msprof ${ASCEND_DRIVER_PATH})
|
|
|
|
|
find_library(OPTILING optiling ${ASCEND_OPP_PATH})
|
|
|
|
|
target_link_libraries(mindspore ge_runtime ${CCE_LIB} ${RUNTIME_LIB} ${TSDCLIENT} ${HCCL} ${DATATRANSFER} ${OPTILING})
|
|
|
|
|
target_link_libraries(mindspore -Wl,--start-group proto_input ${PROFILING_SHARED} ${PROFILING} mindspore::protobuf -Wl,--end-group)
|
|
|
|
|
add_library(ms_profile SHARED ${PROFILING})
|
|
|
|
|
set_target_properties(ms_profile PROPERTIES LINKER_LANGUAGE CXX)
|
|
|
|
|
target_link_libraries(ms_profile -Wl,--start-group ${PROFILING_SHARED} ${PROFILING} mindspore::protobuf -Wl,--end-group)
|
|
|
|
|
target_link_libraries(mindspore ms_profile ge_runtime ${CCE_LIB} ${RUNTIME_LIB} ${TSDCLIENT} ${HCCL} ${DATATRANSFER} ${OPTILING})
|
|
|
|
|
target_link_libraries(mindspore -Wl,--start-group proto_input mindspore::protobuf -Wl,--end-group)
|
|
|
|
|
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
|
|
|
target_link_libraries(mindspore -Wl,--start-group proto_input mindspore::protobuf mindspore::sentencepiece -Wl,--end-group)
|
|
|
|
|
else ()
|
|
|
|
|