"deploy/vscode:/vscode.git/clone" did not exist on "a27bd4d5d12b4da95c781cd9a4168609a43da84d"
Commit 2969933c authored by LDOUBLEV's avatar LDOUBLEV
Browse files

add status_check and set save_log from env

parent 01f35279
...@@ -108,8 +108,8 @@ flags_value=$(func_parser_value "${lines[line_num]}") ...@@ -108,8 +108,8 @@ flags_value=$(func_parser_value "${lines[line_num]}")
gpu_id=$(set_gpu_id $device_num) gpu_id=$(set_gpu_id $device_num)
repo_name=$(get_repo_name ) repo_name=$(get_repo_name )
SAVE_LOG="benchmark_log" SAVE_LOG=${BENCHMARK_LOG_DIR:-$(pwd)} # */benchmark_log
status_log="benchmark_log/results.log" status_log="${SAVE_LOG}/benchmark_log/results.log"
# set export # set export
IFS=";" IFS=";"
...@@ -173,6 +173,8 @@ if [ ${#gpu_id} -le 1 ];then ...@@ -173,6 +173,8 @@ if [ ${#gpu_id} -le 1 ];then
--convergence_key ${convergence_key_value}: " --convergence_key ${convergence_key_value}: "
echo $cmd echo $cmd
eval $cmd eval $cmd
last_status=${PIPESTATUS[0]}
status_check $last_status "${cmd}" "${status_log}"
else else
log_path="$SAVE_LOG/train_log" log_path="$SAVE_LOG/train_log"
...@@ -207,5 +209,7 @@ else ...@@ -207,5 +209,7 @@ else
--convergence_key ${convergence_key_value}: " --convergence_key ${convergence_key_value}: "
echo $cmd echo $cmd
eval $cmd eval $cmd
last_status=${PIPESTATUS[0]}
status_check $last_status "${cmd}" "${status_log}"
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment