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 <
CL/sycl/detail/common.hpp
>
12
#include <
CL/sycl/detail/export.hpp
>
13
14
__SYCL_INLINE_NAMESPACE
(
cl
) {
15
namespace
sycl
{
16
namespace
detail {
17
19
class
__SYCL_EXPORT
HostProfilingInfo
{
20
cl_ulong
StartTime = 0;
21
cl_ulong
EndTime = 0;
22
23
public
:
27
cl_ulong
getStartTime
()
const
{
return
StartTime; }
31
cl_ulong
getEndTime
()
const
{
return
EndTime; }
32
34
void
start();
36
void
end();
37
};
38
}
// namespace detail
39
}
// namespace sycl
40
}
// __SYCL_INLINE_NAMESPACE(cl)
cl::sycl::detail::HostProfilingInfo
Profiling info for the host execution.
Definition:
host_profiling_info.hpp:19
sycl
Definition:
invoke_simd.hpp:68
cl::sycl::detail::HostProfilingInfo::getStartTime
cl_ulong getStartTime() const
Returns event's start time.
Definition:
host_profiling_info.hpp:27
export.hpp
cl
We provide new interfaces for matrix muliply in this patch:
Definition:
access.hpp:13
cl::sycl::cl_ulong
std::uint64_t cl_ulong
Definition:
aliases.hpp:85
cl::sycl::detail::HostProfilingInfo::getEndTime
cl_ulong getEndTime() const
Returns event's end time.
Definition:
host_profiling_info.hpp:31
common.hpp
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition:
defines_elementary.hpp:12
include
CL
sycl
detail
host_profiling_info.hpp
Generated by
1.8.17