diff --git a/paddle/phi/backends/device_manager.cc b/paddle/phi/backends/device_manager.cc index ffaf42a0cf4e63a39fbcf3e7c4ccb8f558db030c..5b1022794a5c3c4aef2ce7e24e964de752d8c141 100644 --- a/paddle/phi/backends/device_manager.cc +++ b/paddle/phi/backends/device_manager.cc @@ -24,6 +24,8 @@ #include #include +#include "glog/logging.h" + namespace phi { void Device::CreateStream(stream::Stream* stream, diff --git a/paddle/phi/backends/dynload/port.cc b/paddle/phi/backends/dynload/port.cc index 59884176548903281441a13ebef0df04e6c1e010..d1b3da64c8570d4e96f779942419e569f491983e 100644 --- a/paddle/phi/backends/dynload/port.cc +++ b/paddle/phi/backends/dynload/port.cc @@ -18,6 +18,8 @@ #include #include +#include "glog/logging.h" + #if !defined(_WIN32) #include // dladdr #include diff --git a/paddle/phi/backends/dynload/port.h b/paddle/phi/backends/dynload/port.h index ed48553accb74c4182401feec93b5af3795dc40b..03a2863e4dc4ee5503731e655cc1e5f9e5d281f3 100644 --- a/paddle/phi/backends/dynload/port.h +++ b/paddle/phi/backends/dynload/port.h @@ -17,7 +17,6 @@ #include #define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h -#include "glog/logging.h" #if !defined(_WIN32) #include // dladdr diff --git a/paddle/phi/backends/gpu/gpu_info.cc b/paddle/phi/backends/gpu/gpu_info.cc index cc655f182299846e6f627e664742222fb2dcbdf0..a2399554ba85311830d54a362e70173199c1a930 100644 --- a/paddle/phi/backends/gpu/gpu_info.cc +++ b/paddle/phi/backends/gpu/gpu_info.cc @@ -14,6 +14,7 @@ limitations under the License. */ #include "paddle/phi/backends/gpu/gpu_info.h" +#include #include #include "gflags/gflags.h" diff --git a/paddle/phi/backends/gpu/gpu_launch_config.h b/paddle/phi/backends/gpu/gpu_launch_config.h index 04b2786c4d0fb05426b6628c72b47b589cb87bb7..552f60783c8b24278680cfa80326f01a2086a218 100644 --- a/paddle/phi/backends/gpu/gpu_launch_config.h +++ b/paddle/phi/backends/gpu/gpu_launch_config.h @@ -30,6 +30,7 @@ #include #include +#include "glog/logging.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/enforce.h" diff --git a/paddle/phi/core/meta_tensor.cc b/paddle/phi/core/meta_tensor.cc index 2178855aa0fee147da59995b9b67b9423292793e..f0cd841235ef1a62f9a8411c36ca33283b49cf91 100644 --- a/paddle/phi/core/meta_tensor.cc +++ b/paddle/phi/core/meta_tensor.cc @@ -14,6 +14,8 @@ limitations under the License. */ #include "paddle/phi/core/meta_tensor.h" +#include "glog/logging.h" + #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/enforce.h" #include "paddle/phi/core/selected_rows.h" diff --git a/paddle/phi/core/meta_tensor.h b/paddle/phi/core/meta_tensor.h index 271759161868bf0e93f9e0a4de5f2c824091e112..377d0e9bc4d6d37bca3e9eec3d4358091d8b8221 100644 --- a/paddle/phi/core/meta_tensor.h +++ b/paddle/phi/core/meta_tensor.h @@ -14,7 +14,6 @@ limitations under the License. */ #pragma once -#include "glog/logging.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/ddim.h" diff --git a/paddle/phi/infermeta/binary.cc b/paddle/phi/infermeta/binary.cc index 1ba025e2c6252c93528c16b15e86918e85d3f707..269286d76d9545182b0f94e3b86ad00bf59c7b9f 100644 --- a/paddle/phi/infermeta/binary.cc +++ b/paddle/phi/infermeta/binary.cc @@ -17,6 +17,8 @@ limitations under the License. */ #include #include +#include "glog/logging.h" + #include "paddle/phi/common/data_type.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/ddim.h" diff --git a/paddle/phi/infermeta/ternary.cc b/paddle/phi/infermeta/ternary.cc index a22f720b97e76e45f0165de717b5d78980cc7a7b..9f65de0f0aa700c0be587a0856cfd0b6be05cc7e 100644 --- a/paddle/phi/infermeta/ternary.cc +++ b/paddle/phi/infermeta/ternary.cc @@ -14,6 +14,8 @@ limitations under the License. */ #include "paddle/phi/infermeta/ternary.h" +#include "glog/logging.h" + #include "paddle/phi/common/layout.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/kernels/funcs/common_shape.h" diff --git a/paddle/phi/kernels/funcs/data_type_transform.h b/paddle/phi/kernels/funcs/data_type_transform.h index ad7f2aa192ce4385d537f232398352b4f9d0aaa6..72fa94d4ed23d6cbe0bfcb9162ce1cba3121121e 100644 --- a/paddle/phi/kernels/funcs/data_type_transform.h +++ b/paddle/phi/kernels/funcs/data_type_transform.h @@ -14,6 +14,8 @@ limitations under the License. */ #pragma once +#include "glog/logging.h" + #include "paddle/phi/common/data_type.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/kernels/cast_kernel.h" diff --git a/paddle/phi/kernels/gpu/allclose_kernel.cu b/paddle/phi/kernels/gpu/allclose_kernel.cu index 8abc6b272c51158c355d91709abbfe1dedfa4f60..fa6a8fce0bf861047cc8da47b2da03a69005f8af 100644 --- a/paddle/phi/kernels/gpu/allclose_kernel.cu +++ b/paddle/phi/kernels/gpu/allclose_kernel.cu @@ -14,6 +14,8 @@ #include "paddle/phi/kernels/allclose_kernel.h" +#include "glog/logging.h" + #include "paddle/phi/core/enforce.h" #include "paddle/phi/core/kernel_registry.h" diff --git a/paddle/phi/kernels/impl/einsum_impl.h b/paddle/phi/kernels/impl/einsum_impl.h index 43b2760b404f9898fa304bbd4a7e1c102116daa7..b5bc826881af80efbba61c951578c8b9802ac664 100644 --- a/paddle/phi/kernels/impl/einsum_impl.h +++ b/paddle/phi/kernels/impl/einsum_impl.h @@ -15,6 +15,8 @@ #include +#include "glog/logging.h" + #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/kernels/matmul_kernel.h" #include "paddle/phi/kernels/reduce_sum_kernel.h" diff --git a/paddle/phi/kernels/sparse/cpu/elementwise_grad_kernel.cc b/paddle/phi/kernels/sparse/cpu/elementwise_grad_kernel.cc index d9ebbd10267f5655b922fdfa381d3bf947a2f62a..972b4537b95547509eb7e486907306c310f24ab7 100644 --- a/paddle/phi/kernels/sparse/cpu/elementwise_grad_kernel.cc +++ b/paddle/phi/kernels/sparse/cpu/elementwise_grad_kernel.cc @@ -12,6 +12,8 @@ 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. */ +#include "glog/logging.h" + #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/enforce.h" #include "paddle/phi/core/kernel_registry.h"