|
|
@ -29,6 +29,10 @@ fi
|
|
|
|
# export FLAGS_cudnn_exhaustive_search=true
|
|
|
|
# export FLAGS_cudnn_exhaustive_search=true
|
|
|
|
# export FLAGS_conv_workspace_size_limit=4000
|
|
|
|
# export FLAGS_conv_workspace_size_limit=4000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# default memeory allocator strategy may case gpu training hang
|
|
|
|
|
|
|
|
# for no OOM raised when memory exhaused
|
|
|
|
|
|
|
|
export FLAGS_allocator_strategy=naive_best_fit
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${ngpu} == 0 ]; then
|
|
|
|
if [ ${ngpu} == 0 ]; then
|
|
|
|
python3 -u ${BIN_DIR}/train.py \
|
|
|
|
python3 -u ${BIN_DIR}/train.py \
|
|
|
|
--ngpu ${ngpu} \
|
|
|
|
--ngpu ${ngpu} \
|
|
|
|