2 * Copyright 2013 NVIDIA Corporation. All rights reserved.
6 * This source code and/or documentation ("Licensed Deliverables") are
7 * subject to NVIDIA intellectual property rights under U.S. and
8 * international Copyright laws.
10 * These Licensed Deliverables contained herein is PROPRIETARY and
11 * CONFIDENTIAL to NVIDIA and is being provided under the terms and
12 * conditions of a form of NVIDIA software license agreement by and
13 * between NVIDIA and Licensee ("License Agreement") or electronically
14 * accepted by Licensee. Notwithstanding any terms or conditions to
15 * the contrary in the License Agreement, reproduction or disclosure
16 * of the Licensed Deliverables to any third party without the express
17 * written consent of NVIDIA is prohibited.
19 * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
20 * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
21 * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
22 * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
23 * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
24 * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
25 * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
26 * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
27 * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
28 * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
29 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
30 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
31 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
32 * OF THESE LICENSED DELIVERABLES.
34 * U.S. Government End Users. These Licensed Deliverables are a
35 * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
36 * 1995), consisting of "commercial computer software" and "commercial
37 * computer software documentation" as such terms are used in 48
38 * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
39 * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
40 * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
41 * U.S. Government End Users acquire the Licensed Deliverables with
42 * only those rights set forth herein.
44 * Any use of the Licensed Deliverables in individual and commercial
45 * software must include, in the user documentation and internal
46 * comments to the code, the above Disclaimer and U.S. Government End
50 #include <nvToolsExt.h>
51 #include <nvToolsExtCuda.h>
53 // *************************************************************************
54 // Definitions of structs to hold parameters for each function
55 // *************************************************************************
57 typedef struct nvtxMarkEx_params_st {
58 const nvtxEventAttributes_t* eventAttrib;
61 typedef struct nvtxMarkA_params_st {
65 typedef struct nvtxMarkW_params_st {
66 const wchar_t* message;
69 typedef struct nvtxRangeStartEx_params_st {
70 const nvtxEventAttributes_t* eventAttrib;
71 } nvtxRangeStartEx_params;
73 typedef struct nvtxRangeStartA_params_st {
75 } nvtxRangeStartA_params;
77 typedef struct nvtxRangeStartW_params_st {
78 const wchar_t* message;
79 } nvtxRangeStartW_params;
81 typedef struct nvtxRangeEnd_params_st {
83 } nvtxRangeEnd_params;
85 typedef struct nvtxRangePushEx_params_st {
86 const nvtxEventAttributes_t* eventAttrib;
87 } nvtxRangePushEx_params;
89 typedef struct nvtxRangePushA_params_st {
91 } nvtxRangePushA_params;
93 typedef struct nvtxRangePushW_params_st {
94 const wchar_t* message;
95 } nvtxRangePushW_params;
97 typedef struct nvtxRangePop_params_st {
98 /* WAR: Windows compiler doesn't allow empty structs */
99 /* This field shouldn't be used */
101 } nvtxRangePop_params;
103 typedef struct nvtxNameCategoryA_params_st {
106 } nvtxNameCategoryA_params;
108 typedef struct nvtxNameCategoryW_params_st {
111 } nvtxNameCategoryW_params;
113 typedef struct nvtxNameOsThreadA_params_st {
116 } nvtxNameOsThreadA_params;
118 typedef struct nvtxNameOsThreadW_params_st {
121 } nvtxNameOsThreadW_params;
123 typedef struct nvtxNameCuDeviceA_params_st {
126 } nvtxNameCuDeviceA_params;
128 typedef struct nvtxNameCuDeviceW_params_st {
131 } nvtxNameCuDeviceW_params;
133 typedef struct nvtxNameCuContextA_params_st {
136 } nvtxNameCuContextA_params;
138 typedef struct nvtxNameCuContextW_params_st {
141 } nvtxNameCuContextW_params;
143 typedef struct nvtxNameCuStreamA_params_st {
146 } nvtxNameCuStreamA_params;
148 typedef struct nvtxNameCuStreamW_params_st {
151 } nvtxNameCuStreamW_params;
153 typedef struct nvtxNameCuEventA_params_st {
156 } nvtxNameCuEventA_params;
158 typedef struct nvtxNameCuEventW_params_st {
161 } nvtxNameCuEventW_params;
163 typedef struct nvtxNameCudaDeviceA_params_st {
166 } nvtxNameCudaDeviceA_params;
168 typedef struct nvtxNameCudaDeviceW_params_st {
171 } nvtxNameCudaDeviceW_params;
173 typedef struct nvtxNameCudaStreamA_params_st {
176 } nvtxNameCudaStreamA_params;
178 typedef struct nvtxNameCudaStreamW_params_st {
181 } nvtxNameCudaStreamW_params;
183 typedef struct nvtxNameCudaEventA_params_st {
186 } nvtxNameCudaEventA_params;
188 typedef struct nvtxNameCudaEventW_params_st {
191 } nvtxNameCudaEventW_params;