Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
26007b1d
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
26007b1d
编写于
3月 14, 2023
作者:
Z
zhaoyingli
提交者:
GitHub
3月 14, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix cmakelist (#51546)
上级
143eceeb
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
51 addition
and
62 deletion
+51
-62
python/paddle/fluid/tests/unittests/auto_parallel/CMakeLists.txt
...paddle/fluid/tests/unittests/auto_parallel/CMakeLists.txt
+51
-62
未找到文件。
python/paddle/fluid/tests/unittests/auto_parallel/CMakeLists.txt
浏览文件 @
26007b1d
# file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
# file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
# string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
# string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
if
(
WITH_DISTRIBUTE AND WITH_GPU
)
if
(
WITH_DISTRIBUTE AND WITH_GPU
)
# NOTE(zyl): unittests WITH multi cards and timeout
py_test_modules
(
test_auto_parallel_relaunch MODULES
py_test_modules
(
test_auto_parallel_relaunch MODULES
test_auto_parallel_relaunch
ENVS
${
dist_ENVS
}
)
test_auto_parallel_relaunch
)
set_tests_properties
(
test_auto_parallel_relaunch
set_tests_properties
(
test_auto_parallel_relaunch
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 120
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 120
)
py_test_modules
(
test_relaunch_with_planner MODULES test_relaunch_with_planner
)
py_test_modules
(
test_relaunch_with_planner MODULES test_relaunch_with_planner
ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_relaunch_with_planner
set_tests_properties
(
test_relaunch_with_planner
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 120
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 120
)
py_test_modules
(
test_relaunch_with_gpt_planner MODULES
py_test_modules
(
test_relaunch_with_gpt_planner MODULES
test_relaunch_with_gpt_planner
ENVS
${
dist_ENVS
}
)
test_relaunch_with_gpt_planner
)
set_tests_properties
(
test_relaunch_with_gpt_planner
set_tests_properties
(
test_relaunch_with_gpt_planner
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 240
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 240
)
py_test_modules
(
test_engine_api MODULES test_engine_api
)
py_test_modules
(
test_engine_api MODULES test_engine_api ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_engine_api PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
set_tests_properties
(
test_engine_api PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
TIMEOUT 80
)
py_test_modules
(
test_engine_api_dp MODULES test_engine_api_dp
)
py_test_modules
(
test_engine_api_dp MODULES test_engine_api_dp ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_engine_api_dp
set_tests_properties
(
test_engine_api_dp
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
py_test_modules
(
test_optimization_tuner_api MODULES
py_test_modules
(
test_optimization_tuner_api MODULES
test_optimization_tuner_api
ENVS
${
dist_ENVS
}
)
test_optimization_tuner_api
)
set_tests_properties
(
test_optimization_tuner_api
set_tests_properties
(
test_optimization_tuner_api
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
py_test_modules
(
test_converter MODULES test_converter
)
py_test_modules
(
test_converter MODULES test_converter ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_converter PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
set_tests_properties
(
test_converter PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
TIMEOUT 50
)
py_test_modules
(
test_high_order_grad MODULES test_high_order_grad ENVS
py_test_modules
(
test_high_order_grad MODULES test_high_order_grad
)
${
dist_ENVS
}
)
set_tests_properties
(
test_high_order_grad
set_tests_properties
(
test_high_order_grad
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_iterable_dataset MODULES test_iterable_dataset ENVS
py_test_modules
(
test_iterable_dataset MODULES test_iterable_dataset
)
${
dist_ENVS
}
)
set_tests_properties
(
test_iterable_dataset
set_tests_properties
(
test_iterable_dataset
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 80
)
py_test_modules
(
test_pass_grad_clip MODULES test_pass_grad_clip ENVS
py_test_modules
(
test_pass_grad_clip MODULES test_pass_grad_clip
)
${
dist_ENVS
}
)
set_tests_properties
(
test_pass_grad_clip
set_tests_properties
(
test_pass_grad_clip
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_pass_gradient_merge MODULES test_pass_gradient_merge
py_test_modules
(
test_pass_gradient_merge MODULES test_pass_gradient_merge
)
ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_pass_gradient_merge
set_tests_properties
(
test_pass_gradient_merge
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_pass_recompute MODULES test_pass_recompute ENVS
py_test_modules
(
test_pass_recompute MODULES test_pass_recompute
)
${
dist_ENVS
}
)
set_tests_properties
(
test_pass_recompute
set_tests_properties
(
test_pass_recompute
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_pass_sharding MODULES test_pass_sharding ENVS
py_test_modules
(
test_pass_sharding MODULES test_pass_sharding
)
${
dist_ENVS
}
)
set_tests_properties
(
test_pass_sharding
set_tests_properties
(
test_pass_sharding
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_pass_amp MODULES test_pass_amp
ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_pass_amp MODULES test_pass_amp
)
set_tests_properties
(
test_pass_amp PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
set_tests_properties
(
test_pass_amp PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
TIMEOUT 50
)
py_test_modules
(
test_engine_callbacks MODULES test_engine_callbacks
)
py_test_modules
(
test_engine_callbacks MODULES test_engine_callbacks
)
set_tests_properties
(
test_engine_callbacks
set_tests_properties
(
test_engine_callbacks
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
PROPERTIES LABELS
"RUN_TYPE=EXCLUSIVE"
TIMEOUT 50
)
py_test_modules
(
test_parallel_tuner MODULES test_parallel_tuner ENVS
# End of unittests WITH multi cards and timeout
${
dist_ENVS
}
)
# NOTE(zyl): unittests WITH multi cards and WITHOUT timeout
# End of unittests WITH multi cards and WITHOUT timeout
# NOTE(zyl): unittests WITH single card and timeout
py_test_modules
(
test_parallel_tuner MODULES test_parallel_tuner
)
set_tests_properties
(
test_parallel_tuner PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_parallel_tuner PROPERTIES TIMEOUT 120
)
py_test_modules
(
test_parallel_tuner_full MODULES test_parallel_tuner_full
py_test_modules
(
test_parallel_tuner_full MODULES test_parallel_tuner_full
)
ENVS
${
dist_ENVS
}
)
set_tests_properties
(
test_parallel_tuner_full PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_parallel_tuner_full PROPERTIES TIMEOUT 120
)
py_test_modules
(
test_parallel_tuner_predict MODULES
py_test_modules
(
test_parallel_tuner_predict MODULES
test_parallel_tuner_predict
ENVS
${
dist_ENVS
}
)
test_parallel_tuner_predict
)
set_tests_properties
(
test_parallel_tuner_predict PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_parallel_tuner_predict PROPERTIES TIMEOUT 120
)
py_test_modules
(
test_selective_recompute MODULES test_selective_recompute
)
py_test_modules
(
test_selective_recompute MODULES test_selective_recompute
)
set_tests_properties
(
test_selective_recompute PROPERTIES TIMEOUT 50
)
set_tests_properties
(
test_selective_recompute PROPERTIES TIMEOUT 50
)
py_test_modules
(
test_pass_quantization MODULES test_pass_quantization ENVS
py_test_modules
(
test_pass_quantization MODULES test_pass_quantization
)
${
dist_ENVS
}
)
set_tests_properties
(
test_pass_quantization PROPERTIES TIMEOUT 60
)
set_tests_properties
(
test_pass_quantization PROPERTIES TIMEOUT 60
)
py_test_modules
(
test_tuning_recompute MODULES test_tuning_recompute
)
py_test_modules
(
test_tuning_recompute MODULES test_tuning_recompute
)
set_tests_properties
(
test_tuning_recompute PROPERTIES TIMEOUT 240
)
set_tests_properties
(
test_tuning_recompute PROPERTIES TIMEOUT 240
)
...
@@ -85,34 +77,29 @@ if(WITH_DISTRIBUTE AND WITH_GPU)
...
@@ -85,34 +77,29 @@ if(WITH_DISTRIBUTE AND WITH_GPU)
set_tests_properties
(
test_align_tool PROPERTIES TIMEOUT 20
)
set_tests_properties
(
test_align_tool PROPERTIES TIMEOUT 20
)
py_test_modules
(
test_pass_base_list MODULES test_pass_base_list
)
py_test_modules
(
test_pass_base_list MODULES test_pass_base_list
)
set_tests_properties
(
test_pass_base_list PROPERTIES TIMEOUT 20
)
set_tests_properties
(
test_pass_base_list PROPERTIES TIMEOUT 20
)
# End of unittests WITH single card and timeout
py_test_modules
(
test_while_op_completion MODULES test_while_op_completion
# NOTE(zyl): unittests WITH single card and WITHOUT timeout
ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_while_op_completion MODULES test_while_op_completion
)
py_test_modules
(
test_while_op_partition MODULES test_while_op_partition ENVS
py_test_modules
(
test_while_op_partition MODULES test_while_op_partition
)
${
dist_ENVS
}
)
py_test_modules
(
test_tunable_variable MODULES test_tunable_variable
)
py_test_modules
(
test_tunable_variable MODULES test_tunable_variable ENVS
py_test_modules
(
test_tunable_space MODULES test_tunable_space
)
${
dist_ENVS
}
)
py_test_modules
(
test_recorder MODULES test_recorder
)
py_test_modules
(
test_tunable_space MODULES test_tunable_space ENVS
py_test_modules
(
test_trial MODULES test_trial
)
${
dist_ENVS
}
)
py_test_modules
(
test_new_cost_model MODULES test_new_cost_model
)
py_test_modules
(
test_recorder MODULES test_recorder ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_reshape MODULES test_dist_reshape
)
py_test_modules
(
test_trial MODULES test_trial ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_pnorm MODULES test_dist_pnorm
)
py_test_modules
(
test_new_cost_model MODULES test_new_cost_model ENVS
py_test_modules
(
test_dist_embedding MODULES test_dist_embedding
)
${
dist_ENVS
}
)
py_test_modules
(
test_dist_slice MODULES test_dist_slice
)
py_test_modules
(
test_dist_reshape MODULES test_dist_reshape ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_split MODULES test_dist_split
)
py_test_modules
(
test_dist_pnorm MODULES test_dist_pnorm ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_cluster MODULES test_cluster
)
py_test_modules
(
test_dist_embedding MODULES test_dist_embedding ENVS
py_test_modules
(
test_comm_cost MODULES test_comm_cost
)
${
dist_ENVS
}
)
py_test_modules
(
test_comp_cost MODULES test_comp_cost
)
py_test_modules
(
test_dist_slice MODULES test_dist_slice ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_base_cost MODULES test_base_cost
)
py_test_modules
(
test_dist_split MODULES test_dist_split ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_context MODULES test_dist_context
)
py_test_modules
(
test_cluster MODULES test_cluster ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_prim_dist_op MODULES test_prim_dist_op
)
py_test_modules
(
test_comm_cost MODULES test_comm_cost ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_to_static MODULES test_to_static
)
py_test_modules
(
test_comp_cost MODULES test_comp_cost ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_op_cost MODULES test_dist_op_cost
)
py_test_modules
(
test_base_cost MODULES test_base_cost ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_context MODULES test_dist_context ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_prim_dist_op MODULES test_prim_dist_op ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_to_static MODULES test_to_static ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_dist_op_cost MODULES test_dist_op_cost ENVS
${
dist_ENVS
}
)
py_test_modules
(
test_cluster_v2 MODULES test_cluster_v2
)
py_test_modules
(
test_cluster_v2 MODULES test_cluster_v2
)
py_test_modules
(
test_process_mesh_v2 MODULES test_process_mesh_v2
)
py_test_modules
(
test_process_mesh_v2 MODULES test_process_mesh_v2
)
py_test_modules
(
test_dist_attr_v2 MODULES test_dist_attr_v2
)
py_test_modules
(
test_dist_attr_v2 MODULES test_dist_attr_v2
)
...
@@ -136,4 +123,6 @@ if(WITH_DISTRIBUTE AND WITH_GPU)
...
@@ -136,4 +123,6 @@ if(WITH_DISTRIBUTE AND WITH_GPU)
test_convert_to_process_meshes
)
test_convert_to_process_meshes
)
py_test_modules
(
test_pass_bf16 MODULES test_pass_bf16
)
py_test_modules
(
test_pass_bf16 MODULES test_pass_bf16
)
py_test_modules
(
test_dist_saver MODULES test_dist_saver
)
py_test_modules
(
test_dist_saver MODULES test_dist_saver
)
# End of unittests WITH single card WITHOUT timeout
endif
()
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录