!43792 fix lite smoke

Merge pull request !43792 from zhengyuanhua/code_review
This commit is contained in:
i-robot 2022-11-07 01:51:44 +00:00 committed by Gitee
commit 026839e35e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 11 additions and 11 deletions

View File

@ -11,9 +11,9 @@ function PrePareLocal() {
cp ./scripts/ascend/run_benchmark_ascend.sh ${benchmark_test_path} || exit 1
cp ./../${config_folder}/models_ascend.cfg ${benchmark_test_path} || exit 1
if [[ ${backend} =~ "arm" ]]; then
cp ${release_path}/linux_aarch64/ascend/*-linux-${arch}.tar.gz ${benchmark_test_path} || exit 1
cp ${release_path}/linux_aarch64/cloud_fusion/*-linux-${arch}.tar.gz ${benchmark_test_path} || exit 1
else
cp ${release_path}/centos_x86/ascend/*-linux-${arch}.tar.gz ${benchmark_test_path} || exit 1
cp ${release_path}/centos_x86/cloud_fusion/*-linux-${arch}.tar.gz ${benchmark_test_path} || exit 1
fi
echo "Copy file success"
}
@ -27,9 +27,9 @@ function PrePareRemote() {
scp ./scripts/base_functions.sh ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
scp ./../${config_folder}/models_ascend.cfg ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
if [[ ${backend} =~ "arm" ]]; then
scp ${release_path}/linux_aarch64/ascend/*-linux-${arch}.tar.gz ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
scp ${release_path}/linux_aarch64/cloud_fusion/*-linux-${arch}.tar.gz ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
else
scp ${release_path}/centos_x86/ascend/*-linux-${arch}.tar.gz ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
scp ${release_path}/centos_x86/cloud_fusion/*-linux-${arch}.tar.gz ${user_name}@${device_ip}:${benchmark_test_path} || exit 1
fi
echo "Copy file success"
}

View File

@ -27,7 +27,7 @@ function Run_Converter() {
function Run_TensorRT() {
source /etc/profile.tensorrt8
# cd ${tensorrt_path} || exit 1
# tar -zxf ${x86_path}/ascend_gpu_cpu/mindspore-lite-${version}-linux-x64.tar.gz || exit 1
# tar -zxf ${x86_path}/cloud_fusion/mindspore-lite-${version}-linux-x64.tar.gz || exit 1
# tar -zxf mindspore-lite-${version}-linux-x64.tar.gz || exit 1
# cd ${tensorrt_path}/mindspore-lite-${version}-linux-x64/ || exit 1
echo 'cd '${x86_path}'/mindspore-lite-'${version}'-linux-*'
@ -166,7 +166,7 @@ done
run_fail_not_return="OFF"
basepath=$(pwd)
echo "NVIDIA TensorRT, basepath is ${basepath}"
x86_path=${release_path}/centos_x86/ascend_gpu_cpu # ../release_pkg/lite
x86_path=${release_path}/centos_x86/cloud_fusion # ../release_pkg/lite
#tensorrt_path=${x86_path}/server/tensorrt/cuda-11.1]
cd ${x86_path}

View File

@ -66,7 +66,7 @@ echo ${basepath}
if [[ $backend == "linux_arm64_tflite" ]]; then
x86_path=${release_path}/linux_aarch64/
else
x86_path=${release_path}/centos_x86/ascend_gpu_cpu
x86_path=${release_path}/centos_x86/cloud_fusion
fi
cd ${x86_path}
file_name=$(ls *-linux-*.tar.gz)

View File

@ -51,8 +51,8 @@ function linux_release_package()
mkdir -p ${output_path}/release/linux/aarch64/ascend/
mkdir -p ${output_path}/release/linux/x86_64/server/
mkdir -p ${output_path}/release/linux/aarch64/server/
mkdir -p ${output_path}/release/linux/x86_64/ascend_gpu_cpu/
mkdir -p ${output_path}/release/linux/aarch64/ascend_cpu/
mkdir -p ${output_path}/release/linux/x86_64/cloud_fusion/
mkdir -p ${output_path}/release/linux/aarch64/cloud_fusion/
mkdir -p ${output_path}/release/none/cortex_m7
cp ${input_path}/none_cortex-m/mindspore*cortex-m7.tar.gz* ${output_path}/release/none/cortex_m7/
@ -69,8 +69,8 @@ function linux_release_package()
cp ${input_path}/centos_x86/tensorrt/mindspore*.tar.gz* ${output_path}/release/linux/x86_64/tensorrt/
cp -r ${input_path}/centos_x86/server/* ${output_path}/release/linux/x86_64/server/
cp -r ${input_path}/linux_aarch64/server/* ${output_path}/release/linux/aarch64/server/
cp -r ${input_path}/centos_x86/ascend_gpu_cpu/* ${output_path}/release/linux/x86_64/ascend_gpu_cpu/
cp -r ${input_path}/linux_aarch64/ascend/* ${output_path}/release/linux/aarch64/ascend_cpu/
cp -r ${input_path}/centos_x86/cloud_fusion/* ${output_path}/release/linux/x86_64/cloud_fusion/
cp -r ${input_path}/linux_aarch64/cloud_fusion/* ${output_path}/release/linux/aarch64/cloud_fusion/
cp -r ${input_path}/linux_aarch32/nnie/Hi* ${output_path}/release/linux/nnie/
cp -r ${input_path}/linux_aarch64/nnie/Hi* ${output_path}/release/linux/nnie/