Skip to content

Commit ead0ed6

Browse files
committed
clang-format
1 parent 48d9e71 commit ead0ed6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

flang/runtime/CUDA/allocator.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "../terminator.h"
109
#include "flang/Runtime/CUDA/allocator.h"
1110
#include "../allocator-registry.h"
1211
#include "../derived.h"
1312
#include "../stat.h"
13+
#include "../terminator.h"
1414
#include "../type-info.h"
1515
#include "flang/Common/Fortran.h"
1616
#include "flang/ISO_Fortran_binding_wrapper.h"
@@ -34,9 +34,7 @@ void *CUFAllocPinned(std::size_t sizeInBytes) {
3434
return p;
3535
}
3636

37-
void CUFFreePinned(void *p) {
38-
CUDA_REPORT_IF_ERROR(cuMemFreeHost(p));
39-
}
37+
void CUFFreePinned(void *p) { CUDA_REPORT_IF_ERROR(cuMemFreeHost(p)); }
4038

4139
void *CUFAllocDevice(std::size_t sizeInBytes) {
4240
CUdeviceptr p = 0;

flang/unittests/Runtime/CUDA/AllocatorCUF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "gtest/gtest.h"
10+
#include "../../../runtime/terminator.h"
1011
#include "flang/Common/Fortran.h"
1112
#include "flang/Runtime/CUDA/allocator.h"
1213
#include "flang/Runtime/allocatable.h"
13-
#include "../../../runtime/terminator.h"
1414

1515
#include "cuda.h"
1616

0 commit comments

Comments
 (0)