File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " ../terminator.h"
10
9
#include " flang/Runtime/CUDA/allocator.h"
11
10
#include " ../allocator-registry.h"
12
11
#include " ../derived.h"
13
12
#include " ../stat.h"
13
+ #include " ../terminator.h"
14
14
#include " ../type-info.h"
15
15
#include " flang/Common/Fortran.h"
16
16
#include " flang/ISO_Fortran_binding_wrapper.h"
@@ -34,9 +34,7 @@ void *CUFAllocPinned(std::size_t sizeInBytes) {
34
34
return p;
35
35
}
36
36
37
- void CUFFreePinned (void *p) {
38
- CUDA_REPORT_IF_ERROR (cuMemFreeHost (p));
39
- }
37
+ void CUFFreePinned (void *p) { CUDA_REPORT_IF_ERROR (cuMemFreeHost (p)); }
40
38
41
39
void *CUFAllocDevice (std::size_t sizeInBytes) {
42
40
CUdeviceptr p = 0 ;
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " gtest/gtest.h"
10
+ #include " ../../../runtime/terminator.h"
10
11
#include " flang/Common/Fortran.h"
11
12
#include " flang/Runtime/CUDA/allocator.h"
12
13
#include " flang/Runtime/allocatable.h"
13
- #include " ../../../runtime/terminator.h"
14
14
15
15
#include " cuda.h"
16
16
You can’t perform that action at this time.
0 commit comments