Skip to content

Commit 579e591

Browse files
committed
Try to fix unittest error
1 parent 6ea5a9f commit 579e591

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

paddle/cuda/include/hl_time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ limitations under the License. */
1414

1515
#ifndef HL_TIME_H_
1616
#define HL_TIME_H_
17-
17+
#include <cstdint>
1818
/**
1919
* @brief High resolution timer.
2020
*

paddle/cuda/src/hl_time.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License. */
1515
#include "hl_time.h"
1616
#include <stdlib.h>
1717
#include <chrono>
18+
#include <cstdint>
1819
#include <iostream>
1920

2021
using std::chrono::high_resolution_clock;

paddle/utils/BarrierStat.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ limitations under the License. */
2525

2626
#include "Locks.h"
2727
#include "Logging.h"
28-
#include "Stat.h"
2928
#include "ThreadLocal.h"
3029

3130
namespace paddle {

paddle/utils/PythonUtil.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#pragma once
16+
// clang-format off
17+
#include "paddle/utils/Util.h"
1618

1719
#ifndef PADDLE_NO_PYTHON
1820
// must include the following two blocks, otherwise,
@@ -33,13 +35,12 @@ limitations under the License. */
3335
#endif
3436
#include <Python.h>
3537
#include <frameobject.h>
36-
3738
#endif
3839

3940
#include <stdarg.h>
4041
#include <map>
4142
#include <mutex>
42-
#include "paddle/utils/Util.h"
43+
// clang-format on
4344

4445
namespace paddle {
4546

0 commit comments

Comments
 (0)