Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
86694ce3
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看板
未验证
提交
86694ce3
编写于
7月 06, 2023
作者:
X
XiaociZhang
提交者:
GitHub
7月 06, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "[XPU] fix the dataloader problem in RDMA env (#54150)" (#55150)
This reverts commit
15c87528
.
上级
96ee44b7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
16 deletion
+3
-16
cmake/external/xpu.cmake
cmake/external/xpu.cmake
+2
-1
python/paddle/io/dataloader/dataloader_iter.py
python/paddle/io/dataloader/dataloader_iter.py
+1
-15
未找到文件。
cmake/external/xpu.cmake
浏览文件 @
86694ce3
...
@@ -134,7 +134,8 @@ ExternalProject_Add(
...
@@ -134,7 +134,8 @@ ExternalProject_Add(
${
CMAKE_SOURCE_DIR
}
/tools/xpu/pack_paddle_depence.sh
${
XPU_XRE_URL
}
${
CMAKE_SOURCE_DIR
}
/tools/xpu/pack_paddle_depence.sh
${
XPU_XRE_URL
}
${
XPU_XRE_DIR_NAME
}
${
XPU_XDNN_URL
}
${
XPU_XDNN_DIR_NAME
}
${
XPU_XCCL_URL
}
${
XPU_XRE_DIR_NAME
}
${
XPU_XDNN_URL
}
${
XPU_XDNN_DIR_NAME
}
${
XPU_XCCL_URL
}
${
XPU_XCCL_DIR_NAME
}
&& wget
${
XPU_XFT_GET_DEPENCE_URL
}
&& bash
${
XPU_XCCL_DIR_NAME
}
&& wget
${
XPU_XFT_GET_DEPENCE_URL
}
&& bash
get_xft_dependence.sh
${
XPU_XFT_URL
}
${
XPU_XFT_DIR_NAME
}
&& bash
get_xft_dependence.sh
${
XPU_XFT_URL
}
${
XPU_XFT_DIR_NAME
}
&&
WITH_XPTI=
${
WITH_XPTI
}
bash
${
CMAKE_SOURCE_DIR
}
/tools/xpu/get_xpti_dependence.sh
${
XPU_XPTI_URL
}
${
CMAKE_SOURCE_DIR
}
/tools/xpu/get_xpti_dependence.sh
${
XPU_XPTI_URL
}
${
XPU_XPTI_DIR_NAME
}
${
XPU_XPTI_DIR_NAME
}
DOWNLOAD_NO_PROGRESS 1
DOWNLOAD_NO_PROGRESS 1
...
...
python/paddle/io/dataloader/dataloader_iter.py
浏览文件 @
86694ce3
...
@@ -427,21 +427,7 @@ class _DataLoaderIterMultiProcess(_DataLoaderIterBase):
...
@@ -427,21 +427,7 @@ class _DataLoaderIterMultiProcess(_DataLoaderIterBase):
self
.
_shutdown
=
False
self
.
_shutdown
=
False
def
_init_workers
(
self
):
def
_init_workers
(
self
):
# NOTE(zhangxiaoci): When trained in XPU multi-node RDMA environment, an unexpected
from
paddle.incubate
import
multiprocessing
# segmentfault will be raised in dataloader process, where the traceback goes all
# back to a runtime error that dataloader workers exit unexpectedly. Similar problems
# have been discussed that lead to a misbehavior of OpenCV working in multiprocessing
# environment. A possible solution is to change default 'fork' mode of multiprocessing
# start method to 'spawn'. See https://stackoverflow.com/questions/54013846 for details.
# NOTE(zhangxiaoci): Replace multiprocessing with multiprocess since in some training
# environments the former will raise 'AttributeError: Can't pickle local object xxx',
# which is a side effect of changing the default start method.
if
paddle
.
is_compiled_with_xpu
():
import
multiprocess
as
multiprocessing
multiprocessing
.
set_start_method
(
'spawn'
,
force
=
True
)
else
:
from
paddle.incubate
import
multiprocessing
# multiprocess worker and indice queue list initial as empty
# multiprocess worker and indice queue list initial as empty
self
.
_workers
=
[]
self
.
_workers
=
[]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录