Skip to content

Commit c7e23bb

Browse files
authored
Merge pull request #10338 from JiayiFeng/fix_cpplint_format_check
Fix cpplint format check
2 parents 57be5c6 + 1e28ba7 commit c7e23bb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

paddle/cuda/include/hl_base.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15-
#ifndef HL_BASE_H_
16-
#define HL_BASE_H_
15+
#pragma once
1716

1817
#include <cstddef>
1918

@@ -207,8 +206,8 @@ typedef struct {
207206

208207
#ifdef __NVCC__
209208

210-
#include "cuda_runtime.h"
211-
#include "hl_cuda.h"
209+
#include <cuda_runtime.h>
210+
#include "paddle/cuda/include/hl_cuda.h"
212211
#include "paddle/utils/Logging.h"
213212

214213
extern __thread bool g_sync_flag;
@@ -243,6 +242,4 @@ __shfl_sync(unsigned, T val, int src_line, int width) {
243242
mask = __ballot_sync(FULL_WARP_MASK, (predicate))
244243
#endif
245244

246-
#endif /* __NVCC__ */
247-
248-
#endif /* HL_BASE_H_ */
245+
#endif // __NVCC__

0 commit comments

Comments
 (0)