DriveWorks SDK Reference
5.16.65 Release
For Test and Development only
GlobalTracer.hpp
Go to the documentation of this file.
1
2
//
3
// Notice
4
// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5
// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6
// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7
// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8
//
9
// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10
// information or for any infringement of patents or other rights of third parties that may
11
// result from its use. No license is granted by implication or otherwise under any patent
12
// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13
// expressly authorized by NVIDIA. Details are subject to change without notice.
14
// This code supersedes and replaces all information previously supplied.
15
// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16
// components in life support devices or systems without express written approval of
17
// NVIDIA CORPORATION & AFFILIATES.
18
//
19
// SPDX-FileCopyrightText: Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21
//
22
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23
// property and proprietary rights in and to this material, related
24
// documentation and any modifications thereto. Any use, reproduction,
25
// disclosure or distribution of this material and related documentation
26
// without an express license agreement from NVIDIA CORPORATION or
27
// its affiliates is strictly prohibited.
28
//
30
31
#ifndef DW_DWTRACE_GLOBALTRACER_HPP_
32
#define DW_DWTRACE_GLOBALTRACER_HPP_
33
34
#include <
dwtrace/dw/trace/Trace.hpp
>
35
36
namespace
dw
37
{
38
namespace
trace
39
{
40
46
#define DW_TRACE_CHANNEL dw::trace::TraceChannel::DW
47
#define DW_TRACE_TAG_CPU(name) DW_TRACE_TAG(#name, "Host"
)
48
#define DW_TRACE_TAG_GPU(name) DW_TRACE_TAG(#name, "GPU"
)
49
#define DW_TRACE_LEVEL dw::trace::Level::LEVEL_50
50
51
#define PROFILE_SECTION(name, stream) DW_TRACE_CUDA_SCOPE(dw::trace::TraceChannel::DW, \
52
DW_TRACE_TAG_GPU(name), \
53
stream, \
54
dw::trace::Level::LEVEL_50);
55
56
#define PROFILE_CPU_SECTION(name) DW_TRACE_SCOPE(dw::trace::TraceChannel::DW, \
57
DW_TRACE_TAG_CPU(name), \
58
dw::trace::Level::LEVEL_50);
59
60
#define TRACE_BEGIN(name) DW_TRACE_BEGIN(dw::trace::TraceChannel::DW, DW_TRACE_TAG_CPU(name), dw::trace::Level::LEVEL_50);
61
#define TRACE_END(name) DW_TRACE_END(dw::trace::TraceChannel::DW, DW_TRACE_TAG_CPU(name), dw::trace::Level::LEVEL_50);
62
#define TRACE_ASYNC_BEGIN(name) DW_TRACE_ASYNC_BEGIN(dw::trace::TraceChannel::DW, DW_TRACE_TAG_CPU(name), dw::trace::Level::LEVEL_50);
63
#define TRACE_ASYNC_END(name) DW_TRACE_ASYNC_END(dw::trace::TraceChannel::DW, DW_TRACE_TAG_CPU(name), dw::trace::Level::LEVEL_50);
64
#define TRACE_CUDA_BEGIN(name, stream) DW_TRACE_CUDA_BEGIN(dw::trace::TraceChannel::DW, DW_TRACE_TAG_GPU(name), stream, dw::trace::Level::LEVEL_50);
65
#define TRACE_CUDA_END(name, stream) DW_TRACE_CUDA_END(dw::trace::TraceChannel::DW, DW_TRACE_TAG_GPU(name), stream, dw::trace::Level::LEVEL_50);
66
#define TRACE_CUDA_BEGIN_ASYNC(name, stream) DW_TRACE_CUDA_BEGIN_ASYNC(dw::trace::TraceChannel::DW, DW_TRACE_TAG_GPU(name), stream, dw::trace::Level::LEVEL_50);
67
#define TRACE_CUDA_RECORD_ASYNC(name, stream) DW_TRACE_CUDA_RECORD_ASYNC(dw::trace::TraceChannel::DW, DW_TRACE_TAG_GPU(name), stream, dw::trace::Level::LEVEL_50);
68
#define TRACE_CUDA_COLLECT_ASYNC(name, stream) DW_TRACE_CUDA_COLLECT_ASYNC(dw::trace::TraceChannel::DW, DW_TRACE_TAG_GPU(name), stream, dw::trace::Level::LEVEL_50);
69
#define TRACE_CUDA_COLLECT_ALL() DW_TRACE_CUDA_COLLECT_ALL()
70
}
71
}
72
73
#endif
Trace.hpp
dw
Definition:
GlobalTracer.hpp:37
Advance Information | Subject to Change | Prepared and Provided under NDA | Generated by NVIDIA | PR-08397-V5.0