Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
1ac28b6b
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看板
未验证
提交
1ac28b6b
编写于
5月 18, 2023
作者:
C
co63oc
提交者:
GitHub
5月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos in executor_statistics.cc (#53917)
上级
4f07b653
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
paddle/fluid/framework/new_executor/executor_statistics.cc
paddle/fluid/framework/new_executor/executor_statistics.cc
+7
-7
未找到文件。
paddle/fluid/framework/new_executor/executor_statistics.cc
浏览文件 @
1ac28b6b
...
@@ -181,8 +181,8 @@ void StatisticsEngine::InitStdEvents() {
...
@@ -181,8 +181,8 @@ void StatisticsEngine::InitStdEvents() {
names_
.
push_back
(
"CplusplusEnd"
);
names_
.
push_back
(
"CplusplusEnd"
);
name2idx_
[
"RunOp"
]
=
names_
.
size
();
name2idx_
[
"RunOp"
]
=
names_
.
size
();
names_
.
push_back
(
"RunOp"
);
names_
.
push_back
(
"RunOp"
);
name2idx_
[
"L
ua
nchKernel"
]
=
names_
.
size
();
name2idx_
[
"L
au
nchKernel"
]
=
names_
.
size
();
names_
.
push_back
(
"L
ua
nchKernel"
);
names_
.
push_back
(
"L
au
nchKernel"
);
name2idx_
[
"OpCompute"
]
=
names_
.
size
();
name2idx_
[
"OpCompute"
]
=
names_
.
size
();
names_
.
push_back
(
"OpCompute"
);
names_
.
push_back
(
"OpCompute"
);
name2idx_
[
"OpInfershape"
]
=
names_
.
size
();
name2idx_
[
"OpInfershape"
]
=
names_
.
size
();
...
@@ -227,7 +227,7 @@ void StatisticsEngine::InitInnerthreadPriorityForStdEvents() {
...
@@ -227,7 +227,7 @@ void StatisticsEngine::InitInnerthreadPriorityForStdEvents() {
void
StatisticsEngine
::
InitInterthreadPriorityForStdEvents
()
{
void
StatisticsEngine
::
InitInterthreadPriorityForStdEvents
()
{
int
prio
=
0
;
int
prio
=
0
;
priorities_
[
name2idx_
[
"L
ua
nchKernel"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"L
au
nchKernel"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"AllocateDeviceMem"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"AllocateDeviceMem"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"FreeDeviceMem"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"FreeDeviceMem"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"ThreadpoolAddTask"
]].
interthread_priority
=
++
prio
;
priorities_
[
name2idx_
[
"ThreadpoolAddTask"
]].
interthread_priority
=
++
prio
;
...
@@ -459,11 +459,11 @@ int StatisticsEngine::Stat(const platform::NodeTrees& trees) {
...
@@ -459,11 +459,11 @@ int StatisticsEngine::Stat(const platform::NodeTrees& trees) {
python_end
.
total_time
=
totol
.
total_time
-
cplusplus_end
.
total_time
;
python_end
.
total_time
=
totol
.
total_time
-
cplusplus_end
.
total_time
;
python_end
.
count
=
cplusplus_end
.
count
+
1
;
python_end
.
count
=
cplusplus_end
.
count
+
1
;
auto
&
l
uanch_kernel
=
statistics_
[
name2idx_
[
"Lua
nchKernel"
]];
auto
&
l
aunch_kernel
=
statistics_
[
name2idx_
[
"Lau
nchKernel"
]];
const
auto
&
op_compute
=
statistics_
[
name2idx_
[
"OpCompute"
]];
const
auto
&
op_compute
=
statistics_
[
name2idx_
[
"OpCompute"
]];
const
auto
&
allocate
=
statistics_
[
name2idx_
[
"AllocateDeviceMem"
]];
const
auto
&
allocate
=
statistics_
[
name2idx_
[
"AllocateDeviceMem"
]];
l
ua
nch_kernel
.
total_time
=
op_compute
.
total_time
-
allocate
.
total_time
;
l
au
nch_kernel
.
total_time
=
op_compute
.
total_time
-
allocate
.
total_time
;
l
ua
nch_kernel
.
count
=
op_compute
.
count
;
l
au
nch_kernel
.
count
=
op_compute
.
count
;
if
(
executor_type_
!=
ExecutorType
::
EXECUTOR
&&
if
(
executor_type_
!=
ExecutorType
::
EXECUTOR
&&
statistics_
[
name2idx_
[
"ThreadpoolAddTask"
]].
count
==
0
)
{
statistics_
[
name2idx_
[
"ThreadpoolAddTask"
]].
count
==
0
)
{
...
@@ -536,7 +536,7 @@ int StatisticsEngine::MergeInnerthreadEvents(
...
@@ -536,7 +536,7 @@ int StatisticsEngine::MergeInnerthreadEvents(
if
(
names_
[
evt
.
evt_idx
]
==
"Total"
)
{
if
(
names_
[
evt
.
evt_idx
]
==
"Total"
)
{
evt
.
evt_idx
=
name2idx_
[
"PythonEnd"
];
evt
.
evt_idx
=
name2idx_
[
"PythonEnd"
];
}
else
if
(
names_
[
evt
.
evt_idx
]
==
"OpCompute"
)
{
}
else
if
(
names_
[
evt
.
evt_idx
]
==
"OpCompute"
)
{
evt
.
evt_idx
=
name2idx_
[
"L
ua
nchKernel"
];
evt
.
evt_idx
=
name2idx_
[
"L
au
nchKernel"
];
}
}
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录