File tree Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Original file line number Diff line number Diff line change 9
9
#pragma once
10
10
11
11
#include < CL/sycl/access/access.hpp>
12
- #include < CL/sycl/detail/event_impl.hpp>
13
12
#include < CL/sycl/detail/sycl_mem_obj_i.hpp>
14
13
#include < CL/sycl/id.hpp>
15
14
#include < CL/sycl/range.hpp>
Original file line number Diff line number Diff line change 11
11
#include < CL/sycl/detail/accessor_impl.hpp>
12
12
#include < CL/sycl/detail/common.hpp>
13
13
#include < CL/sycl/detail/helpers.hpp>
14
+ #include < CL/sycl/detail/host_profiling_info.hpp>
14
15
#include < CL/sycl/detail/kernel_desc.hpp>
15
16
#include < CL/sycl/detail/type_traits.hpp>
16
17
#include < CL/sycl/group.hpp>
Original file line number Diff line number Diff line change 12
12
#include < CL/sycl/detail/event_info.hpp>
13
13
#include < CL/sycl/detail/pi.hpp>
14
14
#include < CL/sycl/stl.hpp>
15
+ #include < CL/sycl/detail/host_profiling_info.hpp>
15
16
16
17
#include < cassert>
17
18
@@ -24,27 +25,6 @@ using ContextImplPtr = std::shared_ptr<cl::sycl::detail::context_impl>;
24
25
class queue_impl ;
25
26
using QueueImplPtr = std::shared_ptr<cl::sycl::detail::queue_impl>;
26
27
27
- // / Profiling info for the host execution.
28
- class HostProfilingInfo {
29
- cl_ulong StartTime = 0 ;
30
- cl_ulong EndTime = 0 ;
31
-
32
- public:
33
- // / Returns event's start time.
34
- // /
35
- // / @return event's start time in nanoseconds.
36
- cl_ulong getStartTime () const { return StartTime; }
37
- // / Returns event's end time.
38
- // /
39
- // / @return event's end time in nanoseconds.
40
- cl_ulong getEndTime () const { return EndTime; }
41
-
42
- // / Measures event's start time.
43
- void start ();
44
- // / Measures event's end time.
45
- void end ();
46
- };
47
-
48
28
class event_impl {
49
29
public:
50
30
// / Constructs a ready SYCL event.
Original file line number Diff line number Diff line change
1
+ // ==---------- host_profiling_info.hpp - SYCL host profiling ---------------==//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ #pragma once
10
+
11
+ #include < CL/sycl/detail/common.hpp>
12
+
13
+ __SYCL_INLINE namespace cl {
14
+ namespace sycl {
15
+ namespace detail {
16
+
17
+ // / Profiling info for the host execution.
18
+ class HostProfilingInfo {
19
+ cl_ulong StartTime = 0 ;
20
+ cl_ulong EndTime = 0 ;
21
+
22
+ public:
23
+ // / Returns event's start time.
24
+ // /
25
+ // / @return event's start time in nanoseconds.
26
+ cl_ulong getStartTime () const { return StartTime; }
27
+ // / Returns event's end time.
28
+ // /
29
+ // / @return event's end time in nanoseconds.
30
+ cl_ulong getEndTime () const { return EndTime; }
31
+
32
+ // / Measures event's start time.
33
+ void start ();
34
+ // / Measures event's end time.
35
+ void end ();
36
+ };
37
+ } // namespace detail
38
+ } // namespace sycl
39
+ } // namespace cl
Original file line number Diff line number Diff line change 10
10
#include < CL/sycl/detail/scheduler/scheduler.hpp>
11
11
#include < CL/sycl/detail/sycl_mem_obj_t.hpp>
12
12
#include < CL/sycl/detail/context_impl.hpp>
13
+ #include < CL/sycl/detail/event_impl.hpp>
13
14
14
15
__SYCL_INLINE namespace cl {
15
16
namespace sycl {
You can’t perform that action at this time.
0 commit comments