Skip to content

Commit

Permalink
Add gflags.h for other files
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 committed Apr 6, 2023
1 parent 3c90e11 commit 1bf426d
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions paddle/phi/api/profiler/device_tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ limitations under the License. */
#include <string>
#include <thread> // NOLINT

#include "gflags/gflags.h"
#include "glog/logging.h"
#include "paddle/phi/core/enforce.h"

Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def source_include(header_file_path):
#include <memory>
#include "glog/logging.h"
#include "gflags/gflags.h"
#include "paddle/phi/api/lib/api_custom_impl.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/backward_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def source_include(header_file_path, fw_header_file_path):
#include <memory>
#include "glog/logging.h"
#include "gflags/gflags.h"
#include "paddle/phi/api/lib/api_custom_impl.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/intermediate_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def source_include(header_file_path):
#include <memory>
#include "glog/logging.h"
#include "gflags/gflags.h"
#include "paddle/phi/api/lib/api_custom_impl.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/sparse_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def source_include(header_file_path):
#include <memory>
#include "glog/logging.h"
#include "gflags/gflags.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
#include "paddle/phi/api/lib/data_transform.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/sparse_bw_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def source_include(header_file_path):
#include <memory>
#include "glog/logging.h"
#include "gflags/gflags.h"
#include "paddle/phi/api/include/sparse_api.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/api/yaml/generator/strings_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def source_include(header_file_path):
return f"""
#include "{header_file_path}"
#include "gflags/gflags.h"
#include "paddle/phi/api/lib/api_gen_utils.h"
#include "paddle/phi/core/kernel_context.h"
#include "paddle/phi/core/string_tensor.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/backends/gpu/cuda/cudnn_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License. */
#include <string>
#include <vector>

#include "gflags/gflags.h"
#include "paddle/phi/backends/dynload/cudnn.h"
#include "paddle/phi/common/bfloat16.h"
#include "paddle/phi/common/float16.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/core/kernel_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "paddle/phi/core/kernel_factory.h"

#include "gflags/gflags.h"
#include "glog/logging.h"
#include "paddle/phi/core/enforce.h"
#if defined(PADDLE_WITH_XPU)
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/infermeta/unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License. */
#include <algorithm>
#include <set>

#include "gflags/gflags.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/common/type_traits.h"
#include "paddle/phi/core/enforce.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/autotune/cache_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <unordered_map>
#include <vector>

#include "gflags/gflags.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/errors.h"

Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/funcs/blas/blas_impl.cu.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#pragma once

#include "gflags/gflags.h"
#include "paddle/phi/backends/dynload/cublas.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/kernels/funcs/math_function.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/gpu/embedding_grad_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "paddle/phi/kernels/embedding_grad_kernel.h"

#include "gflags/gflags.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/backends/gpu/gpu_primitives.h"
#include "paddle/phi/common/data_type.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/gpu/index_add_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "paddle/phi/kernels/index_add_kernel.h"

#include "gflags/gflags.h"
#include "paddle/phi/backends/gpu/gpu_info.h"
#include "paddle/phi/backends/gpu/gpu_launch_config.h"
#include "paddle/phi/backends/gpu/gpu_primitives.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/gpu/index_select_grad_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "paddle/phi/kernels/index_select_grad_kernel.h"

#include "gflags/gflags.h"
#include "paddle/phi/backends/gpu/gpu_info.h"
#include "paddle/phi/backends/gpu/gpu_launch_config.h"
#include "paddle/phi/backends/gpu/gpu_primitives.h"
Expand Down
2 changes: 2 additions & 0 deletions paddle/phi/kernels/gpu/randperm_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <hipcub/hipcub.hpp>
namespace cub = hipcub;
#endif

#include "gflags/gflags.h"
#include "paddle/phi/backends/gpu/gpu_launch_config.h"
#include "paddle/phi/common/memory_utils.h"
#include "paddle/phi/core/kernel_registry.h"
Expand Down
1 change: 1 addition & 0 deletions paddle/phi/kernels/impl/einsum_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <set>

#include "gflags/gflags.h"
#include "glog/logging.h"

#include "paddle/phi/core/dense_tensor.h"
Expand Down
1 change: 1 addition & 0 deletions test/cpp/phi/api/scale_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#pragma once

#include "gflags/gflags.h"
#include "glog/logging.h"
#include "paddle/phi/api/include/tensor.h"
#include "paddle/phi/api/lib/kernel_dispatch.h"
Expand Down

0 comments on commit 1bf426d

Please sign in to comment.