From 579e59120708b3fb0190347da1dab5189dfd23d3 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 12 Dec 2016 15:45:28 +0800 Subject: [PATCH] Try to fix unittest error --- paddle/cuda/include/hl_time.h | 2 +- paddle/cuda/src/hl_time.cc | 1 + paddle/utils/BarrierStat.h | 1 - paddle/utils/PythonUtil.h | 5 +++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/paddle/cuda/include/hl_time.h b/paddle/cuda/include/hl_time.h index f214b055f98..f63f0258206 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 2bb69d25e58..7e5d7e8aaec 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 352f641b6e6..a9c925eff66 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 9e2a1c360c2..daebaffc855 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 { -- GitLab