OSDN Git Service

CUDA
[eos/hostdependX86LINUX64.git] / util / X86LINUX64 / cuda-6.5 / extras / CUPTI / include / generated_nvtx_meta.h
1 /*
2  * Copyright 2013-2014 NVIDIA Corporation.  All rights reserved.
3  *
4  * NOTICE TO LICENSEE:
5  *
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.
9  *
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.
18  *
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.
33  *
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.
43  *
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
47  * Users Notice.
48  */
49
50 #include <nvToolsExt.h>
51 #include <nvToolsExtCuda.h>
52
53 // *************************************************************************
54 //      Definitions of structs to hold parameters for each function
55 // *************************************************************************
56
57 typedef struct nvtxMarkEx_params_st {
58   const nvtxEventAttributes_t* eventAttrib;
59 } nvtxMarkEx_params;
60
61 typedef struct nvtxMarkA_params_st {
62   const char* message;
63 } nvtxMarkA_params;
64
65 typedef struct nvtxMarkW_params_st {
66   const wchar_t* message;
67 } nvtxMarkW_params;
68
69 typedef struct nvtxRangeStartEx_params_st {
70   const nvtxEventAttributes_t* eventAttrib;
71 } nvtxRangeStartEx_params;
72
73 typedef struct nvtxRangeStartA_params_st {
74   const char* message;
75 } nvtxRangeStartA_params;
76
77 typedef struct nvtxRangeStartW_params_st {
78   const wchar_t* message;
79 } nvtxRangeStartW_params;
80
81 typedef struct nvtxRangeEnd_params_st {
82   nvtxRangeId_t id;
83 } nvtxRangeEnd_params;
84
85 typedef struct nvtxRangePushEx_params_st {
86   const nvtxEventAttributes_t* eventAttrib;
87 } nvtxRangePushEx_params;
88
89 typedef struct nvtxRangePushA_params_st {
90   const char* message;
91 } nvtxRangePushA_params;
92
93 typedef struct nvtxRangePushW_params_st {
94   const wchar_t* message;
95 } nvtxRangePushW_params;
96
97 typedef struct nvtxRangePop_params_st {
98   /* WAR: Windows compiler doesn't allow empty structs */
99   /* This field shouldn't be used */
100   void *dummy;
101 } nvtxRangePop_params;
102
103 typedef struct nvtxNameCategoryA_params_st {
104   uint32_t category;
105   const char* name;
106 } nvtxNameCategoryA_params;
107
108 typedef struct nvtxNameCategoryW_params_st {
109   uint32_t category;
110   const wchar_t* name;
111 } nvtxNameCategoryW_params;
112
113 typedef struct nvtxNameOsThreadA_params_st {
114   uint32_t threadId;
115   const char* name;
116 } nvtxNameOsThreadA_params;
117
118 typedef struct nvtxNameOsThreadW_params_st {
119   uint32_t threadId;
120   const wchar_t* name;
121 } nvtxNameOsThreadW_params;
122
123 typedef struct nvtxNameCuDeviceA_params_st {
124   CUdevice device;
125   const char* name;
126 } nvtxNameCuDeviceA_params;
127
128 typedef struct nvtxNameCuDeviceW_params_st {
129   CUdevice device;
130   const wchar_t* name;
131 } nvtxNameCuDeviceW_params;
132
133 typedef struct nvtxNameCuContextA_params_st {
134   CUcontext context;
135   const char* name;
136 } nvtxNameCuContextA_params;
137
138 typedef struct nvtxNameCuContextW_params_st {
139   CUcontext context;
140   const wchar_t* name;
141 } nvtxNameCuContextW_params;
142
143 typedef struct nvtxNameCuStreamA_params_st {
144   CUstream stream;
145   const char* name;
146 } nvtxNameCuStreamA_params;
147
148 typedef struct nvtxNameCuStreamW_params_st {
149   CUstream stream;
150   const wchar_t* name;
151 } nvtxNameCuStreamW_params;
152
153 typedef struct nvtxNameCuEventA_params_st {
154   CUevent event;
155   const char* name;
156 } nvtxNameCuEventA_params;
157
158 typedef struct nvtxNameCuEventW_params_st {
159   CUevent event;
160   const wchar_t* name;
161 } nvtxNameCuEventW_params;
162
163 typedef struct nvtxNameCudaDeviceA_params_st {
164   int device;
165   const char* name;
166 } nvtxNameCudaDeviceA_params;
167
168 typedef struct nvtxNameCudaDeviceW_params_st {
169   int device;
170   const wchar_t* name;
171 } nvtxNameCudaDeviceW_params;
172
173 typedef struct nvtxNameCudaStreamA_params_st {
174   cudaStream_t stream;
175   const char* name;
176 } nvtxNameCudaStreamA_params;
177
178 typedef struct nvtxNameCudaStreamW_params_st {
179   cudaStream_t stream;
180   const wchar_t* name;
181 } nvtxNameCudaStreamW_params;
182
183 typedef struct nvtxNameCudaEventA_params_st {
184   cudaEvent_t event;
185   const char* name;
186 } nvtxNameCudaEventA_params;
187
188 typedef struct nvtxNameCudaEventW_params_st {
189   cudaEvent_t event;
190   const wchar_t* name;
191 } nvtxNameCudaEventW_params;