Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2d6d6fa1
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看板
未验证
提交
2d6d6fa1
编写于
1月 30, 2022
作者:
L
Leo Chen
提交者:
GitHub
1月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete FLAGS_run_pten_kernel (#39330)
上级
aecf9967
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
0 addition
and
41 deletion
+0
-41
paddle/fluid/eager/legacy/prepared_operator.cc
paddle/fluid/eager/legacy/prepared_operator.cc
+0
-1
paddle/fluid/eager/tests/performance_tests/benchmark_eager_cpu.cc
...luid/eager/tests/performance_tests/benchmark_eager_cpu.cc
+0
-5
paddle/fluid/eager/tests/performance_tests/benchmark_eager_cuda.cc
...uid/eager/tests/performance_tests/benchmark_eager_cuda.cc
+0
-4
paddle/fluid/eager/tests/performance_tests/benchmark_fluid_cpu.cc
...luid/eager/tests/performance_tests/benchmark_fluid_cpu.cc
+0
-5
paddle/fluid/eager/tests/performance_tests/benchmark_fluid_cuda.cc
...uid/eager/tests/performance_tests/benchmark_fluid_cuda.cc
+0
-5
paddle/fluid/framework/custom_kernel.cc
paddle/fluid/framework/custom_kernel.cc
+0
-6
paddle/fluid/framework/new_executor/interpretercore_util.cc
paddle/fluid/framework/new_executor/interpretercore_util.cc
+0
-1
paddle/fluid/framework/operator.cc
paddle/fluid/framework/operator.cc
+0
-1
paddle/fluid/imperative/prepared_operator.cc
paddle/fluid/imperative/prepared_operator.cc
+0
-1
paddle/fluid/platform/flags.cc
paddle/fluid/platform/flags.cc
+0
-12
未找到文件。
paddle/fluid/eager/legacy/prepared_operator.cc
浏览文件 @
2d6d6fa1
...
...
@@ -24,7 +24,6 @@
#include "paddle/fluid/platform/device/xpu/xpu_op_list.h"
#endif
DECLARE_bool
(
check_nan_inf
);
DECLARE_bool
(
run_pten_kernel
);
namespace
egr
{
namespace
legacy
{
...
...
paddle/fluid/eager/tests/performance_tests/benchmark_eager_cpu.cc
浏览文件 @
2d6d6fa1
...
...
@@ -36,11 +36,6 @@
using
namespace
egr
;
// NOLINT
using
namespace
egr_utils_api
;
// NOLINT
// Disable pten path
DECLARE_bool
(
run_pten_kernel
);
TEST
(
Benchmark
,
Init
)
{
FLAGS_run_pten_kernel
=
false
;
}
TEST
(
Benchmark
,
EagerScaleCPU
)
{
// Prepare Device Contexts
eager_test
::
InitEnv
(
paddle
::
platform
::
CPUPlace
());
...
...
paddle/fluid/eager/tests/performance_tests/benchmark_eager_cuda.cc
浏览文件 @
2d6d6fa1
...
...
@@ -35,10 +35,6 @@
using
namespace
egr
;
// NOLINT
using
namespace
egr_utils_api
;
// NOLINT
DECLARE_bool
(
run_pten_kernel
);
TEST
(
Benchmark
,
Init
)
{
FLAGS_run_pten_kernel
=
false
;
}
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
TEST
(
Benchmark
,
EagerScaleCUDA
)
{
...
...
paddle/fluid/eager/tests/performance_tests/benchmark_fluid_cpu.cc
浏览文件 @
2d6d6fa1
...
...
@@ -34,11 +34,6 @@
#include "gperftools/profiler.h"
#endif
// Disable pten path
DECLARE_bool
(
run_pten_kernel
);
TEST
(
Benchmark
,
Init
)
{
FLAGS_run_pten_kernel
=
false
;
}
namespace
paddle
{
namespace
imperative
{
...
...
paddle/fluid/eager/tests/performance_tests/benchmark_fluid_cuda.cc
浏览文件 @
2d6d6fa1
...
...
@@ -34,11 +34,6 @@
#include "gperftools/profiler.h"
#endif
// Disable pten path
DECLARE_bool
(
run_pten_kernel
);
TEST
(
Benchmark
,
Init
)
{
FLAGS_run_pten_kernel
=
false
;
}
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
namespace
paddle
{
...
...
paddle/fluid/framework/custom_kernel.cc
浏览文件 @
2d6d6fa1
...
...
@@ -29,8 +29,6 @@ limitations under the License. */
#include "paddle/pten/core/kernel_context.h"
#include "paddle/pten/core/kernel_registry.h"
DECLARE_bool
(
run_pten_kernel
);
namespace
paddle
{
namespace
framework
{
...
...
@@ -279,10 +277,6 @@ static void RunKernelFunc(pten::KernelContext* ctx,
void
RegisterKernelWithMetaInfo
(
const
std
::
vector
<
OpKernelInfo
>&
op_kernel_infos
)
{
PADDLE_ENFORCE_EQ
(
FLAGS_run_pten_kernel
,
true
,
platform
::
errors
::
Unimplemented
(
"Custom Kernel depends on pten kernel enabled,"
));
for
(
size_t
i
=
0
;
i
<
op_kernel_infos
.
size
();
++
i
)
{
auto
&
kernel_info
=
op_kernel_infos
[
i
];
auto
op_type
=
OpKernelInfoHelper
::
GetOpName
(
kernel_info
);
...
...
paddle/fluid/framework/new_executor/interpretercore_util.cc
浏览文件 @
2d6d6fa1
...
...
@@ -24,7 +24,6 @@
PADDLE_DEFINE_EXPORTED_bool
(
new_executor_sequential_run
,
false
,
"Enable sequential execution for standalone executor, used for debug"
);
DECLARE_bool
(
run_pten_kernel
);
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/operator.cc
浏览文件 @
2d6d6fa1
...
...
@@ -56,7 +56,6 @@ DECLARE_bool(check_nan_inf);
DECLARE_bool
(
enable_unused_var_check
);
PADDLE_DEFINE_EXPORTED_int32
(
inner_op_parallelism
,
0
,
"number of threads for inner op"
);
DECLARE_bool
(
run_pten_kernel
);
DECLARE_bool
(
run_kp_kernel
);
namespace
paddle
{
...
...
paddle/fluid/imperative/prepared_operator.cc
浏览文件 @
2d6d6fa1
...
...
@@ -29,7 +29,6 @@
#include "paddle/fluid/platform/profiler.h"
DECLARE_bool
(
check_nan_inf
);
DECLARE_bool
(
run_pten_kernel
);
DECLARE_bool
(
benchmark
);
DECLARE_bool
(
run_kp_kernel
);
...
...
paddle/fluid/platform/flags.cc
浏览文件 @
2d6d6fa1
...
...
@@ -687,18 +687,6 @@ PADDLE_DEFINE_EXPORTED_bool(
apply_pass_to_program
,
false
,
"It controls whether to apply IR pass to program when using Fleet APIs"
);
/**
* Pt kernel related FLAG
* Name: FLAGS_run_pten_kernel
* Since Version: 2.3.0
* Value Range: bool, default=false
* Example: FLAGS_run_pten_kernel=true would use the pt kernel to compute in the
* Op.
* Note:
*/
PADDLE_DEFINE_EXPORTED_bool
(
run_pten_kernel
,
true
,
"It controls whether to use pten kernel"
);
/**
* KP kernel related FLAG
* Name: FLAGS_run_kp_kernel
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录