diff --git a/mindspore/lite/micro/coder/generator/component/const_blocks/cmake_lists.cc b/mindspore/lite/micro/coder/generator/component/const_blocks/cmake_lists.cc index 3de5e3c4b8..fcc9dd266e 100644 --- a/mindspore/lite/micro/coder/generator/component/const_blocks/cmake_lists.cc +++ b/mindspore/lite/micro/coder/generator/component/const_blocks/cmake_lists.cc @@ -94,8 +94,8 @@ set(WRAPPER_LIB ${PKG_PATH}/tools/codegen/lib/libwrapper.a) set(OP_HEADER_PATH ${PKG_PATH}/tools/codegen/include) set(HEADER_PATH ${PKG_PATH}/inference) -message("operator lib path: ${OP_LIB}") -message("operator header path: ${OP_HEADER_PATH}") +message(STATUS "operator lib path: ${OP_LIB}") +message(STATUS "operator header path: ${OP_HEADER_PATH}") add_compile_definitions(NOT_USE_STL) diff --git a/mindspore/lite/test/codegen/run_benchmark_codegen.sh b/mindspore/lite/test/codegen/run_benchmark_codegen.sh index d7bcae2669..81c7c30da7 100644 --- a/mindspore/lite/test/codegen/run_benchmark_codegen.sh +++ b/mindspore/lite/test/codegen/run_benchmark_codegen.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2019 Huawei Technologies Co., Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================ function Run_Converter() { cd ${x86_path} || exit 1 @@ -40,14 +54,15 @@ function Run_x86() { continue fi echo ${model_name} >> "${run_x86_log_file}" - ${CODEGEN_PATH}/codegen --codePath=${build_path} --modelPath=${ms_models_path}/${model_name}.ms + ${CODEGEN_PATH}/codegen --codePath=${build_path} --modelPath=${ms_models_path}/${model_name}.ms >> ${run_x86_log_file} # 1. build benchmark mkdir -p ${build_path}/${model_name}/build && cd ${build_path}/${model_name}/build || exit 1 - cmake -DPKG_PATH=${x86_path}/mindspore-lite-${version}-inference-linux-x64 ${build_path}/${model_name} - make + cmake -DPKG_PATH=${x86_path}/mindspore-lite-${version}-inference-linux-x64 ${build_path}/${model_name} >> ${run_x86_log_file} + make >> ${run_x86_log_file} # 2. run benchmark - echo "net file: ${build_path}/${model_name}/src/net.bin" - ./benchmark ${models_path}/input_output/input/${model_name}.ms.bin ${build_path}/${model_name}/src/net.bin 1 ${models_path}/input_output/output/${model_name}.ms.out + echo "net file: ${build_path}/${model_name}/src/net.bin" >> ${run_x86_log_file} + echo "./benchmark ${models_path}/input_output/input/${model_name}.ms.bin ${build_path}/${model_name}/src/net.bin 1 ${models_path}/input_output/output/${model_name}.ms.out" >> ${run_x86_log_file} + ./benchmark ${models_path}/input_output/input/${model_name}.ms.bin ${build_path}/${model_name}/src/net.bin 1 ${models_path}/input_output/output/${model_name}.ms.out >> ${run_x86_log_file} if [ $? = 0 ]; then run_result='x86: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file} else