!37621 [MS][LITE][parallel predict] fix demo
Merge pull request !37621 from yefeng/355-fix_demo
This commit is contained in:
commit
0fac859b8a
|
@ -17,7 +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
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/libmindspore_glog.so.0
|
||||
pthread
|
||||
)
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
@rem Copyright 2022 Huawei Technologies Co., Ltd
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem ============================================================================
|
||||
@echo off
|
||||
@title mindspore_lite_quick_start_cpp_demo_build
|
||||
|
||||
SET BASEPATH=%CD%
|
||||
|
||||
IF NOT EXIST "%BASEPATH%/build" (
|
||||
md build
|
||||
)
|
||||
|
||||
cd %BASEPATH%/build
|
||||
cmake -G "CodeBlocks - MinGW Makefiles" %BASEPATH%
|
||||
cmake --build .
|
|
@ -35,7 +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/third_party/glog/* ${BASEPATH}/lib
|
||||
cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/include ${BASEPATH}/
|
||||
cd ${BASEPATH}/build || exit
|
||||
cmake ${BASEPATH}
|
||||
|
|
Loading…
Reference in New Issue