File tree Expand file tree Collapse file tree 10 files changed +27
-42
lines changed
flang/unittests/Runtime/CUDA Expand file tree Collapse file tree 10 files changed +27
-42
lines changed Original file line number Diff line number Diff line change 18
18
// User C code is welcome to depend on that ISO_Fortran_binding.h file,
19
19
// but should never reference this internal header.
20
20
21
+ #include " flang-rt/memory.h"
22
+ #include " flang-rt/type-code.h"
21
23
#include " flang/Common/ISO_Fortran_binding_wrapper.h"
22
24
#include " flang/Runtime/descriptor-consts.h"
23
- #include " flang/Runtime/memory.h"
24
- #include " flang/Runtime/type-code.h"
25
25
#include < algorithm>
26
26
#include < cassert>
27
27
#include < cinttypes>
Original file line number Diff line number Diff line change 8
8
9
9
#include " flang/Runtime/CUDA/allocatable.h"
10
10
#include " flang-rt/descriptor.h"
11
- #include " ../flang_rt/ assign-impl.h"
12
- #include " ../flang_rt/ stat.h"
13
- #include " ../flang_rt/ terminator.h"
11
+ #include " ../assign-impl.h"
12
+ #include " ../stat.h"
13
+ #include " ../terminator.h"
14
14
#include " flang/Runtime/CUDA/common.h"
15
15
#include " flang/Runtime/CUDA/descriptor.h"
16
16
#include " flang/Runtime/CUDA/memmove-function.h"
Original file line number Diff line number Diff line change 8
8
9
9
#include " flang-rt/CUDA/allocator.h"
10
10
#include " flang-rt/allocator-registry.h"
11
- #include " ../flang_rt/ derived.h"
12
- #include " ../flang_rt/ stat.h"
13
- #include " ../flang_rt/ terminator.h"
14
- #include " ../flang_rt/ type-info.h"
11
+ #include " ../derived.h"
12
+ #include " ../stat.h"
13
+ #include " ../terminator.h"
14
+ #include " ../type-info.h"
15
15
#include " flang/Common/ISO_Fortran_binding_wrapper.h"
16
16
#include " flang/Runtime/CUDA/common.h"
17
17
#include " flang/Support/Fortran.h"
Original file line number Diff line number Diff line change 9
9
#include " flang/Runtime/CUDA/descriptor.h"
10
10
#include " flang-rt/CUDA/allocator.h"
11
11
#include " flang-rt/descriptor.h"
12
- #include " ../flang_rt/ terminator.h"
12
+ #include " ../terminator.h"
13
13
#include " flang/Runtime/CUDA/common.h"
14
14
15
15
#include " cuda_runtime.h"
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " flang/Runtime/CUDA/kernel.h"
10
- #include " ../flang_rt/ terminator.h"
10
+ #include " ../terminator.h"
11
11
#include " flang/Runtime/CUDA/common.h"
12
12
13
13
#include " cuda_runtime.h"
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " flang/Runtime/CUDA/memory.h"
10
- #include " ../flang_rt/ assign-impl.h"
11
- #include " ../flang_rt/ terminator.h"
10
+ #include " ../assign-impl.h"
11
+ #include " ../terminator.h"
12
12
#include " flang/Runtime/CUDA/common.h"
13
13
#include " flang/Runtime/CUDA/descriptor.h"
14
14
#include " flang/Runtime/CUDA/memmove-function.h"
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " flang/Runtime/CUDA/registration.h"
10
- #include " ../flang_rt/ terminator.h"
10
+ #include " ../terminator.h"
11
11
#include " flang/Runtime/CUDA/common.h"
12
12
13
13
#include " cuda_runtime.h"
Original file line number Diff line number Diff line change 9
9
if (FLANG_CUF_RUNTIME )
10
10
11
11
add_flang_unittest (FlangCufRuntimeTests
12
+ Allocatable.cpp
12
13
AllocatorCUF.cpp
14
+ Memory.cpp
13
15
)
14
16
17
+ if (BUILD_SHARED_LIBS )
18
+ set (CUDA_RT_TARGET CUDA::cudart )
19
+ else ()
20
+ set (CUDA_RT_TARGET CUDA::cudart_static )
21
+ endif ()
22
+
15
23
target_link_libraries (FlangCufRuntimeTests
16
24
PRIVATE
25
+ ${CUDA_RT_TARGET}
17
26
CufRuntime_cuda_${CUDAToolkit_VERSION_MAJOR}
18
27
FortranRuntime
19
28
)
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " flang/Runtime/CUDA/memory.h"
10
+ #include " flang-rt/CUDA/allocator.h"
11
+ #include " flang-rt/allocator-registry.h"
10
12
#include " gtest/gtest.h"
11
- #include " ../../../runtime /terminator.h"
13
+ #include " ../../../lib/flang_rt /terminator.h"
12
14
#include " ../tools.h"
13
- #include " flang/Common/Fortran.h"
14
- #include " flang/Runtime/CUDA/allocator.h"
15
15
#include " flang/Runtime/CUDA/common.h"
16
16
#include " flang/Runtime/CUDA/descriptor.h"
17
17
#include " flang/Runtime/allocatable.h"
18
- #include " flang/Runtime/allocator-registry .h"
18
+ #include " flang/Support/Fortran .h"
19
19
20
20
#include " cuda_runtime.h"
21
21
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments