NVTX C API Reference v3
NVIDIA Tools Extension Library
Loading...
Searching...
No Matches
nvToolsExtSemanticsCorrelation.h
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * Licensed under the Apache License v2.0 with LLVM Exceptions.
18 * See LICENSE.txt for license information.
19 */
20
21#if defined(NVTX_AS_SYSTEM_HEADER)
22#if defined(__clang__)
23#pragma clang system_header
24#elif defined(__GNUC__) || defined(__NVCOMPILER)
25#pragma GCC system_header
26#elif defined(_MSC_VER)
27#pragma system_header
28#endif
29#endif
30
31#include "nvToolsExtPayload.h"
32
34#ifndef NVTX_SEMANTIC_ID_CORRELATION_V1
35#define NVTX_SEMANTIC_ID_CORRELATION_V1 3
36
37/* Use with the version field of `nvtxSemanticsHeader_t`. */
38#define NVTX_CORRELATION_SEMANTIC_VERSION 1
39
41#define NVTX_CORRELATION_ROLE_NONE 0
42/* Roles will be added as required. */
43
45#define NVTX_CORRELATION_VALUE_NONE 0
46
51typedef struct nvtxSemanticsCorrelation_v1
52{
53 struct nvtxSemanticsHeader_v1 header;
54
56 unsigned char correlationDomainUuid[16];
57
62 const char* displayName;
63
65 uint64_t role;
67
68#endif /* NVTX_SEMANTIC_ID_CORRELATION_V1 */