update benchmark
parent
d44bc7fd62
commit
6c6fe7deab
|
@ -14,7 +14,7 @@ function _set_params(){
|
||||||
device=${CUDA_VISIBLE_DEVICES//,/ }
|
device=${CUDA_VISIBLE_DEVICES//,/ }
|
||||||
arr=(${device})
|
arr=(${device})
|
||||||
num_gpu_devices=${#arr[*]}
|
num_gpu_devices=${#arr[*]}
|
||||||
log_file=${run_log_path}/${model_name}_${run_mode}_bs${batch_size}_${fp_item}_${num_gpu_devices}
|
log_file=${run_log_path}/clas_${model_name}_${run_mode}_bs${batch_size}_${fp_item}_${num_gpu_devices}
|
||||||
}
|
}
|
||||||
function _train(){
|
function _train(){
|
||||||
echo "Train on ${num_gpu_devices} GPUs"
|
echo "Train on ${num_gpu_devices} GPUs"
|
||||||
|
@ -34,6 +34,7 @@ function _train(){
|
||||||
log_parse_file="mylog/workerlog.0" ;;
|
log_parse_file="mylog/workerlog.0" ;;
|
||||||
*) echo "choose run_mode(sp or mp)"; exit 1;
|
*) echo "choose run_mode(sp or mp)"; exit 1;
|
||||||
esac
|
esac
|
||||||
|
rm -rf mylog
|
||||||
# 以下不用修改
|
# 以下不用修改
|
||||||
timeout 15m ${train_cmd} > ${log_file} 2>&1
|
timeout 15m ${train_cmd} > ${log_file} 2>&1
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
|
|
Loading…
Reference in New Issue