Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
4058e736
P
Paddle
项目概览
机器未来
/
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看板
未验证
提交
4058e736
编写于
6月 08, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
6月 08, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
temporarily disable these unittests failed on windows (#24942)
上级
c233328c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
69 addition
and
35 deletion
+69
-35
paddle/fluid/framework/CMakeLists.txt
paddle/fluid/framework/CMakeLists.txt
+6
-3
paddle/fluid/inference/analysis/CMakeLists.txt
paddle/fluid/inference/analysis/CMakeLists.txt
+3
-1
paddle/fluid/inference/api/CMakeLists.txt
paddle/fluid/inference/api/CMakeLists.txt
+9
-4
paddle/fluid/memory/allocation/CMakeLists.txt
paddle/fluid/memory/allocation/CMakeLists.txt
+20
-17
paddle/fluid/platform/CMakeLists.txt
paddle/fluid/platform/CMakeLists.txt
+5
-1
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+22
-8
python/paddle/reader/tests/CMakeLists.txt
python/paddle/reader/tests/CMakeLists.txt
+4
-1
未找到文件。
paddle/fluid/framework/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -191,8 +191,8 @@ if(WITH_DISTRIBUTE)
device_context scope framework_proto trainer_desc_proto glog fs shell fleet_wrapper box_wrapper lodtensor_printer
lod_rank_table feed_fetch_method sendrecvop_rpc communicator collective_helper
${
GLOB_DISTRIBUTE_DEPS
}
graph_to_program_pass variable_helper data_feed_proto timer
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
set_source_files_properties
(
executor.cc PROPERTIES COMPILE_FLAGS
${
DISTRIBUTE_COMPILE_FLAGS
}
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
set_source_files_properties
(
executor.cc PROPERTIES COMPILE_FLAGS
${
DISTRIBUTE_COMPILE_FLAGS
}
)
else
()
cc_library
(
executor SRCS executor.cc multi_trainer.cc pipeline_trainer.cc dataset_factory.cc
dist_multi_trainer.cc trainer_factory.cc trainer.cc data_feed_factory.cc
...
...
@@ -201,7 +201,10 @@ else()
device_context scope framework_proto data_feed_proto trainer_desc_proto glog
lod_rank_table fs shell fleet_wrapper box_wrapper lodtensor_printer feed_fetch_method
graph_to_program_pass variable_helper timer
)
cc_test
(
test_naive_executor SRCS naive_executor_test.cc DEPS naive_executor elementwise_add_op
)
# TODO: Fix these unittest failed on Windows
if
(
NOT WIN32
)
cc_test
(
test_naive_executor SRCS naive_executor_test.cc DEPS naive_executor elementwise_add_op
)
endif
()
endif
()
target_link_libraries
(
executor while_op_helper executor_gc_helper recurrent_op_helper conditional_block_op_helper
)
...
...
paddle/fluid/inference/analysis/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -60,12 +60,14 @@ function(inference_analysis_test TARGET)
endif
()
endfunction
(
inference_analysis_test
)
if
(
NOT APPLE AND NOT WIN32
)
inference_analysis_test
(
test_analyzer
SRCS analyzer_tester.cc
EXTRA_DEPS reset_tensor_array paddle_fluid_shared
ARGS --inference_model_dir=
${
WORD2VEC_MODEL_DIR
}
)
else
()
elseif
(
NOT WIN32
)
# TODO: Fix this unittest failed on Windows
inference_analysis_test
(
test_analyzer
SRCS analyzer_tester.cc
EXTRA_DEPS reset_tensor_array paddle_inference_api
...
...
paddle/fluid/inference/api/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -52,18 +52,23 @@ if(WITH_TESTING)
if
(
NOT APPLE AND NOT WIN32
)
inference_base_test
(
test_api_impl SRCS api_impl_tester.cc DEPS paddle_fluid_shared
ARGS --word2vec_dirname=
${
WORD2VEC_MODEL_DIR
}
--book_dirname=
${
PYTHON_TESTS_DIR
}
/book
)
else
()
set_tests_properties
(
test_api_impl PROPERTIES DEPENDS test_image_classification
)
set_tests_properties
(
test_api_impl PROPERTIES LABELS
"RUN_TYPE=DIST"
)
elseif
(
NOT WIN32
)
# TODO: Fix this unittest failed on Windows
inference_base_test
(
test_api_impl SRCS api_impl_tester.cc DEPS
${
inference_deps
}
ARGS --word2vec_dirname=
${
WORD2VEC_MODEL_DIR
}
--book_dirname=
${
PYTHON_TESTS_DIR
}
/book
)
set_tests_properties
(
test_api_impl PROPERTIES DEPENDS test_image_classification
)
set_tests_properties
(
test_api_impl PROPERTIES LABELS
"RUN_TYPE=DIST"
)
endif
()
set_tests_properties
(
test_api_impl PROPERTIES DEPENDS test_image_classification
)
set_tests_properties
(
test_api_impl PROPERTIES LABELS
"RUN_TYPE=DIST"
)
endif
()
if
(
NOT APPLE AND NOT WIN32
)
cc_test
(
test_analysis_predictor SRCS analysis_predictor_tester.cc DEPS paddle_fluid_shared
ARGS --dirname=
${
WORD2VEC_MODEL_DIR
}
)
else
()
elseif
(
NOT WIN32
)
# TODO: Fix this unittest failed on Windows
cc_test
(
test_analysis_predictor SRCS analysis_predictor_tester.cc DEPS analysis_predictor benchmark
${
inference_deps
}
ARGS --dirname=
${
WORD2VEC_MODEL_DIR
}
)
endif
()
paddle/fluid/memory/allocation/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -27,23 +27,26 @@ else ()
set
(
AllocatorFacadeDeps
)
endif
()
if
(
WITH_GPU
)
nv_test
(
best_fit_allocator_test
SRCS best_fit_allocator_test.cc
best_fit_allocator_test.cu
DEPS best_fit_allocator
locked_allocator
cpu_allocator
cuda_allocator
device_context
memcpy
)
else
()
cc_test
(
best_fit_allocator_test
SRCS best_fit_allocator_test.cc
DEPS best_fit_allocator
locked_allocator
cpu_allocator
)
endif
()
# TODO: Fix this unittest failed on Windows
if
(
NOT WIN32
)
if
(
WITH_GPU
)
nv_test
(
best_fit_allocator_test
SRCS best_fit_allocator_test.cc
best_fit_allocator_test.cu
DEPS best_fit_allocator
locked_allocator
cpu_allocator
cuda_allocator
device_context
memcpy
)
else
()
cc_test
(
best_fit_allocator_test
SRCS best_fit_allocator_test.cc
DEPS best_fit_allocator
locked_allocator
cpu_allocator
)
endif
()
endif
(
NOT WIN32
)
list
(
APPEND AllocatorFacadeDeps cpu_allocator locked_allocator aligned_allocator retry_allocator buffered_allocator naive_best_fit_allocator auto_growth_best_fit_allocator best_fit_allocator
)
...
...
paddle/fluid/platform/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -122,7 +122,11 @@ else()
cc_library
(
profiler SRCS profiler.cc DEPS device_tracer enforce
)
cc_library
(
device_memory_aligment SRCS device_memory_aligment.cc DEPS cpu_info place
)
endif
()
cc_test
(
profiler_test SRCS profiler_test.cc DEPS profiler
)
# TODO: Fix this unittest failed on Windows
if
(
NOT WIN32
)
cc_test
(
profiler_test SRCS profiler_test.cc DEPS profiler
)
endif
(
NOT WIN32
)
nv_test
(
float16_gpu_test SRCS float16_test.cu DEPS lod_tensor
)
cc_test
(
float16_test SRCS float16_test.cc DEPS lod_tensor
)
...
...
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
4058e736
...
...
@@ -52,6 +52,17 @@ if(WIN32)
LIST
(
REMOVE_ITEM TEST_OPS test_multiprocess_reader_exception
)
LIST
(
REMOVE_ITEM TEST_OPS test_avoid_twice_initialization
)
LIST
(
REMOVE_ITEM TEST_OPS test_checkpoint_notify_op
)
# TODO: Fix these unittests failed on Windows
LIST
(
REMOVE_ITEM TEST_OPS test_debugger
)
list
(
REMOVE_ITEM TEST_OPS test_desc_clone
)
list
(
REMOVE_ITEM TEST_OPS test_fake_init_op
)
list
(
REMOVE_ITEM TEST_OPS test_hsigmoid_op
)
list
(
REMOVE_ITEM TEST_OPS test_merge_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_split_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_program_code
)
LIST
(
REMOVE_ITEM TEST_OPS test_ref_by_trainer_id_op
)
LIST
(
REMOVE_ITEM TEST_OPS test_math_op_patch_var_base
)
endif
()
if
(
NOT
${
WITH_GPU
}
)
...
...
@@ -84,6 +95,7 @@ list(REMOVE_ITEM TEST_OPS test_cond_op) # FIXME(qijun): https://github.com/Paddl
list
(
REMOVE_ITEM TEST_OPS op_test
)
# op_test is a helper python file, not a test
list
(
REMOVE_ITEM TEST_OPS decorator_helper
)
# decorator_helper is a helper python file, not a test
if
(
APPLE
)
if
(
NOT WITH_DISTRIBUTE
)
list
(
REMOVE_ITEM TEST_OPS test_desc_clone
)
...
...
@@ -349,24 +361,26 @@ endif()
py_test_modules
(
test_parallel_executor_crf MODULES test_parallel_executor_crf
)
py_test_modules
(
test_parallel_executor_transformer MODULES test_parallel_executor_transformer
)
py_test_modules
(
test_parallel_executor_transformer_auto_growth MODULES test_parallel_executor_transformer_auto_growth ENVS FLAGS_allocator_strategy=auto_growth
)
py_test_modules
(
test_layers MODULES test_layers ENVS FLAGS_cudnn_deterministic=1
)
py_test_modules
(
test_parallel_executor_seresnext_base_cpu MODULES test_parallel_executor_seresnext_base_cpu
)
py_test_modules
(
test_parallel_executor_seresnext_with_reduce_cpu MODULES test_parallel_executor_seresnext_with_reduce_cpu
)
py_test_modules
(
test_parallel_executor_seresnext_with_fuse_all_reduce_cpu MODULES test_parallel_executor_seresnext_with_fuse_all_reduce_cpu
)
py_test_modules
(
test_data_norm_op MODULES test_data_norm_op
)
py_test_modules
(
test_fuse_bn_act_pass MODULES test_fuse_bn_act_pass ENVS FLAGS_cudnn_deterministic=1 FLAGS_cudnn_batchnorm_spatial_persistent=1 FLAGS_conv_workspace_size_limit=1000
)
if
(
NOT WIN32
)
# TODO: fix these unittests failure on Windows
py_test_modules
(
test_parallel_executor_seresnext_base_cpu MODULES test_parallel_executor_seresnext_base_cpu
)
py_test_modules
(
test_parallel_executor_seresnext_with_reduce_cpu MODULES test_parallel_executor_seresnext_with_reduce_cpu
)
py_test_modules
(
test_parallel_executor_seresnext_with_fuse_all_reduce_cpu MODULES test_parallel_executor_seresnext_with_fuse_all_reduce_cpu
)
py_test_modules
(
test_layers MODULES test_layers ENVS FLAGS_cudnn_deterministic=1
)
set_tests_properties
(
test_parallel_executor_seresnext_base_cpu PROPERTIES TIMEOUT 900
)
set_tests_properties
(
test_parallel_executor_seresnext_with_reduce_cpu PROPERTIES TIMEOUT 750
)
set_tests_properties
(
test_parallel_executor_seresnext_with_fuse_all_reduce_cpu PROPERTIES TIMEOUT 750
)
py_test_modules
(
test_ir_memory_optimize_transformer MODULES test_ir_memory_optimize_transformer
)
# FIXME(zcd): temporally disable test_parallel_executor_fetch_feed in Windows CI because of the random failure.
py_test_modules
(
test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed
)
set_tests_properties
(
test_parallel_executor_fetch_feed PROPERTIES TIMEOUT 450
)
endif
()
set_tests_properties
(
test_parallel_executor_seresnext_base_cpu PROPERTIES TIMEOUT 900
)
set_tests_properties
(
test_parallel_executor_seresnext_with_reduce_cpu PROPERTIES TIMEOUT 750
)
set_tests_properties
(
test_parallel_executor_seresnext_with_fuse_all_reduce_cpu PROPERTIES TIMEOUT 750
)
add_subdirectory
(
sequence
)
add_subdirectory
(
dygraph_to_static
)
...
...
python/paddle/reader/tests/CMakeLists.txt
浏览文件 @
4058e736
py_test
(
decorator_test SRCS decorator_test.py
)
# TODO: Fix this unittest failed on Windows
if
(
NOT WIN32
)
py_test
(
decorator_test SRCS decorator_test.py
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录