Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
0f3bbe10
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
0f3bbe10
编写于
4月 10, 2023
作者:
张
张春乔
提交者:
GitHub
4月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove WITH_ASCEND (#52669)
* mv WITH_ASCEND_CL * mv WITH_ASCEND * rollback * remove WITH_ASCEND * remove WITH_ASCEND
上级
f2d1f284
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
24 addition
and
109 deletion
+24
-109
CMakeLists.txt
CMakeLists.txt
+0
-4
cmake/configure.cmake
cmake/configure.cmake
+0
-4
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+1
-4
paddle/fluid/distributed/fleet_executor/test/CMakeLists.txt
paddle/fluid/distributed/fleet_executor/test/CMakeLists.txt
+1
-3
paddle/fluid/inference/tests/api/CMakeLists.txt
paddle/fluid/inference/tests/api/CMakeLists.txt
+1
-3
paddle/fluid/operators/CMakeLists.txt
paddle/fluid/operators/CMakeLists.txt
+1
-3
paddle/fluid/pybind/CMakeLists.txt
paddle/fluid/pybind/CMakeLists.txt
+0
-5
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+3
-17
python/paddle/fluid/tests/unittests/collective/CMakeLists.txt
...on/paddle/fluid/tests/unittests/collective/CMakeLists.txt
+1
-4
python/paddle/fluid/tests/unittests/collective/fleet/CMakeLists.txt
...dle/fluid/tests/unittests/collective/fleet/CMakeLists.txt
+14
-56
python/paddle/fluid/tests/unittests/distributed_passes/CMakeLists.txt
...e/fluid/tests/unittests/distributed_passes/CMakeLists.txt
+1
-3
test/asp/CMakeLists.txt
test/asp/CMakeLists.txt
+1
-3
未找到文件。
CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -54,7 +54,6 @@ option(WITH_XPU "Compile PaddlePaddle with BAIDU KUNLUN XPU" OFF)
option
(
WITH_XPU_KP
"Compile PaddlePaddle with BAIDU XPU compiler "
OFF
)
option
(
WITH_XPU_XFT
"Compile PaddlePaddle with BAIDU XPU-XFT"
OFF
)
option
(
WITH_WIN_DUMP_DBG
"Compile with windows core dump debug mode"
OFF
)
option
(
WITH_ASCEND
"Compile PaddlePaddle with ASCEND"
OFF
)
option
(
WITH_ROCM
"Compile PaddlePaddle with ROCM platform"
OFF
)
option
(
WITH_IPU
"Compile PaddlePaddle with Graphcore IPU"
OFF
)
option
(
WITH_ONNXRUNTIME
"Compile PaddlePaddle with ONNXRUNTIME"
OFF
)
...
...
@@ -74,9 +73,6 @@ endif()
if
(
WITH_GPU AND WITH_XPU_XFT
)
message
(
FATAL_ERROR
"Error when compile GPU and XPU-XFT at the same time"
)
endif
()
if
(
WITH_GPU AND WITH_ASCEND
)
message
(
FATAL_ERROR
"Error when compile GPU and ASCEND at the same time"
)
endif
()
if
(
WITH_GPU AND WITH_ROCM
)
message
(
FATAL_ERROR
"Error when compile CUDA and ROCM at the same time"
)
endif
()
...
...
cmake/configure.cmake
浏览文件 @
0f3bbe10
...
...
@@ -93,10 +93,6 @@ if(WITH_BOX_PS)
add_definitions
(
-DPADDLE_WITH_BOX_PS
)
endif
()
if
(
WITH_ASCEND
)
add_definitions
(
-DPADDLE_WITH_ASCEND
)
endif
()
if
(
WITH_ASCEND_INT64
)
add_definitions
(
-DPADDLE_WITH_ASCEND_INT64
)
endif
()
...
...
cmake/external/protobuf.cmake
浏览文件 @
0f3bbe10
...
...
@@ -234,10 +234,7 @@ function(build_protobuf TARGET_NAME BUILD_FOR_HOST)
"-Dprotobuf_MSVC_STATIC_RUNTIME=
${
MSVC_STATIC_CRT
}
"
)
endif
()
if
(
WITH_ASCEND AND NOT WITH_ASCEND_CXX11
)
set
(
PROTOBUF_REPOSITORY https://gitee.com/tianjianhe/protobuf.git
)
set
(
PROTOBUF_TAG v21.12
)
elseif
(
WITH_IPU
)
if
(
WITH_IPU
)
set
(
PROTOBUF_REPOSITORY
${
GIT_URL
}
/protocolbuffers/protobuf.git
)
set
(
PROTOBUF_TAG v21.12
)
elseif
(
WIN32
)
...
...
paddle/fluid/distributed/fleet_executor/test/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -51,9 +51,7 @@ cc_test_old(
scope
device_context
)
if
(
WITH_DISTRIBUTE
AND NOT WITH_PSLIB
AND
NOT
(
WITH_ASCEND
))
if
(
WITH_DISTRIBUTE AND NOT WITH_PSLIB
)
set_source_files_properties
(
interceptor_ping_pong_with_brpc_test.cc
PROPERTIES COMPILE_FLAGS
${
DISTRIBUTE_COMPILE_FLAGS
}
)
...
...
paddle/fluid/inference/tests/api/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -1210,9 +1210,7 @@ inference_analysis_test(
ARGS
--infer_model=
${
OCR_INSTALL_DIR
}
/model
)
if
(
WITH_DISTRIBUTE
AND WITH_PSCORE
AND
NOT
(
WITH_ASCEND
))
if
(
WITH_DISTRIBUTE AND WITH_PSCORE
)
inference_analysis_test
(
test_analyzer_dist_model
SRCS
...
...
paddle/fluid/operators/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -153,9 +153,7 @@ endif()
set
(
COMMON_OP_DEPS
${
COMMON_OP_DEPS
}
layer
)
set
(
COMMON_OP_DEPS
${
COMMON_OP_DEPS
}
tensor_formatter
)
set
(
COMMON_OP_DEPS
${
COMMON_OP_DEPS
}
op_version_registry
)
if
(
WITH_ASCEND
)
set
(
COMMON_OP_DEPS
${
COMMON_OP_DEPS
}
ascend_wrapper
)
endif
()
# FIXME(typhoonzero): operator deps may not needed.
# op_library(unsqueeze_op DEPS reshape_op)
...
...
paddle/fluid/pybind/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -172,11 +172,6 @@ if(WITH_PYTHON)
endif
()
set
(
PYBIND_DEPS
${
PYBIND_DEPS
}
processgroup_comm_utils
)
if
(
WITH_ASCEND
)
set
(
PYBIND_DEPS
${
PYBIND_DEPS
}
ascend_wrapper
)
set
(
PYBIND_SRCS
${
PYBIND_SRCS
}
ascend_wrapper_py.cc
)
endif
()
if
(
WITH_GLOO
)
set
(
PYBIND_DEPS
${
PYBIND_DEPS
}
gloo_context
)
set
(
PYBIND_SRCS
${
PYBIND_SRCS
}
gloo_context_py.cc
)
...
...
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -15,9 +15,7 @@ list(REMOVE_ITEM DIST_TEST_OPS "test_dist_op")
string
(
REPLACE
".py"
""
DIST_TEST_OPS
"
${
DIST_TEST_OPS
}
"
)
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
)
AND
NOT
(
WITH_ASCEND
))
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
))
list
(
REMOVE_ITEM DIST_TEST_OPS
"test_dist_mnist_batch_merge"
)
endif
()
list
(
APPEND DIST_TEST_OPS test_parallel_dygraph_dataparallel
)
...
...
@@ -493,9 +491,7 @@ foreach(TEST_OP ${TEST_EAGER_OPS})
py_test_modules
(
${
TEST_OP
}
MODULES
${
TEST_OP
}
)
endforeach
()
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
)
AND
NOT
(
WITH_ASCEND
))
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
))
list
(
REMOVE_ITEM TEST_OPS
"test_dist_mnist_batch_merge"
)
endif
()
...
...
@@ -507,7 +503,6 @@ py_test_modules(test_adam_op_multi_thread MODULES test_adam_op ENVS
FLAGS_inner_op_parallelism=4
)
if
(
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
OR APPLE
)
py_test_modules
(
test_warpctc_op MODULES test_warpctc_op
)
set_tests_properties
(
test_warpctc_op PROPERTIES TIMEOUT 120
)
...
...
@@ -643,9 +638,7 @@ if(WITH_DISTRIBUTE)
bash_test_modules
(
test_fleetrun START_BASH test_fleetrun.sh ENVS
PADDLE_BINARY_DIR=
${
PADDLE_BINARY_DIR
}
)
if
(
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
if
(
WITH_GPU OR WITH_XPU
)
bash_test_modules
(
test_fleet_launch_nproc START_BASH test_fleet_launch_nproc.sh ENVS
PADDLE_BINARY_DIR=
${
PADDLE_BINARY_DIR
}
)
...
...
@@ -659,13 +652,6 @@ if(WITH_DISTRIBUTE)
test_fleet_launch_cloud START_BASH test_fleet_launch_cloud.sh ENVS
PADDLE_BINARY_DIR=
${
PADDLE_BINARY_DIR
}
)
endif
()
if
(
WITH_ASCEND
)
bash_test_modules
(
test_fleet_launch_ascend START_BASH test_fleet_launch_ascend.sh ENVS
PADDLE_BINARY_DIR=
${
PADDLE_BINARY_DIR
}
)
bash_test_modules
(
test_ascend_group START_BASH test_ascend_group.sh ENVS
PADDLE_BINARY_DIR=
${
PADDLE_BINARY_DIR
}
)
endif
()
# port range (20000, 21200) is reserved for dist-ops
set
(
dist_ut_port 20001
)
...
...
python/paddle/fluid/tests/unittests/collective/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -368,10 +368,7 @@ if((WITH_GPU OR WITH_ROCM) AND (LINUX))
set_tests_properties
(
test_eager_dist_api PROPERTIES TIMEOUT
"120"
LABELS
"RUN_TYPE=DIST"
)
endif
()
if
((
WITH_GPU
OR WITH_ROCM
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_ROCM
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_gen_nccl_id_op
START_BASH
...
...
python/paddle/fluid/tests/unittests/collective/fleet/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -4,10 +4,7 @@
# and then run the command `python3 ${PADDLE_ROOT}/tools/gen_ut_cmakelists.py -f ${CURRENT_DIRECTORY}/testslist.csv`
set
(
LOCAL_ALL_ARCH ON
)
set
(
LOCAL_ALL_PLAT ON
)
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
py_test_modules
(
test_fleet_sharding_meta_optimizer MODULES
test_fleet_sharding_meta_optimizer ENVS
...
...
@@ -81,10 +78,7 @@ if(LOCAL_ALL_ARCH AND (LINUX OR WIN32))
test_fleet_fp16_allreduce_meta_optimizer ENVS
"http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_rnn_dp
START_BASH
...
...
@@ -174,10 +168,7 @@ if((WITH_GPU) AND LOCAL_ALL_PLAT)
test_parallel_dygraph_pipeline_parallel_with_virtual_stage
PROPERTIES TIMEOUT
"500"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND
(
LINUX
))
if
((
WITH_GPU OR WITH_XPU
)
AND
(
LINUX
))
py_test_modules
(
test_fleet_localsgd_meta_optimizer MODULES
test_fleet_localsgd_meta_optimizer ENVS
...
...
@@ -268,10 +259,7 @@ if(LOCAL_ALL_ARCH AND LOCAL_ALL_PLAT)
set_tests_properties
(
test_parallel_dygraph_control_flow PROPERTIES TIMEOUT
"350"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_fleet_lars_meta_optimizer
START_BASH
...
...
@@ -321,10 +309,7 @@ if(LOCAL_ALL_ARCH AND LOCAL_ALL_PLAT)
"FLAGS_communicator_send_queue_size=1;FLAGS_communicator_max_merge_var_num=1;http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_fleet_pipeline_meta_optimizer
START_BASH
...
...
@@ -335,10 +320,7 @@ if((WITH_GPU
"PADDLE_DIST_UT_PORT=21236;http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
py_test_modules
(
test_fleet_gradient_merge_meta_optimizer MODULES
test_fleet_gradient_merge_meta_optimizer ENVS
...
...
@@ -354,10 +336,7 @@ if(LOCAL_ALL_ARCH AND (LINUX OR WIN32))
test_fleet_meta_optimizer_base MODULES test_fleet_meta_optimizer_base ENVS
"http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_fleet_raw_program_meta_optimizer
START_BASH
...
...
@@ -433,10 +412,7 @@ if(LOCAL_ALL_ARCH AND LOCAL_ALL_PLAT)
set_tests_properties
(
test_parallel_dygraph_unused_variables PROPERTIES TIMEOUT
"350"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND
(
LINUX
))
if
((
WITH_GPU OR WITH_XPU
)
AND
(
LINUX
))
py_test_modules
(
test_fleet_lamb_meta_optimizer MODULES test_fleet_lamb_meta_optimizer ENVS
"http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
...
...
@@ -461,10 +437,7 @@ if(LOCAL_ALL_ARCH AND LOCAL_ALL_PLAT)
set_tests_properties
(
test_parallel_dygraph_no_sync_gradient_check
PROPERTIES TIMEOUT
"60"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_fleet_pipeline_meta_optimizer_with_recompute
START_BASH
...
...
@@ -475,10 +448,7 @@ if((WITH_GPU
"PADDLE_DIST_UT_PORT=21252;http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND
(
LINUX OR WIN32
))
if
((
WITH_GPU OR WITH_XPU
)
AND
(
LINUX OR WIN32
))
py_test_modules
(
test_fleet_hybrid_meta_optimizer MODULES test_fleet_hybrid_meta_optimizer
ENVS
...
...
@@ -526,10 +496,7 @@ if((WITH_ROCM) AND LOCAL_ALL_PLAT)
set_tests_properties
(
test_parallel_dygraph_sparse_embedding PROPERTIES TIMEOUT
"200"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
py_test_modules
(
test_fleet_amp_meta_optimizer MODULES test_fleet_amp_meta_optimizer ENVS
"http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
...
...
@@ -581,10 +548,7 @@ if(LOCAL_ALL_ARCH AND LOCAL_ALL_PLAT)
)
set_tests_properties
(
test_auto_parallel_parallelizer PROPERTIES TIMEOUT
"120"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND
(
LINUX OR WIN32
))
if
((
WITH_GPU OR WITH_XPU
)
AND
(
LINUX OR WIN32
))
py_test_modules
(
test_fleet_recompute_meta_optimizer MODULES
test_fleet_recompute_meta_optimizer ENVS
...
...
@@ -595,10 +559,7 @@ if(LOCAL_ALL_ARCH AND (LINUX OR WIN32))
test_fleet_private_function MODULES test_fleet_private_function ENVS
"http_proxy=;https_proxy=;PYTHONPATH=../..:
${
PADDLE_BINARY_DIR
}
/python"
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND LOCAL_ALL_PLAT
)
if
((
WITH_GPU OR WITH_XPU
)
AND LOCAL_ALL_PLAT
)
bash_test_modules
(
test_new_group
START_BASH
...
...
@@ -608,10 +569,7 @@ if((WITH_GPU
ENVS
"PADDLE_DIST_UT_PORT=21268;http_proxy=;https_proxy="
)
endif
()
if
((
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
AND
(
LINUX
))
if
((
WITH_GPU OR WITH_XPU
)
AND
(
LINUX
))
bash_test_modules
(
test_c_comm_init_op
START_BASH
...
...
python/paddle/fluid/tests/unittests/distributed_passes/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -4,9 +4,7 @@ file(
"test_*.py"
)
string
(
REPLACE
".py"
""
TEST_OPS
"
${
TEST_OPS
}
"
)
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
)
AND
NOT
(
WITH_ASCEND
))
if
((
NOT WITH_GPU
)
AND
(
NOT WITH_XPU
))
list
(
REMOVE_ITEM TEST_OPS
"test_dist_fuse_adam_pass"
)
list
(
REMOVE_ITEM TEST_OPS
"test_dist_fuse_all_reduce_pass"
)
list
(
REMOVE_ITEM TEST_OPS
"test_dist_fuse_bn_act_pass"
)
...
...
test/asp/CMakeLists.txt
浏览文件 @
0f3bbe10
...
...
@@ -24,9 +24,7 @@ endif()
if
((
WITH_DISTRIBUTE
)
AND
(
NOT WIN32
)
AND
(
NOT APPLE
))
if
(
WITH_GPU
OR WITH_XPU
OR WITH_ASCEND
)
if
(
WITH_GPU OR WITH_XPU
)
py_test_modules
(
test_fleet_with_asp_sharding MODULES
test_fleet_with_asp_sharding ENVS
${
dist_ENVS
}
)
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录