diff --git a/paddle/cuda/include/hl_time.h b/paddle/cuda/include/hl_time.h index f214b055f98de8eae76554bb4ec1deb868903750..f63f02582060156562061f73c429fc7bbd878d2c 100644 --- a/paddle/cuda/include/hl_time.h +++ b/paddle/cuda/include/hl_time.h @@ -14,7 +14,7 @@ limitations under the License. */ #ifndef HL_TIME_H_ #define HL_TIME_H_ - +#include /** * @brief High resolution timer. * diff --git a/paddle/cuda/src/hl_time.cc b/paddle/cuda/src/hl_time.cc index 2bb69d25e582f019194a2142b27abb58397cd6c4..7e5d7e8aaecbcdc61c1e5b5006a2958d4dc84460 100644 --- a/paddle/cuda/src/hl_time.cc +++ b/paddle/cuda/src/hl_time.cc @@ -15,6 +15,7 @@ limitations under the License. */ #include "hl_time.h" #include #include +#include #include using std::chrono::high_resolution_clock; diff --git a/paddle/utils/BarrierStat.h b/paddle/utils/BarrierStat.h index 352f641b6e65ff8f90d84ecae77cea70ee10515b..a9c925eff66838d58d540d7be5476e6207a30bec 100644 --- a/paddle/utils/BarrierStat.h +++ b/paddle/utils/BarrierStat.h @@ -25,7 +25,6 @@ limitations under the License. */ #include "Locks.h" #include "Logging.h" -#include "Stat.h" #include "ThreadLocal.h" namespace paddle { diff --git a/paddle/utils/PythonUtil.h b/paddle/utils/PythonUtil.h index 9e2a1c360c23e0ea96478b0e5cbaeb3911788dc0..daebaffc855518425ae43942c22ec150d2e327f0 100644 --- a/paddle/utils/PythonUtil.h +++ b/paddle/utils/PythonUtil.h @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. */ #pragma once +// clang-format off +#include "paddle/utils/Util.h" #ifndef PADDLE_NO_PYTHON // must include the following two blocks, otherwise, @@ -33,13 +35,12 @@ limitations under the License. */ #endif #include #include - #endif #include #include #include -#include "paddle/utils/Util.h" +// clang-format on namespace paddle {