DPC++ Runtime
Runtime libraries for oneAPI DPC++
host_profiling_info.hpp
Go to the documentation of this file.
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 <
sycl/detail/common.hpp
>
12
#include <
sycl/detail/export.hpp
>
13
14
namespace
sycl
{
15
__SYCL_INLINE_VER_NAMESPACE
(_V1) {
16
namespace
detail {
17
19
class
__SYCL_EXPORT
HostProfilingInfo
{
20
uint64_t StartTime = 0;
21
uint64_t EndTime = 0;
22
23
public
:
27
uint64_t
getStartTime
()
const
{
return
StartTime; }
31
uint64_t
getEndTime
()
const
{
return
EndTime; }
32
34
void
start();
36
void
end();
37
};
38
}
// namespace detail
39
}
// __SYCL_INLINE_VER_NAMESPACE(_V1)
40
}
// namespace sycl
__SYCL_INLINE_VER_NAMESPACE
#define __SYCL_INLINE_VER_NAMESPACE(X)
Definition:
defines_elementary.hpp:11
sycl
---— Error handling, matching OpenCL plugin semantics.
Definition:
access.hpp:14
export.hpp
sycl::_V1::detail::HostProfilingInfo::getEndTime
uint64_t getEndTime() const
Returns event's end time.
Definition:
host_profiling_info.hpp:31
sycl::_V1::detail::HostProfilingInfo::getStartTime
uint64_t getStartTime() const
Returns event's start time.
Definition:
host_profiling_info.hpp:27
common.hpp
sycl::_V1::detail::HostProfilingInfo
Profiling info for the host execution.
Definition:
host_profiling_info.hpp:19
include
sycl
detail
host_profiling_info.hpp
Generated by
1.8.17