Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
afc40a59
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
afc40a59
编写于
9月 26, 2019
作者:
G
gongweibao
提交者:
GitHub
9月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add `RUN_SERIAL` attribute to `exclusive` test. (#20026)
上级
6c74e738
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
19 deletion
+22
-19
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+4
-1
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+18
-18
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
afc40a59
...
@@ -574,15 +574,18 @@ function card_test() {
...
@@ -574,15 +574,18 @@ function card_test() {
done
done
if
[
${
TESTING_DEBUG_MODE
:-
OFF
}
==
"ON"
]
;
then
if
[
${
TESTING_DEBUG_MODE
:-
OFF
}
==
"ON"
]
;
then
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
echo
"ctest -I
$i
,,
$NUM_PROC
-R
\"
(
$testcases
)
\"
-V &"
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
else
else
echo
"env CUDA_VISIBLE_DEVICES=
$cuda_list
ctest -I
$i
,,
$NUM_PROC
-R
\"
(
$testcases
)
\"
&"
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
fi
fi
else
else
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
echo
"ctest -I
$i
,,
$NUM_PROC
-R
\"
(
$testcases
)
\"
--output-on-failure &"
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
else
else
#
echo "env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R \"($testcases)\" --output-on-failure &"
echo
"env CUDA_VISIBLE_DEVICES=
$cuda_list
ctest -I
$i
,,
$NUM_PROC
-R
\"
(
$testcases
)
\"
--output-on-failure &"
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
fi
fi
fi
fi
...
...
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
afc40a59
...
@@ -236,17 +236,17 @@ py_test_modules(test_bilinear_interp_op MODULES test_bilinear_interp_op ENVS ${G
...
@@ -236,17 +236,17 @@ py_test_modules(test_bilinear_interp_op MODULES test_bilinear_interp_op ENVS ${G
py_test_modules
(
test_nearest_interp_op MODULES test_nearest_interp_op ENVS
${
GC_ENVS
}
)
py_test_modules
(
test_nearest_interp_op MODULES test_nearest_interp_op ENVS
${
GC_ENVS
}
)
py_test_modules
(
test_imperative_resnet MODULES test_imperative_resnet ENVS
py_test_modules
(
test_imperative_resnet MODULES test_imperative_resnet ENVS
FLAGS_cudnn_deterministic=1 SERIAL
)
FLAGS_cudnn_deterministic=1 SERIAL
)
set_tests_properties
(
test_imperative_resnet PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_imperative_resnet PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
py_test_modules
(
test_imperative_resnet_sorted_gradient MODULES test_imperative_resnet_sorted_gradient ENVS
py_test_modules
(
test_imperative_resnet_sorted_gradient MODULES test_imperative_resnet_sorted_gradient ENVS
FLAGS_cudnn_deterministic=1 SERIAL
)
FLAGS_cudnn_deterministic=1 SERIAL
)
set_tests_properties
(
test_imperative_resnet_sorted_gradient PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_imperative_resnet_sorted_gradient PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
py_test_modules
(
test_imperative_mnist MODULES test_imperative_mnist ENVS
py_test_modules
(
test_imperative_mnist MODULES test_imperative_mnist ENVS
FLAGS_cudnn_deterministic=1
)
FLAGS_cudnn_deterministic=1
)
py_test_modules
(
test_imperative_mnist_sorted_gradient MODULES test_imperative_mnist_sorted_gradient ENVS
py_test_modules
(
test_imperative_mnist_sorted_gradient MODULES test_imperative_mnist_sorted_gradient ENVS
FLAGS_cudnn_deterministic=1
)
FLAGS_cudnn_deterministic=1
)
py_test_modules
(
test_imperative_se_resnext MODULES test_imperative_se_resnext ENVS
py_test_modules
(
test_imperative_se_resnext MODULES test_imperative_se_resnext ENVS
FLAGS_cudnn_deterministic=1 SERIAL
)
FLAGS_cudnn_deterministic=1 SERIAL
)
set_tests_properties
(
test_imperative_se_resnext PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_imperative_se_resnext PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
py_test_modules
(
test_imperative_ocr_attention_model MODULES test_imperative_ocr_attention_model ENVS
py_test_modules
(
test_imperative_ocr_attention_model MODULES test_imperative_ocr_attention_model ENVS
FLAGS_cudnn_deterministic=1 SERIAL
)
FLAGS_cudnn_deterministic=1 SERIAL
)
py_test_modules
(
test_install_check MODULES test_install_check ENVS
py_test_modules
(
test_install_check MODULES test_install_check ENVS
...
@@ -264,20 +264,20 @@ if(WITH_DISTRIBUTE)
...
@@ -264,20 +264,20 @@ if(WITH_DISTRIBUTE)
endif
()
endif
()
if
(
NOT APPLE
)
if
(
NOT APPLE
)
bash_test_modules
(
test_listen_and_serv_op MODULES test_listen_and_serv.sh
)
bash_test_modules
(
test_listen_and_serv_op MODULES test_listen_and_serv.sh
)
set_tests_properties
(
test_listen_and_serv_op PROPERTIES TIMEOUT 100 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_listen_and_serv_op PROPERTIES TIMEOUT 100 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_listen_and_serv_op test_nce_remote_table_op test_hsigmoid_remote_table_op PROPERTIES LABELS
"RUN_TYPE=DIST"
)
set_tests_properties
(
test_listen_and_serv_op test_nce_remote_table_op test_hsigmoid_remote_table_op PROPERTIES LABELS
"RUN_TYPE=DIST"
)
set_tests_properties
(
test_dist_mnist PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_dgc_nccl PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_dgc_nccl PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_hallreduce PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_hallreduce PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_multi_comm PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_multi_comm PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_ring_allreduce PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_ring_allreduce PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_backward_deps PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_backward_deps PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_fleetapi PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_fleetapi PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_mnist_lars PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_mnist_lars PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_word2vec PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_word2vec PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_simnet_bow PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_simnet_bow PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_text_classification PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_text_classification PROPERTIES TIMEOUT 350 LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
list
(
REMOVE_ITEM TEST_OPS test_dist_se_resnext_dgc
)
list
(
REMOVE_ITEM TEST_OPS test_dist_se_resnext_dgc
)
list
(
REMOVE_ITEM TEST_OPS test_dist_se_resnext_sync
)
list
(
REMOVE_ITEM TEST_OPS test_dist_se_resnext_sync
)
...
@@ -292,9 +292,9 @@ if(WITH_DISTRIBUTE)
...
@@ -292,9 +292,9 @@ if(WITH_DISTRIBUTE)
# FIXME(typhoonzero): add these tests back
# FIXME(typhoonzero): add these tests back
# py_test_modules(test_dist_transformer MODULES test_dist_transformer)
# py_test_modules(test_dist_transformer MODULES test_dist_transformer)
# set_tests_properties(test_dist_transformer PROPERTIES TIMEOUT 1000)
# set_tests_properties(test_dist_transformer PROPERTIES TIMEOUT 1000)
set_tests_properties
(
test_dist_se_resnext_dgc PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_se_resnext_dgc PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_se_resnext_sync PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_se_resnext_sync PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
set_tests_properties
(
test_dist_se_resnext_nccl PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
)
set_tests_properties
(
test_dist_se_resnext_nccl PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
RUN_SERIAL TRUE
)
endif
(
NOT APPLE
)
endif
(
NOT APPLE
)
# py_test_modules(test_dist_transpiler MODULES test_dist_transpiler)
# py_test_modules(test_dist_transpiler MODULES test_dist_transpiler)
endif
()
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录