Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
52607cf8
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看板
未验证
提交
52607cf8
编写于
7月 05, 2022
作者:
R
Ruibiao Chen
提交者:
GitHub
7月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove header file including for boost (#44052)
上级
30038ba3
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
22 addition
and
104 deletion
+22
-104
paddle/fluid/framework/feed_fetch_method.cc
paddle/fluid/framework/feed_fetch_method.cc
+0
-1
paddle/fluid/framework/feed_fetch_type.h
paddle/fluid/framework/feed_fetch_type.h
+0
-1
paddle/fluid/framework/ir/cost_model.h
paddle/fluid/framework/ir/cost_model.h
+0
-1
paddle/fluid/framework/ir/graph.h
paddle/fluid/framework/ir/graph.h
+1
-1
paddle/fluid/framework/ir/pass.h
paddle/fluid/framework/ir/pass.h
+1
-1
paddle/fluid/framework/op_version_registry.h
paddle/fluid/framework/op_version_registry.h
+1
-0
paddle/fluid/framework/operator.h
paddle/fluid/framework/operator.h
+1
-1
paddle/fluid/framework/tuple.h
paddle/fluid/framework/tuple.h
+0
-1
paddle/fluid/framework/type_defs.h
paddle/fluid/framework/type_defs.h
+1
-1
paddle/fluid/inference/analysis/argument.h
paddle/fluid/inference/analysis/argument.h
+1
-1
paddle/fluid/memory/stats.cc
paddle/fluid/memory/stats.cc
+1
-1
paddle/fluid/operators/controlflow/op_variant.h
paddle/fluid/operators/controlflow/op_variant.h
+0
-1
paddle/fluid/operators/controlflow/recurrent_op_helper.h
paddle/fluid/operators/controlflow/recurrent_op_helper.h
+1
-1
paddle/fluid/operators/controlflow/while_op_helper.h
paddle/fluid/operators/controlflow/while_op_helper.h
+0
-1
paddle/fluid/operators/jit/benchmark.cc
paddle/fluid/operators/jit/benchmark.cc
+0
-1
paddle/fluid/operators/jit/registry.h
paddle/fluid/operators/jit/registry.h
+1
-1
paddle/fluid/operators/math/matrix_bit_code.h
paddle/fluid/operators/math/matrix_bit_code.h
+1
-1
paddle/fluid/platform/enforce.h
paddle/fluid/platform/enforce.h
+1
-1
paddle/fluid/platform/flags.h
paddle/fluid/platform/flags.h
+1
-1
paddle/fluid/platform/monitor.h
paddle/fluid/platform/monitor.h
+2
-0
paddle/fluid/platform/place.h
paddle/fluid/platform/place.h
+1
-1
paddle/fluid/platform/variant.h
paddle/fluid/platform/variant.h
+0
-53
paddle/fluid/pybind/data_set_py.cc
paddle/fluid/pybind/data_set_py.cc
+1
-1
paddle/fluid/pybind/fleet_wrapper_py.cc
paddle/fluid/pybind/fleet_wrapper_py.cc
+1
-1
paddle/fluid/pybind/global_value_getter_setter.cc
paddle/fluid/pybind/global_value_getter_setter.cc
+1
-0
paddle/fluid/pybind/metrics_py.cc
paddle/fluid/pybind/metrics_py.cc
+1
-1
paddle/fluid/pybind/nccl_wrapper_py.cc
paddle/fluid/pybind/nccl_wrapper_py.cc
+1
-1
paddle/fluid/pybind/protobuf.h
paddle/fluid/pybind/protobuf.h
+0
-1
paddle/utils/tribool.h
paddle/utils/tribool.h
+1
-24
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py
...le/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py
+0
-1
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
...ddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
+0
-1
tools/prune_for_jetson.py
tools/prune_for_jetson.py
+1
-1
未找到文件。
paddle/fluid/framework/feed_fetch_method.cc
浏览文件 @
52607cf8
...
...
@@ -14,7 +14,6 @@ limitations under the License. */
#include "paddle/fluid/framework/feed_fetch_method.h"
#include <boost/variant.hpp>
#include <string>
#include "glog/logging.h"
...
...
paddle/fluid/framework/feed_fetch_type.h
浏览文件 @
52607cf8
...
...
@@ -19,7 +19,6 @@ limitations under the License. */
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/lod_tensor_array.h"
#include "paddle/fluid/framework/string_array.h"
#include "paddle/fluid/platform/variant.h"
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/ir/cost_model.h
浏览文件 @
52607cf8
...
...
@@ -27,7 +27,6 @@
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/platform/profiler.h"
#include "paddle/fluid/platform/profiler/event_tracing.h"
#include "paddle/fluid/platform/variant.h"
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/ir/graph.h
浏览文件 @
52607cf8
...
...
@@ -25,7 +25,7 @@ limitations under the License. */
#include "paddle/fluid/framework/ir/node.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/utils/any.h"
DECLARE_bool
(
convert_all_blocks
);
...
...
paddle/fluid/framework/ir/pass.h
浏览文件 @
52607cf8
...
...
@@ -25,7 +25,7 @@ limitations under the License. */
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/node.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/
fluid/platform/variant
.h"
#include "paddle/
phi/core/macros
.h"
#include "paddle/utils/any.h"
namespace
paddle
{
...
...
paddle/fluid/framework/op_version_registry.h
浏览文件 @
52607cf8
...
...
@@ -22,6 +22,7 @@ limitations under the License. */
#include "paddle/fluid/framework/op_version_proto.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/phi/core/macros.h"
#include "paddle/utils/none.h"
namespace
paddle
{
...
...
paddle/fluid/framework/operator.h
浏览文件 @
52607cf8
...
...
@@ -38,7 +38,7 @@ limitations under the License. */
#include "paddle/fluid/framework/unused_var_check.h"
#include "paddle/fluid/memory/malloc.h"
#include "paddle/fluid/platform/device_context.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/phi/core/compat/arg_map_context.h"
#include "paddle/phi/core/compat/op_utils.h"
#include "paddle/phi/core/kernel_factory.h"
...
...
paddle/fluid/framework/tuple.h
浏览文件 @
52607cf8
...
...
@@ -22,7 +22,6 @@ limitations under the License. */
#include "paddle/fluid/framework/tensor.h"
#include "paddle/fluid/framework/var_desc.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/variant.h"
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/framework/type_defs.h
浏览文件 @
52607cf8
...
...
@@ -23,7 +23,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/imperative/type_defs.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/utils/blank.h"
#include "paddle/utils/small_vector.h"
#include "paddle/utils/variant.h"
...
...
paddle/fluid/inference/analysis/argument.h
浏览文件 @
52607cf8
...
...
@@ -35,7 +35,7 @@
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/phi/common/data_type.h"
namespace
paddle
{
...
...
paddle/fluid/memory/stats.cc
浏览文件 @
52607cf8
...
...
@@ -15,7 +15,7 @@ limitations under the License. */
#include "paddle/fluid/memory/stats.h"
#include "paddle/fluid/memory/allocation/spin_lock.h"
#include "paddle/
fluid/platform/variant
.h"
#include "paddle/
phi/core/macros
.h"
namespace
paddle
{
namespace
memory
{
...
...
paddle/fluid/operators/controlflow/op_variant.h
浏览文件 @
52607cf8
...
...
@@ -18,7 +18,6 @@
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/platform/variant.h"
namespace
paddle
{
namespace
framework
{
...
...
paddle/fluid/operators/controlflow/recurrent_op_helper.h
浏览文件 @
52607cf8
...
...
@@ -23,7 +23,7 @@
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/operators/controlflow/op_variant.h"
#include "paddle/fluid/operators/recurrent_op.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/string/string_helper.h"
namespace
paddle
{
...
...
paddle/fluid/operators/controlflow/while_op_helper.h
浏览文件 @
52607cf8
...
...
@@ -20,7 +20,6 @@
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/operators/controlflow/op_variant.h"
#include "paddle/fluid/platform/variant.h"
namespace
phi
{
class
DenseTensor
;
...
...
paddle/fluid/operators/jit/benchmark.cc
浏览文件 @
52607cf8
...
...
@@ -22,7 +22,6 @@
#include "paddle/fluid/platform/device_tracer.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h" // for UNUSED
DEFINE_int32
(
burning
,
10
,
"Burning times."
);
DEFINE_int32
(
repeat
,
3000
,
"Repeat times."
);
...
...
paddle/fluid/operators/jit/registry.h
浏览文件 @
52607cf8
...
...
@@ -22,7 +22,7 @@
#include "paddle/fluid/operators/jit/kernel_base.h"
#include "paddle/fluid/operators/jit/kernel_pool.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/
fluid/platform/variant.h" // for UNUSED
#include "paddle/
phi/core/macros.h"
namespace
paddle
{
namespace
operators
{
...
...
paddle/fluid/operators/math/matrix_bit_code.h
浏览文件 @
52607cf8
...
...
@@ -23,7 +23,7 @@ limitations under the License. */
#include "paddle/fluid/framework/selected_rows_utils.h"
#include "paddle/fluid/framework/tensor.h"
#include "paddle/fluid/platform/device_context.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/phi/kernels/funcs/blas/blas.h"
#if defined(_WIN32)
...
...
paddle/fluid/platform/enforce.h
浏览文件 @
52607cf8
...
...
@@ -66,7 +66,7 @@ limitations under the License. */
#include "glog/logging.h"
#include "paddle/fluid/platform/errors.h"
#include "paddle/fluid/platform/macros.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/string/printf.h"
#include "paddle/fluid/string/to_string.h"
#include "paddle/phi/backends/dynload/port.h"
...
...
paddle/fluid/platform/flags.h
浏览文件 @
52607cf8
...
...
@@ -21,7 +21,7 @@
#include "gflags/gflags.h"
#include "paddle/fluid/platform/macros.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/utils/variant.h"
namespace
paddle
{
...
...
paddle/fluid/platform/monitor.h
浏览文件 @
52607cf8
...
...
@@ -26,6 +26,8 @@
#include "glog/logging.h"
#include "paddle/phi/core/macros.h"
namespace
paddle
{
namespace
platform
{
...
...
paddle/fluid/platform/place.h
浏览文件 @
52607cf8
...
...
@@ -18,7 +18,7 @@ limitations under the License. */
// #include <vector>
#include "paddle/fluid/platform/enforce.h"
//
#include "paddle/fluid/platform/variant.h"
//
#ifdef PADDLE_WITH_ASCEND_CL
#include "paddle/fluid/platform/device/npu/enforce_npu.h"
#endif
...
...
paddle/fluid/platform/variant.h
已删除
100644 → 0
浏览文件 @
30038ba3
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#pragma once
// Boost 1.41.0 requires __CUDACC_VER__, but in CUDA 9 __CUDACC_VER__
// is removed, so we have to manually define __CUDACC_VER__ instead.
// For details, please refer to
// https://github.com/PaddlePaddle/Paddle/issues/6626
#if defined(__CUDACC__) && defined(__CUDACC_VER_MAJOR__)
#undef __CUDACC_VER__
#define __CUDACC_VER__ \
__CUDACC_VER_BUILD__ + __CUDACC_VER_MAJOR__ * 10000 + \
__CUDACC_VER_MINOR__ * 100
#endif
#include "boost/config.hpp"
// Because Boost 1.41.0's variadic templates has bug on nvcc, boost
// will disable variadic template support in NVCC mode. Define
// BOOST_NO_CXX11_VARIADIC_TEMPLATES on gcc/clang to generate same
// function symbols. For details,
// https://github.com/PaddlePaddle/Paddle/issues/3386
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
#endif
#endif
#include <boost/mpl/comparison.hpp>
#include <boost/mpl/less_equal.hpp>
#include "paddle/utils/any.h"
#include "paddle/utils/optional.h"
// some platform-independent defintion
#if defined(_WIN32)
#define UNUSED
#define __builtin_expect(EXP, C) (EXP)
#else
#define UNUSED __attribute__((unused))
#endif
paddle/fluid/pybind/data_set_py.cc
浏览文件 @
52607cf8
...
...
@@ -35,7 +35,7 @@ limitations under the License. */
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/io.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/pybind/data_set_py.h"
namespace
py
=
pybind11
;
...
...
paddle/fluid/pybind/fleet_wrapper_py.cc
浏览文件 @
52607cf8
...
...
@@ -33,7 +33,7 @@ limitations under the License. */
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/io.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/pybind/fleet_wrapper_py.h"
namespace
py
=
pybind11
;
...
...
paddle/fluid/pybind/global_value_getter_setter.cc
浏览文件 @
52607cf8
...
...
@@ -27,6 +27,7 @@
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/errors.h"
#include "paddle/fluid/platform/macros.h"
#include "paddle/phi/core/macros.h"
#include "pybind11/stl.h"
// FIXME(zengjinle): these 2 flags may be removed by the linker when compiling
...
...
paddle/fluid/pybind/metrics_py.cc
浏览文件 @
52607cf8
...
...
@@ -27,7 +27,7 @@ limitations under the License. */
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/io.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/pybind/metrics_py.h"
namespace
py
=
pybind11
;
...
...
paddle/fluid/pybind/nccl_wrapper_py.cc
浏览文件 @
52607cf8
...
...
@@ -33,7 +33,7 @@ limitations under the License. */
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/io.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h"
#include "paddle/fluid/pybind/nccl_wrapper_py.h"
namespace
py
=
pybind11
;
...
...
paddle/fluid/pybind/protobuf.h
浏览文件 @
52607cf8
...
...
@@ -22,7 +22,6 @@ typedef SSIZE_T ssize_t;
#include <fstream>
#include <vector>
#include "paddle/fluid/platform/variant.h"
#include "pybind11/numpy.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
...
...
paddle/utils/tribool.h
浏览文件 @
52607cf8
...
...
@@ -18,6 +18,7 @@
// 2. remove the depending boost header files
// 3. remove the dummy_ in indeterminate_t, which is specially implemented for
// Borland C++ Builder
// 4. remove unnecessary macro BOOST_TRIBOOL_THIRD_STATE
// Three-state boolean logic library
...
...
@@ -437,27 +438,3 @@ namespace paddle {
using
logic
::
indeterminate
;
using
logic
::
tribool
;
}
// namespace paddle
/**
* \brief Declare a new name for the third state of a tribool
*
* Use this macro to declare a new name for the third state of a
* tribool. This state can have any number of new names (in addition
* to \c indeterminate), all of which will be equivalent. The new name will be
* placed in the namespace in which the macro is expanded.
*
* Example:
* PADDLE_TRIBOOL_THIRD_STATE(true_or_false)
*
* tribool x(true_or_false);
* // potentially set x
* if (true_or_false(x)) {
* // don't know what x is
* }
*/
#define PADDLE_TRIBOOL_THIRD_STATE(Name) \
inline bool Name(boost::logic::tribool x, \
boost::logic::detail::indeterminate_t dummy = \
boost::logic::detail::indeterminate_t()) { \
return x.value == boost::logic::tribool::indeterminate_value; \
}
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py
浏览文件 @
52607cf8
...
...
@@ -51,7 +51,6 @@ paddle_custom_kernel_include = [
compile_third_party_path
=
os
.
path
.
join
(
os
.
environ
[
'PADDLE_ROOT'
],
'build/third_party'
)
paddle_custom_kernel_include
+=
[
os
.
path
.
join
(
compile_third_party_path
,
'boost/src/extern_boost'
),
# boost
os
.
path
.
join
(
compile_third_party_path
,
'install/gflags/include'
),
# gflags
os
.
path
.
join
(
compile_third_party_path
,
'install/glog/include'
),
# glog
]
...
...
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
浏览文件 @
52607cf8
...
...
@@ -53,7 +53,6 @@ paddle_custom_kernel_include = list(
compile_third_party_path
=
os
.
path
.
join
(
os
.
environ
[
'PADDLE_ROOT'
],
'build/third_party'
)
paddle_custom_kernel_include
+=
[
os
.
path
.
join
(
compile_third_party_path
,
'boost/src/extern_boost'
),
# boost
os
.
path
.
join
(
compile_third_party_path
,
'install/gflags/include'
),
# gflags
os
.
path
.
join
(
compile_third_party_path
,
'install/glog/include'
),
# glog
]
...
...
tools/prune_for_jetson.py
浏览文件 @
52607cf8
...
...
@@ -125,7 +125,7 @@ def append_fluid_kernels():
with
io
.
open
(
file_name
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
content
=
''
.
join
(
f
.
readlines
())
location_str
=
"nv_library(
\n
tensorrt_op_teller
\n
SRCS op_teller.cc
\n
DEPS framework_proto device_context
boost
)"
location_str
=
"nv_library(
\n
tensorrt_op_teller
\n
SRCS op_teller.cc
\n
DEPS framework_proto device_context)"
new_content
=
content
.
replace
(
location_str
,
location_str
+
append_str
)
if
new_content
==
content
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录