!32877 [MS][LITE][parallel predoct]fix bug: cpp demo
Merge pull request !32877 from yefeng/284-fix_parallel_predict_cpp_demo_bug-master
This commit is contained in:
commit
96a2cbc461
|
@ -17,6 +17,7 @@ add_executable(mindspore_quick_start_cpp ${QUICK_START_CXX})
|
|||
target_link_libraries(
|
||||
mindspore_quick_start_cpp
|
||||
-Wl,--whole-archive mindspore-lite -Wl,--no-whole-archive
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/libglog.so.0
|
||||
pthread
|
||||
)
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then
|
|||
fi
|
||||
tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/
|
||||
cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.a ${BASEPATH}/lib
|
||||
cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/third_party/glog/libglog.so.0 ${BASEPATH}/lib
|
||||
cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/include ${BASEPATH}/
|
||||
cd ${BASEPATH}/build || exit
|
||||
cmake ${BASEPATH}
|
||||
|
|
Loading…
Reference in New Issue