Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
3f83ec61
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3f83ec61
编写于
12月 22, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
12月 22, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move running unittest on windows to another file (#29815)
上级
ddfc3d2c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
241 addition
and
97 deletion
+241
-97
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+13
-97
tools/windows/run_unittests.sh
tools/windows/run_unittests.sh
+228
-0
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
3f83ec61
...
...
@@ -46,6 +46,7 @@ set INFERENCE_DEMO_INSTALL_DIR=%cache_dir:\=/%/inference_demo
rem -------set cache build work directory-----------
rmdir
build
\python
/s/q
del
build
\CMakeCache.txt
if
"
%WITH_CACHE%
"
==
"OFF"
(
rmdir
build
/s/q
goto
:mkbuild
...
...
@@ -53,7 +54,7 @@ if "%WITH_CACHE%"=="OFF" (
set
error_code
=
0
type
%cache_dir%
\error_code.txt
set
/p
error_code
=<
%cache_dir%
\error_code.txt
:
set
/p
error_code
=<
%cache_dir%
\error_code.txt
if
%error_code%
NEQ
0
(
rmdir
build
/s/q
goto
:mkbuild
...
...
@@ -63,7 +64,7 @@ setlocal enabledelayedexpansion
git
show
-ref --verify --quiet
refs
/heads/last
_pr
if
%ERRORLEVEL%
EQU
0
(
git
diff
HEAD
last_pr
--stat --name-only
git
diff
HEAD
last_pr
--stat --name-only
|
findstr
"cmake/[a-zA-Z]*\.cmake CMakeLists.txt
paddle_build.bat
"
git
diff
HEAD
last_pr
--stat --name-only
|
findstr
"cmake/[a-zA-Z]*\.cmake CMakeLists.txt"
if
!ERRORLEVEL!
EQU
0
(
rmdir
build
/s/q
)
...
...
@@ -140,6 +141,10 @@ set CLCACHE_OBJECT_CACHE_TIMEOUT_MS=1000000
clcache
.exe
-M
21474836480
rem ------show summary of current environment----------
cmake
--version
nvcc
--version
where
nvidia
-smi
nvidia
-smi
python
%work_dir%
\tools\summary_env.py
%cache_dir%
\tools\busybox64.exe
bash
%work_dir%
\tools\get_cpu_info.sh
...
...
@@ -279,12 +284,8 @@ if "%WITH_CLCACHE%"=="OFF" (
)
else
(
msbuild
/m
:
%PARALLEL_PROJECT_COUNT%
/p
:TrackFileAccess
=
false
/p
:CLToolExe
=
clcache
.exe
/p
:CLToolPath
=
%PYTHON_ROOT%
\Scripts
/p
:Configuration
=
Release
/verbosity
:minimal
paddle
.sln
)
set
build_error
=
%ERRORLEVEL%
:: ci will collect clcache hit rate
goto
:collect
_clcache_hits
if
%build_error%
NEQ
0
(
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
1
(
exit
/b
7
...
...
@@ -298,6 +299,9 @@ echo Build Paddle successfully!
echo
0
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
:: ci will collect clcache hit rate
goto
:collect
_clcache_hits
goto
:eof
:build
_error
...
...
@@ -362,6 +366,7 @@ echo ========================================
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
start
=
%%
#
set
start
=
%start
:
~
4
,
10
%
set
FLAGS_call_stack_level
=
2
dir
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\lib
dir
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\bin
dir
%THIRD
_PARTY_PATH:/
=
\
%
\install\zlib\bin
...
...
@@ -404,102 +409,13 @@ echo ========================================
setlocal
enabledelayedexpansion
set
FLAGS_fraction_of_gpu_memory_to_use
=
0
.80
:: set PATH=C:\Windows\System32;C:\Program Files\NVIDIA Corporation\NVSMI;%PATH%
:: cmd /C nvidia-smi -L
:: if %errorlevel% NEQ 0 exit /b 8
:: for /F %%# in ('cmd /C nvidia-smi -L ^|find "GPU" /C') do set CUDA_DEVICE_COUNT=%%#
set
CUDA_DEVICE_COUNT
=
1
rem TODO: fix these unittest that is bound to fail
rem /*==================Disabled Windows unite==============================*/
set
diable_wingpu_test
=
test_analysis_predictor
^|^
test_model
^|^
test_add_reader_dependency
^|^
test_bilateral_slice_op
^|^
test_cholesky_op
^|^
test_dataloader_early_reset
^|^
test_decoupled_py_reader
^|^
test_decoupled_py_reader_data_check
^|^
test_eager_deletion_delete_vars
^|^
test_eager_deletion_while_op
^|^
test_fetch_lod_tensor_array
^|^
test_fleet_base_single
^|^
test_fuse_elewise_add_act_pass
^|^
test_fuse_optimizer_pass
^|^
test_generator_dataloader
^|^
test_ir_memory_optimize_ifelse_op
^|^
test_lr_scheduler
^|^
test_multiprocess_dataloader_iterable_dataset_dynamic
^|^
test_multiprocess_dataloader_iterable_dataset_static
^|^
test_parallel_dygraph_sync_batch_norm
^|^
test_parallel_executor_drop_scope
^|^
test_parallel_executor_dry_run
^|^
test_partial_eager_deletion_transformer
^|^
test_prune
^|^
test_py_reader_combination
^|^
test_py_reader_pin_memory
^|^
test_py_reader_push_pop
^|^
test_py_reader_using_executor
^|^
test_reader_reset
^|^
test_update_loss_scaling_op
^|^
test_imperative_static_runner_while
^|^
test_optimizer_in_control_flow
^|^
test_fuse_bn_act_pass
^|^
test_fuse_bn_add_act_pass
^|^
test_gru_rnn_op
^|^
test_rnn_op
^|^
test_simple_rnn_op
^|^
test_pass_builder
^|^
test_lstm_cudnn_op
^|^
test_inplace_addto_strategy
^|^
test_ir_inplace_pass
^|^
test_ir_memory_optimize_pass
^|^
test_memory_reuse_exclude_feed_var
^|^
test_mix_precision_all_reduce_fuse
^|^
test_parallel_executor_pg
^|^
test_print_op
^|^
test_py_func_op
^|^
test_weight_decay
^|^
test_conv2d_int8_mkldnn_op
^|^
test_crypto
^|^
test_callbacks
^|^
test_program_prune_backward
^|^
test_imperative_ocr_attention_model
rem /*===============================================================*/
rem these unittest that cost long time, diabled temporarily, Maybe moved to the night
set
long_time_test
=
best_fit_allocator_test
^|
timer_test
^|
test_image_classification
^|
decorator_test
^|^
test_dataset_cifar
^|
test_dataset_imdb
^|
test_dataset_movielens
^|
test_datasets
^|
test_pretrained_model
^|
test_concat_op
^|
test_elementwise_add_op
^|
test_elementwise_sub_op
^|
test_gather_op
^|
test_gather_nd_op
^|^
test_sequence_concat
^|
test_sequence_conv
^|
test_sequence_pool
^|
test_sequence_slice_op
^|
test_space_to_depth_op
^|
test_activation_nn_grad
^|
test_activation_op
^|
test_auto_growth_gpu_memory_limit
^|^
test_bicubic_interp_op
^|
test_bicubic_interp_v2_op
^|
test_bilinear_interp_v2_op
^|
test_conv2d_op
^|
test_conv3d_op
^|
test_conv3d_transpose_part2_op
^|
test_conv_nn_grad
^|
test_crop_tensor_op
^|^
test_cross_entropy2_op
^|
test_cross_op
^|
test_deformable_conv_v1_op
^|
test_dropout_op
^|
test_dygraph_multi_forward
^|
test_elementwise_div_op
^|
test_elementwise_nn_grad
^|
test_empty_op
^|^
test_fused_elemwise_activation_op
^|
test_group_norm_op
^|
test_gru_op
^|
test_gru_unit_op
^|
test_imperative_lod_tensor_to_selected_rows
^|
test_imperative_optimizer
^|
test_imperative_ptb_rnn
^|^
test_imperative_save_load
^|
test_imperative_selected_rows_to_lod_tensor
^|
test_imperative_star_gan_with_gradient_penalty
^|
test_imperative_transformer_sorted_gradient
^|
test_layer_norm_op
^|^
test_masked_select_op
^|
test_multiclass_nms_op
^|
test_naive_best_fit_gpu_memory_limit
^|
test_nearest_interp_v2_op
^|
test_nn_grad
^|
test_norm_nn_grad
^|^
test_normal
^|
test_pool3d_op
^|
test_pool2d_op
^|
test_prroi_pool_op
^|
test_regularizer
^|
test_regularizer_api
^|
test_sgd_op
^|
test_softmax_with_cross_entropy_op
^|
test_static_save_load
^|^
test_trilinear_interp_op
^|
test_trilinear_interp_v2_op
^|
test_bilinear_interp_op
^|
test_nearest_interp_op
^|
test_sequence_conv
^|
test_transformer
^|^
test_beam_search_decoder
^|
test_argsort_op
^|
test_eager_deletion_gru_net
^|
test_lstmp_op
^|
test_label_semantic_roles
^|^
test_machine_translation
^|
test_row_conv_op
^|
test_deformable_conv_op
^|
test_inplace_softmax_with_cross_entropy
^|
test_conv2d_transpose_op
^|
test_conv3d_transpose_op
^|^
test_cyclic_cifar_dataset
^|
test_deformable_psroi_pooling
^|
test_elementwise_mul_op
^|
test_imperative_auto_mixed_precision
^|
test_imperative_optimizer_v2
^|
test_imperative_ptb_rnn_sorted_gradient
^|^
test_imperative_save_load_v2
^|
test_nan_inf
^|
test_norm_op
^|
test_reduce_op
^|
test_sigmoid_cross_entropy_with_logits_op
^|
test_stack_op
^|
test_strided_slice_op
^|
test_transpose_op
test_imperative_static_runner_mnist
set
parallel_test
=
test_diag
^|
place_test
^|
cpu_helper_test
^|
cpu_helper_test
^|
device_context_test
^|
cudnn_helper_test
set
/a
end
=
CUDA_DEVICE_COUNT
-
1
for
/L
%%
#
in
(
0
,
1
,
%end%
)
do
(
set
CUDA_VISIBLE_DEVICES
=
%%
#
ctest
.exe
-I
%%
#
,,
%CUDA_DEVICE_COUNT%
-R
"
%parallel_test%
"
-E
"
%disable_ut_quickly%
|
%diable_wingpu_test%
|
%long_time_test%
"
-LE
%nightly_label%
--output-on-failure -C
Release
-j
2
--repeat
until
-pass
:4
after
-timeout
:4
if
!errorlevel!
NEQ
0
exit
/b
8
)
for
/L
%%
#
in
(
0
,
1
,
%end%
)
do
(
set
CUDA_VISIBLE_DEVICES
=
%%
#
ctest
.exe
-I
%%
#
,,
%CUDA_DEVICE_COUNT%
-E
"
%disable_ut_quickly%
|
%parallel_test%
|
%diable_wingpu_test%
|
%long_time_test%
"
-LE
%nightly_label%
--output-on-failure -C
Release
-j
1
--repeat
until
-pass
:4
after
-timeout
:4
if
!errorlevel!
NEQ
0
exit
/b
8
)
%cache_dir%
\tools\busybox64.exe
bash
%work_dir%
\tools\windows\run_unittests.sh
%NIGHTLY_MODE%
goto
:eof
...
...
tools/windows/run_unittests.sh
0 → 100644
浏览文件 @
3f83ec61
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-e
set
+x
NIGHTLY_MODE
=
$1
PADDLE_ROOT
=
"
$(
cd
"
$PWD
/../"
&&
pwd
)
"
if
[
${
NIGHTLY_MODE
:-
OFF
}
==
"ON"
]
;
then
nightly_label
=
""
else
nightly_label
=
"(RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY)"
echo
"========================================="
echo
"Unittests with nightly labels are only run at night"
echo
"========================================="
fi
if
disable_ut_quickly
=
$(
python
${
PADDLE_ROOT
}
/tools/get_quick_disable_lt.py
)
;
then
echo
"========================================="
echo
"The following unittests have been disabled:"
echo
${
disable_ut_quickly
}
echo
"========================================="
else
disable_ut_quickly
=
''
fi
# /*==================Fixed Disabled Windows unittests==============================*/
# TODO: fix these unittest that is bound to fail
diable_wingpu_test
=
"^test_analysis_predictor
$|
\
^test_parallel_executor_feed_persistable_var
$|
\
^test_parallel_executor_fetch_isolated_var
$|
\
^test_parallel_executor_inference_feed_partial_data
$|
\
^test_parallel_executor_seresnext_base_gpu
$|
\
^test_parallel_executor_seresnext_with_fuse_all_reduce_gpu
$|
\
^test_parallel_executor_seresnext_with_reduce_gpu
$|
\
^test_parallel_ssa_graph_inference_feed_partial_data
$|
\
^test_sync_batch_norm_op
$|
\
^test_fuse_relu_depthwise_conv_pass
$|
\
^test_buffer_shared_memory_reuse_pass
$|
\
^test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass
$|
\
^test_dataloader_keep_order
$|
\
^test_dataloader_unkeep_order
$|
\
^test_model
$|
\
^test_add_reader_dependency
$|
\
^test_bilateral_slice_op
$|
\
^test_cholesky_op
$|
\
^test_dataloader_early_reset
$|
\
^test_decoupled_py_reader
$|
\
^test_decoupled_py_reader_data_check
$|
\
^test_eager_deletion_delete_vars
$|
\
^test_eager_deletion_while_op
$|
\
^test_fetch_lod_tensor_array
$|
\
^test_fleet_base_single
$|
\
^test_fuse_elewise_add_act_pass
$|
\
^test_fuse_optimizer_pass
$|
\
^test_generator_dataloader
$|
\
^test_ir_memory_optimize_ifelse_op
$|
\
^test_lr_scheduler
$|
\
^test_multiprocess_dataloader_iterable_dataset_dynamic
$|
\
^test_multiprocess_dataloader_iterable_dataset_static
$|
\
^test_parallel_dygraph_sync_batch_norm
$|
\
^test_parallel_executor_drop_scope
$|
\
^test_parallel_executor_dry_run
$|
\
^test_partial_eager_deletion_transformer
$|
\
^test_rnn_nets
$|
\
^test_prune
$|
\
^test_py_reader_combination
$|
\
^test_py_reader_pin_memory
$|
\
^test_py_reader_push_pop
$|
\
^test_py_reader_using_executor
$|
\
^test_reader_reset
$|
\
^test_update_loss_scaling_op
$|
\
^test_imperative_se_resnext
$|
\
^test_imperative_static_runner_while
$|
\
^test_optimizer_in_control_flow
$|
\
^test_fuse_bn_act_pass
$|
\
^test_fuse_bn_add_act_pass
$|
\
^test_gru_rnn_op
$|
\
^test_rnn_op
$|
\
^test_simple_rnn_op
$|
\
^test_pass_builder
$|
\
^test_lstm_cudnn_op
$|
\
^test_inplace_addto_strategy
$|
\
^test_ir_inplace_pass
$|
\
^test_ir_memory_optimize_pass
$|
\
^test_memory_reuse_exclude_feed_var
$|
\
^test_mix_precision_all_reduce_fuse
$|
\
^test_parallel_executor_pg
$|
\
^test_print_op
$|
\
^test_py_func_op
$|
\
^test_weight_decay
$|
\
^test_conv2d_int8_mkldnn_op
$|
\
^test_crypto
$|
\
^test_callbacks
$|
\
^test_program_prune_backward
$|
\
^test_imperative_ocr_attention_model
$|
\
^test_sentiment
$|
\
^test_imperative_basic
$|
\
^test_jit_save_load
$|
\
^test_imperative_mnist
$|
\
^test_imperative_mnist_sorted_gradient
$|
\
^test_imperative_static_runner_mnist
$|
\
^test_fuse_all_reduce_pass
$|
\
^test_bert
$|
\
^test_lac
$|
\
^test_mnist
$|
\
^test_mobile_net
$|
\
^test_ptb_lm
$|
\
^test_ptb_lm_v2
$|
\
^test_se_resnet
$|
\
^test_imperative_qat_channelwise
$|
\
^test_imperative_qat
$|
\
^test_imperative_out_scale
$|
\
^diable_wingpu_test$"
# /*============================================================================*/
# these unittest that cost long time, diabled temporarily, Maybe moved to the night
long_time_test
=
"^best_fit_allocator_test
$|
\
^test_image_classification
$|
\
^decorator_test
$|
\
^test_dataset_cifar
$|
\
^test_dataset_imdb
$|
\
^test_dataset_movielens
$|
\
^test_datasets
$|
\
^test_pretrained_model
$|
\
^test_concat_op
$|
\
^test_elementwise_add_op
$|
\
^test_elementwise_sub_op
$|
\
^test_gather_op
$|
\
^test_gather_nd_op
$|
\
^test_sequence_concat
$|
\
^test_sequence_conv
$|
\
^test_sequence_pool
$|
\
^test_sequence_slice_op
$|
\
^test_space_to_depth_op
$|
\
^test_activation_nn_grad
$|
\
^test_activation_op
$|
\
^test_auto_growth_gpu_memory_limit
$|
\
^test_bicubic_interp_op
$|
\
^test_bicubic_interp_v2_op
$|
\
^test_bilinear_interp_v2_op
$|
\
^test_conv2d_op
$|
\
^test_conv3d_op
$|
^test_conv3d_transpose_part2_op
$|
\
^test_conv_nn_grad
$|
\
^test_crop_tensor_op
$|
\
^test_cross_entropy2_op
$|
\
^test_cross_op
$|
\
^test_deformable_conv_v1_op
$|
\
^test_dropout_op
$|
\
^test_dygraph_multi_forward
$|
\
^test_elementwise_div_op
$|
\
^test_elementwise_nn_grad
$|
\
^test_empty_op
$|
\
^test_fused_elemwise_activation_op
$|
\
^test_group_norm_op
$|
\
^test_gru_op
$|
\
^test_gru_unit_op
$|
\
^test_imperative_lod_tensor_to_selected_rows
$|
\
^test_imperative_optimizer
$|
\
^test_imperative_ptb_rnn
$|
\
^test_imperative_save_load
$|
\
^test_imperative_selected_rows_to_lod_tensor
$|
\
^test_imperative_star_gan_with_gradient_penalty
$|
\
^test_imperative_transformer_sorted_gradient
$|
\
^test_layer_norm_op
$|
\
^test_masked_select_op
$|
\
^test_multiclass_nms_op
$|
\
^test_naive_best_fit_gpu_memory_limit
$|
\
^test_nearest_interp_v2_op
$|
\
^test_nn_grad
$|
\
^test_norm_nn_grad
$|
\
^test_normal
$|
\
^test_pool3d_op
$|
\
^test_pool2d_op
$|
\
^test_prroi_pool_op
$|
\
^test_regularizer
$|
\
^test_regularizer_api
$|
\
^test_softmax_with_cross_entropy_op
$|
\
^test_static_save_load
$|
\
^test_trilinear_interp_op
$|
\
^test_trilinear_interp_v2_op
$|
\
^test_bilinear_interp_op
$|
\
^test_nearest_interp_op
$|
\
^test_sequence_conv
$|
\
^test_sgd_op
$|
\
^test_transformer
$|
\
^test_beam_search_decoder
$|
\
^test_argsort_op
$|
\
^test_eager_deletion_gru_net
$|
\
^test_lstmp_op
$|
\
^test_label_semantic_roles
$|
\
^test_machine_translation
$|
\
^test_row_conv_op
$|
\
^test_deformable_conv_op
$|
\
^test_inplace_softmax_with_cross_entropy
$|
\
^test_conv2d_transpose_op
$|
\
^test_conv3d_transpose_op
$|
\
^test_cyclic_cifar_dataset
$|
\
^test_deformable_psroi_pooling
$|
\
^test_elementwise_mul_op
$|
\
^test_imperative_auto_mixed_precision
$|
\
^test_imperative_optimizer_v2
$|
\
^test_imperative_ptb_rnn_sorted_gradient
$|
\
^test_imperative_save_load_v2
$|
\
^test_nan_inf
$|
\
^test_norm_op
$|
\
^test_reduce_op
$|
\
^test_sigmoid_cross_entropy_with_logits_op
$|
\
^test_stack_op
$|
\
^test_strided_slice_op
$|
\
^test_transpose_op$"
export
FLAGS_call_stack_level
=
2
export
FLAGS_fraction_of_gpu_memory_to_use
=
0.92
export
CUDA_VISIBLE_DEVICES
=
0
ctest
-E
"
$disable_ut_quickly
|
$diable_wingpu_test
|
$long_time_test
"
-LE
"
${
nightly_label
}
"
--output-on-failure
-C
Release
--repeat
until
-pass
:4 after-timeout:4
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录