未验证 提交 03f72de4 编写于 作者: Y Yiqun Liu 提交者: GitHub

Try to enable the collect of kernel registry infomation when there is no...

Try to enable the collect of kernel registry infomation when there is no operators to test. (#51444)

* Try to enable the collect of kernel registry infomation when there is no operators to test.

* Change the branch_name to pr_whl.
上级 b9d91531
...@@ -115,8 +115,14 @@ function load_CHANGE_OP_FILES { ...@@ -115,8 +115,14 @@ function load_CHANGE_OP_FILES {
load_CHANGE_OP_FILES_by_header_file $change_file load_CHANGE_OP_FILES_by_header_file $change_file
fi fi
done done
[ ${#CHANGE_OP_FILES[@]} -eq 0 ] && LOG "[INFO] No op to test, skip this ci." && \ if [ ${#CHANGE_OP_FILES[@]} -eq 0 ]; then
exit 0 LOG "[INFO] Uninstall PaddlePaddle ..."
pip uninstall -y paddlepaddle paddlepaddle_gpu
LOG "[INFO] Install PaddlePaddle ..."
pip install build/pr_whl/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl
collect_kernel_registry_info
LOG "[INFO] No op to test, skip this ci." && exit 0
fi
} }
# Clone benchmark repo # Clone benchmark repo
...@@ -202,9 +208,9 @@ function run_op_benchmark_test { ...@@ -202,9 +208,9 @@ function run_op_benchmark_test {
# pip install tensorflow==2.3.0 tensorflow-probability # pip install tensorflow==2.3.0 tensorflow-probability
for branch_name in "dev_whl" "pr_whl" for branch_name in "dev_whl" "pr_whl"
do do
LOG "[INFO] Uninstall Paddle ..." LOG "[INFO] Uninstall PaddlePaddle ..."
pip uninstall -y paddlepaddle paddlepaddle_gpu pip uninstall -y paddlepaddle paddlepaddle_gpu
LOG "[INFO] Install Paddle ..." LOG "[INFO] Install PaddlePaddle ..."
pip install build/${branch_name}/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl pip install build/${branch_name}/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl
logs_dir="$(pwd)/logs-${branch_name}" logs_dir="$(pwd)/logs-${branch_name}"
[ -d $logs_dir ] && rm -rf $logs_dir/* || mkdir -p $logs_dir [ -d $logs_dir ] && rm -rf $logs_dir/* || mkdir -p $logs_dir
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册