Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
d22914fd
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d22914fd
编写于
9月 17, 2021
作者:
Z
Zeng Jinle
提交者:
GitHub
9月 17, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change to PADDLE_DEFINE_EXPORTED (#35841)
上级
fcfb0afe
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
30 addition
and
57 deletion
+30
-57
paddle/fluid/framework/details/reduce_op_handle.cc
paddle/fluid/framework/details/reduce_op_handle.cc
+1
-1
paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc
paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc
+8
-7
paddle/fluid/framework/ir/graph.cc
paddle/fluid/framework/ir/graph.cc
+2
-2
paddle/fluid/framework/ir/graph_helper.cc
paddle/fluid/framework/ir/graph_helper.cc
+3
-3
paddle/fluid/framework/new_executor/interpretercore.cc
paddle/fluid/framework/new_executor/interpretercore.cc
+2
-1
paddle/fluid/framework/operator.cc
paddle/fluid/framework/operator.cc
+2
-1
paddle/fluid/framework/parallel_executor.cc
paddle/fluid/framework/parallel_executor.cc
+7
-5
paddle/fluid/framework/scope.cc
paddle/fluid/framework/scope.cc
+1
-1
paddle/fluid/framework/unused_var_check.cc
paddle/fluid/framework/unused_var_check.cc
+4
-3
paddle/fluid/pybind/global_value_getter_setter.cc
paddle/fluid/pybind/global_value_getter_setter.cc
+0
-33
未找到文件。
paddle/fluid/framework/details/reduce_op_handle.cc
浏览文件 @
d22914fd
...
...
@@ -19,7 +19,7 @@
#include "paddle/fluid/framework/details/variable_visitor.h"
#include "paddle/fluid/platform/profiler.h"
DEFINE
_bool
(
PADDLE_DEFINE_EXPORTED
_bool
(
cpu_deterministic
,
false
,
"Whether to make the result of computation deterministic in CPU side."
);
...
...
paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc
浏览文件 @
d22914fd
...
...
@@ -25,13 +25,14 @@ class VarDesc;
}
// namespace framework
}
// namespace paddle
DEFINE_double
(
fuse_parameter_memory_size
,
-
1.0
,
// MBytes
PADDLE_DEFINE_EXPORTED_double
(
fuse_parameter_memory_size
,
-
1.0
,
// MBytes
"fuse_parameter_memory_size is up limited memory size(MB)"
"of one group parameters' gradient which is the input "
"of communication calling(e.g NCCLAllReduce). "
"The default value is 0, it means that "
"not set group according to memory_size."
);
DEFINE
_int32
(
PADDLE_DEFINE_EXPORTED
_int32
(
fuse_parameter_groups_size
,
1
,
"fuse_parameter_groups_size is the up limited size of one group "
"parameters' gradient. "
...
...
paddle/fluid/framework/ir/graph.cc
浏览文件 @
d22914fd
...
...
@@ -17,7 +17,7 @@ limitations under the License. */
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/operator.h"
DEFINE
_bool
(
convert_all_blocks
,
true
,
PADDLE_DEFINE_EXPORTED
_bool
(
convert_all_blocks
,
true
,
"Convert all blocks in program into SSAgraphs"
);
namespace
paddle
{
...
...
paddle/fluid/framework/ir/graph_helper.cc
浏览文件 @
d22914fd
...
...
@@ -18,7 +18,7 @@ limitations under the License. */
#include "paddle/fluid/framework/op_proto_maker.h"
DECLARE_bool
(
convert_all_blocks
);
DEFINE
_string
(
print_sub_graph_dir
,
""
,
PADDLE_DEFINE_EXPORTED
_string
(
print_sub_graph_dir
,
""
,
"FLAGS_print_sub_graph_dir is used "
"to print the nodes of sub_graphs."
);
...
...
paddle/fluid/framework/new_executor/interpretercore.cc
浏览文件 @
d22914fd
...
...
@@ -19,7 +19,8 @@
#include "paddle/fluid/framework/details/share_tensor_buffer_functor.h"
DEFINE_bool
(
new_executor_use_inplace
,
true
,
"Use inplace in new executor"
);
PADDLE_DEFINE_EXPORTED_bool
(
new_executor_use_inplace
,
true
,
"Use inplace in new executor"
);
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/operator.cc
浏览文件 @
d22914fd
...
...
@@ -47,7 +47,8 @@ class LoDTensor;
DECLARE_bool
(
benchmark
);
DECLARE_bool
(
check_nan_inf
);
DECLARE_bool
(
enable_unused_var_check
);
DEFINE_int32
(
inner_op_parallelism
,
0
,
"number of threads for inner op"
);
PADDLE_DEFINE_EXPORTED_int32
(
inner_op_parallelism
,
0
,
"number of threads for inner op"
);
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/parallel_executor.cc
浏览文件 @
d22914fd
...
...
@@ -46,10 +46,12 @@ DECLARE_double(eager_delete_tensor_gb);
#ifdef WITH_GPERFTOOLS
#include "gperftools/profiler.h"
#endif
DEFINE_string
(
pe_profile_fname
,
""
,
PADDLE_DEFINE_EXPORTED_string
(
pe_profile_fname
,
""
,
"Profiler filename for PE, which generated by gperftools."
"Only valid when compiled `WITH_PRIFILER=ON`. Empty if disable."
);
DEFINE_bool
(
enable_parallel_graph
,
false
,
PADDLE_DEFINE_EXPORTED_bool
(
enable_parallel_graph
,
false
,
"Force disable parallel graph execution mode if set false."
);
namespace
paddle
{
...
...
paddle/fluid/framework/scope.cc
浏览文件 @
d22914fd
...
...
@@ -19,7 +19,7 @@ limitations under the License. */
DECLARE_bool
(
benchmark
);
DEFINE
_bool
(
PADDLE_DEFINE_EXPORTED
_bool
(
eager_delete_scope
,
true
,
"Delete local scope eagerly. It will reduce GPU memory usage but "
"slow down the destruction of variables.(around 1% performance harm)"
);
...
...
paddle/fluid/framework/unused_var_check.cc
浏览文件 @
d22914fd
...
...
@@ -23,7 +23,8 @@ limitations under the License. */
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/platform/enforce.h"
DEFINE_bool
(
enable_unused_var_check
,
false
,
PADDLE_DEFINE_EXPORTED_bool
(
enable_unused_var_check
,
false
,
"Checking whether operator contains unused inputs, "
"especially for grad operator. It should be in unittest."
);
...
...
paddle/fluid/pybind/global_value_getter_setter.cc
浏览文件 @
d22914fd
...
...
@@ -38,27 +38,6 @@
PADDLE_FORCE_LINK_FLAG
(
free_idle_chunk
);
PADDLE_FORCE_LINK_FLAG
(
free_when_no_cache_hit
);
// debug
DECLARE_bool
(
cpu_deterministic
);
// IR
DECLARE_bool
(
convert_all_blocks
);
// executor
DECLARE_bool
(
enable_parallel_graph
);
DECLARE_string
(
pe_profile_fname
);
DECLARE_string
(
print_sub_graph_dir
);
DECLARE_bool
(
new_executor_use_inplace
);
// memory management
DECLARE_bool
(
eager_delete_scope
);
DECLARE_int32
(
fuse_parameter_groups_size
);
DECLARE_double
(
fuse_parameter_memory_size
);
// others
DECLARE_int32
(
inner_op_parallelism
);
DECLARE_bool
(
enable_unused_var_check
);
// NOTE: where are these 2 flags from?
#ifdef PADDLE_WITH_DISTRIBUTE
DECLARE_int32
(
rpc_get_thread_num
);
...
...
@@ -253,18 +232,6 @@ struct RegisterGetterSetterVisitor : public boost::static_visitor<void> {
};
static
void
RegisterGlobalVarGetterSetter
()
{
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_cpu_deterministic
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_convert_all_blocks
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_enable_parallel_graph
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_pe_profile_fname
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_print_sub_graph_dir
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_new_executor_use_inplace
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_eager_delete_scope
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_fuse_parameter_groups_size
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_fuse_parameter_memory_size
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_inner_op_parallelism
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_enable_unused_var_check
);
#ifdef PADDLE_WITH_DITRIBUTE
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_rpc_get_thread_num
);
REGISTER_PUBLIC_GLOBAL_VAR
(
FLAGS_rpc_prefetch_thread_num
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录