ZTWHHH commited on
Commit
1dd1515
·
verified ·
1 Parent(s): 272bb33

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parrot/share/zoneinfo/Africa/Dar_es_Salaam +0 -0
  2. parrot/share/zoneinfo/Africa/Mbabane +0 -0
  3. parrot/share/zoneinfo/Antarctica/Davis +0 -0
  4. parrot/share/zoneinfo/Antarctica/DumontDUrville +0 -0
  5. parrot/share/zoneinfo/Antarctica/McMurdo +0 -0
  6. parrot/share/zoneinfo/Canada/Mountain +0 -0
  7. parrot/share/zoneinfo/Canada/Newfoundland +0 -0
  8. parrot/share/zoneinfo/Canada/Saskatchewan +0 -0
  9. parrot/share/zoneinfo/Canada/Yukon +0 -0
  10. parrot/share/zoneinfo/Europe/Andorra +0 -0
  11. parrot/share/zoneinfo/Europe/Berlin +0 -0
  12. parrot/share/zoneinfo/Europe/Brussels +0 -0
  13. parrot/share/zoneinfo/Europe/Bucharest +0 -0
  14. parrot/share/zoneinfo/Europe/Budapest +0 -0
  15. parrot/share/zoneinfo/Europe/Chisinau +0 -0
  16. parrot/share/zoneinfo/Europe/Prague +0 -0
  17. parrot/share/zoneinfo/Europe/San_Marino +0 -0
  18. parrot/share/zoneinfo/Europe/Tirane +0 -0
  19. parrot/share/zoneinfo/Europe/Vaduz +0 -0
  20. parrot/share/zoneinfo/Europe/Volgograd +0 -0
  21. parrot/share/zoneinfo/Europe/Zurich +0 -0
  22. parrot/share/zoneinfo/Indian/Chagos +0 -0
  23. parrot/share/zoneinfo/Indian/Cocos +0 -0
  24. parrot/share/zoneinfo/Indian/Mauritius +0 -0
  25. parrot/share/zoneinfo/US/Michigan +0 -0
  26. videollama2/lib/python3.10/site-packages/MarkupSafe-2.1.5.dist-info/RECORD +15 -0
  27. videollama2/lib/python3.10/site-packages/nvidia/cudnn/__init__.py +0 -0
  28. videollama2/lib/python3.10/site-packages/nvidia/cudnn/lib/__init__.py +0 -0
  29. videollama2/lib/python3.10/site-packages/nvidia/nccl/__init__.py +0 -0
  30. videollama2/lib/python3.10/site-packages/nvidia/nccl/__pycache__/__init__.cpython-310.pyc +0 -0
  31. videollama2/lib/python3.10/site-packages/nvidia/nccl/include/__init__.py +0 -0
  32. videollama2/lib/python3.10/site-packages/nvidia/nccl/include/nccl_net.h +333 -0
  33. videollama2/lib/python3.10/site-packages/nvidia/nccl/lib/__init__.py +0 -0
  34. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCore.h +299 -0
  35. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCudaRt_v3.h +112 -0
  36. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCuda_v3.h +133 -0
  37. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplSync_v3.h +114 -0
  38. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInit.h +343 -0
  39. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDecls.h +73 -0
  40. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDefs.h +565 -0
  41. videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxTypes.h +333 -0
  42. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__init__.py +0 -0
  43. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_array_to_datetime.cpython-310.pyc +0 -0
  44. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_ccalendar.cpython-310.pyc +0 -0
  45. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_conversion.cpython-310.pyc +0 -0
  46. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_fields.cpython-310.pyc +0 -0
  47. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_libfrequencies.cpython-310.pyc +0 -0
  48. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_liboffsets.cpython-310.pyc +0 -0
  49. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_np_datetime.cpython-310.pyc +0 -0
  50. vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_npy_units.cpython-310.pyc +0 -0
parrot/share/zoneinfo/Africa/Dar_es_Salaam ADDED
Binary file (191 Bytes). View file
 
parrot/share/zoneinfo/Africa/Mbabane ADDED
Binary file (190 Bytes). View file
 
parrot/share/zoneinfo/Antarctica/Davis ADDED
Binary file (197 Bytes). View file
 
parrot/share/zoneinfo/Antarctica/DumontDUrville ADDED
Binary file (154 Bytes). View file
 
parrot/share/zoneinfo/Antarctica/McMurdo ADDED
Binary file (1.04 kB). View file
 
parrot/share/zoneinfo/Canada/Mountain ADDED
Binary file (970 Bytes). View file
 
parrot/share/zoneinfo/Canada/Newfoundland ADDED
Binary file (1.88 kB). View file
 
parrot/share/zoneinfo/Canada/Saskatchewan ADDED
Binary file (638 Bytes). View file
 
parrot/share/zoneinfo/Canada/Yukon ADDED
Binary file (1.03 kB). View file
 
parrot/share/zoneinfo/Europe/Andorra ADDED
Binary file (389 Bytes). View file
 
parrot/share/zoneinfo/Europe/Berlin ADDED
Binary file (705 Bytes). View file
 
parrot/share/zoneinfo/Europe/Brussels ADDED
Binary file (1.1 kB). View file
 
parrot/share/zoneinfo/Europe/Bucharest ADDED
Binary file (661 Bytes). View file
 
parrot/share/zoneinfo/Europe/Budapest ADDED
Binary file (766 Bytes). View file
 
parrot/share/zoneinfo/Europe/Chisinau ADDED
Binary file (755 Bytes). View file
 
parrot/share/zoneinfo/Europe/Prague ADDED
Binary file (723 Bytes). View file
 
parrot/share/zoneinfo/Europe/San_Marino ADDED
Binary file (947 Bytes). View file
 
parrot/share/zoneinfo/Europe/Tirane ADDED
Binary file (604 Bytes). View file
 
parrot/share/zoneinfo/Europe/Vaduz ADDED
Binary file (497 Bytes). View file
 
parrot/share/zoneinfo/Europe/Volgograd ADDED
Binary file (753 Bytes). View file
 
parrot/share/zoneinfo/Europe/Zurich ADDED
Binary file (497 Bytes). View file
 
parrot/share/zoneinfo/Indian/Chagos ADDED
Binary file (152 Bytes). View file
 
parrot/share/zoneinfo/Indian/Cocos ADDED
Binary file (187 Bytes). View file
 
parrot/share/zoneinfo/Indian/Mauritius ADDED
Binary file (179 Bytes). View file
 
parrot/share/zoneinfo/US/Michigan ADDED
Binary file (899 Bytes). View file
 
videollama2/lib/python3.10/site-packages/MarkupSafe-2.1.5.dist-info/RECORD ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MarkupSafe-2.1.5.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ MarkupSafe-2.1.5.dist-info/LICENSE.rst,sha256=SJqOEQhQntmKN7uYPhHg9-HTHwvY-Zp5yESOf_N9B-o,1475
3
+ MarkupSafe-2.1.5.dist-info/METADATA,sha256=2dRDPam6OZLfpX0wg1JN5P3u9arqACxVSfdGmsJU7o8,3003
4
+ MarkupSafe-2.1.5.dist-info/RECORD,,
5
+ MarkupSafe-2.1.5.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ MarkupSafe-2.1.5.dist-info/WHEEL,sha256=1FEjxEYgybphwh9S0FO9IcZ0B-NIeM2ko8OzhFZeOeQ,152
7
+ MarkupSafe-2.1.5.dist-info/top_level.txt,sha256=qy0Plje5IJuvsCBjejJyhDCjEAdcDLK_2agVcex8Z6U,11
8
+ markupsafe/__init__.py,sha256=r7VOTjUq7EMQ4v3p4R1LoVOGJg6ysfYRncLr34laRBs,10958
9
+ markupsafe/__pycache__/__init__.cpython-310.pyc,,
10
+ markupsafe/__pycache__/_native.cpython-310.pyc,,
11
+ markupsafe/_native.py,sha256=GR86Qvo_GcgKmKreA1WmYN9ud17OFwkww8E-fiW-57s,1713
12
+ markupsafe/_speedups.c,sha256=X2XvQVtIdcK4Usz70BvkzoOfjTCmQlDkkjYSn-swE0g,7083
13
+ markupsafe/_speedups.cpython-310-x86_64-linux-gnu.so,sha256=kPt-fhZ_RG7PUbDvwmyC26ZvRJ9DvUlF3hszBIB6_xs,44240
14
+ markupsafe/_speedups.pyi,sha256=vfMCsOgbAXRNLUXkyuyonG8uEWKYU4PDqNuMaDELAYw,229
15
+ markupsafe/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
videollama2/lib/python3.10/site-packages/nvidia/cudnn/__init__.py ADDED
File without changes
videollama2/lib/python3.10/site-packages/nvidia/cudnn/lib/__init__.py ADDED
File without changes
videollama2/lib/python3.10/site-packages/nvidia/nccl/__init__.py ADDED
File without changes
videollama2/lib/python3.10/site-packages/nvidia/nccl/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (168 Bytes). View file
 
videollama2/lib/python3.10/site-packages/nvidia/nccl/include/__init__.py ADDED
File without changes
videollama2/lib/python3.10/site-packages/nvidia/nccl/include/nccl_net.h ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*************************************************************************
2
+ * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved.
3
+ *
4
+ * See LICENSE.txt for license information
5
+ ************************************************************************/
6
+
7
+ #ifndef NCCL_NET_H_
8
+ #define NCCL_NET_H_
9
+
10
+ #include "nccl.h"
11
+ #include "nccl_common.h"
12
+ #include "net_device.h"
13
+ #include <stdint.h>
14
+
15
+ #define NCCL_NET_HANDLE_MAXSIZE 128
16
+
17
+ #define NCCL_PTR_HOST 0x1
18
+ #define NCCL_PTR_CUDA 0x2
19
+ #define NCCL_PTR_DMABUF 0x4
20
+
21
+ // Maximum number of requests per comm object
22
+ #define NCCL_NET_MAX_REQUESTS 32
23
+
24
+ typedef struct {
25
+ char* name; // Used mostly for logging.
26
+ char* pciPath; // Path to the PCI device in /sys.
27
+ uint64_t guid; // Unique identifier for the NIC chip. Important for
28
+ // cards with multiple PCI functions (Physical or virtual).
29
+ int ptrSupport; // [NCCL_PTR_HOST|NCCL_PTR_CUDA|NCCL_PTR_DMABUF]
30
+ int speed; // Port speed in Mbps.
31
+ int port; // Port number.
32
+ float latency; // Network latency
33
+ int maxComms; // Maximum number of comms we can create
34
+ int maxRecvs; // Maximum number of grouped receives.
35
+ ncclNetDeviceType netDeviceType; // Network offload type
36
+ int netDeviceVersion; // Version number for network offload
37
+ } ncclNetProperties_v7_t;
38
+
39
+ typedef ncclNetProperties_v7_t ncclNetProperties_t;
40
+
41
+ typedef struct {
42
+ // Name of the network (mainly for logs)
43
+ const char* name;
44
+ // Initialize the network.
45
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
46
+ // Return the number of adapters.
47
+ ncclResult_t (*devices)(int* ndev);
48
+ // Get various device properties.
49
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v7_t* props);
50
+ // Create a receiving object and provide a handle to connect to it. The
51
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
52
+ // between ranks to create a connection.
53
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
54
+ // Connect to a handle and return a sending comm object for that peer.
55
+ // This call must not block for the connection to be established, and instead
56
+ // should return successfully with sendComm == NULL with the expectation that
57
+ // it will be called again until sendComm != NULL.
58
+ // If *sendDevComm points to a valid object, then NCCL is requesting device offload for this connection
59
+ ncclResult_t (*connect)(int dev, void* handle, void** sendComm, ncclNetDeviceHandle_v7_t** sendDevComm);
60
+ // Finalize connection establishment after remote peer has called connect.
61
+ // This call must not block for the connection to be established, and instead
62
+ // should return successfully with recvComm == NULL with the expectation that
63
+ // it will be called again until recvComm != NULL.
64
+ // If *recvDevComm points to a valid object, then NCCL is requesting device offload for this connection
65
+ ncclResult_t (*accept)(void* listenComm, void** recvComm, ncclNetDeviceHandle_v7_t** recvDevComm);
66
+ // Register/Deregister memory. Comm can be either a sendComm or a recvComm.
67
+ // Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
68
+ ncclResult_t (*regMr)(void* comm, void* data, int size, int type, void** mhandle);
69
+ /* DMA-BUF support */
70
+ ncclResult_t (*regMrDmaBuf)(void* comm, void* data, size_t size, int type, uint64_t offset, int fd, void** mhandle);
71
+ ncclResult_t (*deregMr)(void* comm, void* mhandle);
72
+ // Asynchronous send to a peer.
73
+ // May return request == NULL if the call cannot be performed (or would block)
74
+ ncclResult_t (*isend)(void* sendComm, void* data, int size, int tag, void* mhandle, void** request);
75
+ // Asynchronous recv from a peer.
76
+ // May return request == NULL if the call cannot be performed (or would block)
77
+ ncclResult_t (*irecv)(void* recvComm, int n, void** data, int* sizes, int* tags, void** mhandles, void** request);
78
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
79
+ // visible to the GPU
80
+ ncclResult_t (*iflush)(void* recvComm, int n, void** data, int* sizes, void** mhandles, void** request);
81
+ // Test whether a request is complete. If size is not NULL, it returns the
82
+ // number of bytes sent/received.
83
+ ncclResult_t (*test)(void* request, int* done, int* sizes);
84
+ // Close and free send/recv comm objects
85
+ ncclResult_t (*closeSend)(void* sendComm);
86
+ ncclResult_t (*closeRecv)(void* recvComm);
87
+ ncclResult_t (*closeListen)(void* listenComm);
88
+
89
+ // Copy the given mhandle to a dptr in a format usable by this plugin's device code
90
+ ncclResult_t (*getDeviceMr)(void* comm, void* mhandle, void** dptr_mhandle);
91
+
92
+ // Notify the plugin that a recv has completed by the device
93
+ ncclResult_t (*irecvConsumed)(void* recvComm, int n, void* request);
94
+ } ncclNet_v7_t;
95
+
96
+ typedef ncclNet_v7_t ncclNet_t;
97
+
98
+ #define NCCL_NET_PLUGIN_SYMBOL ncclNetPlugin_v7
99
+
100
+ #define NCCL_COLLNET_PLUGIN_SYMBOL ncclCollNetPlugin_v7
101
+
102
+ #define NCCL_NET_MAX_REQUESTS_V6 8
103
+
104
+ // v6 struct for backwards compatibility
105
+ typedef struct {
106
+ char* name; // Used mostly for logging.
107
+ char* pciPath; // Path to the PCI device in /sys.
108
+ uint64_t guid; // Unique identifier for the NIC chip. Important for
109
+ // cards with multiple PCI functions (Physical or virtual).
110
+ int ptrSupport; // [NCCL_PTR_HOST|NCCL_PTR_CUDA|NCCL_PTR_DMABUF]
111
+ int speed; // Port speed in Mbps.
112
+ int port; // Port number.
113
+ float latency; // Network latency
114
+ int maxComms; // Maximum number of comms we can create
115
+ int maxRecvs; // Maximum number of grouped receives.
116
+ } ncclNetProperties_v6_t;
117
+
118
+ typedef struct {
119
+ // Name of the network (mainly for logs)
120
+ const char* name;
121
+ // Initialize the network.
122
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
123
+ // Return the number of adapters.
124
+ ncclResult_t (*devices)(int* ndev);
125
+ // Get various device properties.
126
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v6_t* props);
127
+ // Create a receiving object and provide a handle to connect to it. The
128
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
129
+ // between ranks to create a connection.
130
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
131
+ // Connect to a handle and return a sending comm object for that peer.
132
+ // This call must not block for the connection to be established, and instead
133
+ // should return successfully with sendComm == NULL with the expectation that
134
+ // it will be called again until sendComm != NULL.
135
+ ncclResult_t (*connect)(int dev, void* handle, void** sendComm);
136
+ // Finalize connection establishment after remote peer has called connect.
137
+ // This call must not block for the connection to be established, and instead
138
+ // should return successfully with recvComm == NULL with the expectation that
139
+ // it will be called again until recvComm != NULL.
140
+ ncclResult_t (*accept)(void* listenComm, void** recvComm);
141
+ // Register/Deregister memory. Comm can be either a sendComm or a recvComm.
142
+ // Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
143
+ ncclResult_t (*regMr)(void* comm, void* data, int size, int type, void** mhandle);
144
+ /* DMA-BUF support */
145
+ ncclResult_t (*regMrDmaBuf)(void* comm, void* data, size_t size, int type, uint64_t offset, int fd, void** mhandle);
146
+ ncclResult_t (*deregMr)(void* comm, void* mhandle);
147
+ // Asynchronous send to a peer.
148
+ // May return request == NULL if the call cannot be performed (or would block)
149
+ ncclResult_t (*isend)(void* sendComm, void* data, int size, int tag, void* mhandle, void** request);
150
+ // Asynchronous recv from a peer.
151
+ // May return request == NULL if the call cannot be performed (or would block)
152
+ ncclResult_t (*irecv)(void* recvComm, int n, void** data, int* sizes, int* tags, void** mhandles, void** request);
153
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
154
+ // visible to the GPU
155
+ ncclResult_t (*iflush)(void* recvComm, int n, void** data, int* sizes, void** mhandles, void** request);
156
+ // Test whether a request is complete. If size is not NULL, it returns the
157
+ // number of bytes sent/received.
158
+ ncclResult_t (*test)(void* request, int* done, int* sizes);
159
+ // Close and free send/recv comm objects
160
+ ncclResult_t (*closeSend)(void* sendComm);
161
+ ncclResult_t (*closeRecv)(void* recvComm);
162
+ ncclResult_t (*closeListen)(void* listenComm);
163
+ } ncclNet_v6_t;
164
+
165
+ typedef struct {
166
+ // Name of the collective network (mainly for logs)
167
+ const char* name;
168
+ // Initialize the collective network.
169
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
170
+ // Return the number of adapters capable of doing collective operations.
171
+ // If ndev returns 0, all other functions might be set to NULL.
172
+ ncclResult_t (*devices)(int* ndev);
173
+ // Get various device properties.
174
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v7_t* props);
175
+ // Create a receiving object and provide a handle to connect to it. The
176
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
177
+ // between ranks to create connections.
178
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
179
+ // Create a group for collective operations. handles have been created
180
+ // using listen() above. rank indicates caller's rank in the collective network.
181
+ ncclResult_t (*connect)(void* handles[], int nranks, int rank, void* listenComm, void** collComm);
182
+ // Returns whether a reduction operation on a data type is supported.
183
+ // 1 for supported, 0 otherwise.
184
+ ncclResult_t (*reduceSupport)(ncclDataType_t dataType, ncclRedOp_t redOp, int* supported);
185
+ // Register/Deregister memory. Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
186
+ ncclResult_t (*regMr)(void* collComm, void* data, int size, int type, void** mhandle);
187
+ /* DMA-BUF support */
188
+ ncclResult_t (*regMrDmaBuf)(void* collComm, void* data, size_t size, int type, uint64_t offset, int fd, void** mhandle);
189
+ ncclResult_t (*deregMr)(void* collComm, void* mhandle);
190
+ // Performs an asynchronous allreduce operation on the collective group.
191
+ // May return request == NULL if the call cannot be performed (or would block).
192
+ ncclResult_t (*iallreduce)(void* collComm, void* sendData, void* recvData, int count,
193
+ ncclDataType_t dataType, ncclRedOp_t redOp, void* sendMhandle, void* recvMhandle, void** request);
194
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
195
+ // visible to the GPU
196
+ ncclResult_t (*iflush)(void* collComm, void* data, int size, void* mhandle, void** request);
197
+ // Test whether a request is complete. If size is not NULL, it returns the
198
+ // number of bytes sent/received.
199
+ ncclResult_t (*test)(void* request, int* done, int* size);
200
+ // Close and free collective comm objects
201
+ ncclResult_t (*closeColl)(void* collComm);
202
+ ncclResult_t (*closeListen)(void* listenComm);
203
+ } ncclCollNet_v7_t;
204
+
205
+ typedef ncclCollNet_v7_t ncclCollNet_t;
206
+
207
+ // v6 struct for backwards compatibility
208
+ typedef struct {
209
+ // Name of the collective network (mainly for logs)
210
+ const char* name;
211
+ // Initialize the collective network.
212
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
213
+ // Return the number of adapters capable of doing collective operations.
214
+ // If ndev returns 0, all other functions might be set to NULL.
215
+ ncclResult_t (*devices)(int* ndev);
216
+ // Get various device properties.
217
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v6_t* props);
218
+ // Create a receiving object and provide a handle to connect to it. The
219
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
220
+ // between ranks to create connections.
221
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
222
+ // Create a group for collective operations. handles have been created
223
+ // using listen() above. rank indicates caller's rank in the collective network.
224
+ ncclResult_t (*connect)(void* handles[], int nranks, int rank, void* listenComm, void** collComm);
225
+ // Returns whether a reduction operation on a data type is supported.
226
+ // 1 for supported, 0 otherwise.
227
+ ncclResult_t (*reduceSupport)(ncclDataType_t dataType, ncclRedOp_t redOp, int* supported);
228
+ // Register/Deregister memory. Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
229
+ ncclResult_t (*regMr)(void* collComm, void* data, int size, int type, void** mhandle);
230
+ /* DMA-BUF support */
231
+ ncclResult_t (*regMrDmaBuf)(void* collComm, void* data, size_t size, int type, uint64_t offset, int fd, void** mhandle);
232
+ ncclResult_t (*deregMr)(void* collComm, void* mhandle);
233
+ // Performs an asynchronous allreduce operation on the collective group.
234
+ // May return request == NULL if the call cannot be performed (or would block).
235
+ ncclResult_t (*iallreduce)(void* collComm, void* sendData, void* recvData, int count,
236
+ ncclDataType_t dataType, ncclRedOp_t redOp, void* sendMhandle, void* recvMhandle, void** request);
237
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
238
+ // visible to the GPU
239
+ ncclResult_t (*iflush)(void* collComm, void* data, int size, void* mhandle, void** request);
240
+ // Test whether a request is complete. If size is not NULL, it returns the
241
+ // number of bytes sent/received.
242
+ ncclResult_t (*test)(void* request, int* done, int* size);
243
+ // Close and free collective comm objects
244
+ ncclResult_t (*closeColl)(void* collComm);
245
+ ncclResult_t (*closeListen)(void* listenComm);
246
+ } ncclCollNet_v6_t;
247
+
248
+ // v5 struct for backwards compatibility
249
+ typedef struct {
250
+ // Name of the network (mainly for logs)
251
+ const char* name;
252
+ // Initialize the network.
253
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
254
+ // Return the number of adapters.
255
+ ncclResult_t (*devices)(int* ndev);
256
+ // Get various device properties.
257
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v6_t* props);
258
+ // Create a receiving object and provide a handle to connect to it. The
259
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
260
+ // between ranks to create a connection.
261
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
262
+ // Connect to a handle and return a sending comm object for that peer.
263
+ // This call must not block for the connection to be established, and instead
264
+ // should return successfully with sendComm == NULL with the expectation that
265
+ // it will be called again until sendComm != NULL.
266
+ ncclResult_t (*connect)(int dev, void* handle, void** sendComm);
267
+ // Finalize connection establishment after remote peer has called connect.
268
+ // This call must not block for the connection to be established, and instead
269
+ // should return successfully with recvComm == NULL with the expectation that
270
+ // it will be called again until recvComm != NULL.
271
+ ncclResult_t (*accept)(void* listenComm, void** recvComm);
272
+ // Register/Deregister memory. Comm can be either a sendComm or a recvComm.
273
+ // Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
274
+ ncclResult_t (*regMr)(void* comm, void* data, int size, int type, void** mhandle);
275
+ ncclResult_t (*deregMr)(void* comm, void* mhandle);
276
+ // Asynchronous send to a peer.
277
+ // May return request == NULL if the call cannot be performed (or would block)
278
+ ncclResult_t (*isend)(void* sendComm, void* data, int size, int tag, void* mhandle, void** request);
279
+ // Asynchronous recv from a peer.
280
+ // May return request == NULL if the call cannot be performed (or would block)
281
+ ncclResult_t (*irecv)(void* recvComm, int n, void** data, int* sizes, int* tags, void** mhandles, void** request);
282
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
283
+ // visible to the GPU
284
+ ncclResult_t (*iflush)(void* recvComm, int n, void** data, int* sizes, void** mhandles, void** request);
285
+ // Test whether a request is complete. If size is not NULL, it returns the
286
+ // number of bytes sent/received.
287
+ ncclResult_t (*test)(void* request, int* done, int* sizes);
288
+ // Close and free send/recv comm objects
289
+ ncclResult_t (*closeSend)(void* sendComm);
290
+ ncclResult_t (*closeRecv)(void* recvComm);
291
+ ncclResult_t (*closeListen)(void* listenComm);
292
+ } ncclNet_v5_t;
293
+
294
+ // v5 struct for backwards compatibility
295
+ typedef struct {
296
+ // Name of the collective network (mainly for logs)
297
+ const char* name;
298
+ // Initialize the collective network.
299
+ ncclResult_t (*init)(ncclDebugLogger_t logFunction);
300
+ // Return the number of adapters capable of doing collective operations.
301
+ // If ndev returns 0, all other functions might be set to NULL.
302
+ ncclResult_t (*devices)(int* ndev);
303
+ // Get various device properties.
304
+ ncclResult_t (*getProperties)(int dev, ncclNetProperties_v6_t* props);
305
+ // Create a receiving object and provide a handle to connect to it. The
306
+ // handle can be up to NCCL_NET_HANDLE_MAXSIZE bytes and will be exchanged
307
+ // between ranks to create connections.
308
+ ncclResult_t (*listen)(int dev, void* handle, void** listenComm);
309
+ // Create a group for collective operations. handles have been created
310
+ // using listen() above. rank indicates caller's rank in the collective network.
311
+ ncclResult_t (*connect)(void* handles[], int nranks, int rank, void* listenComm, void** collComm);
312
+ // Returns whether a reduction operation on a data type is supported.
313
+ // 1 for supported, 0 otherwise.
314
+ ncclResult_t (*reduceSupport)(ncclDataType_t dataType, ncclRedOp_t redOp, int* supported);
315
+ // Register/Deregister memory. Type is either NCCL_PTR_HOST or NCCL_PTR_CUDA.
316
+ ncclResult_t (*regMr)(void* collComm, void* data, int size, int type, void** mhandle);
317
+ ncclResult_t (*deregMr)(void* collComm, void* mhandle);
318
+ // Performs an asynchronous allreduce operation on the collective group.
319
+ // May return request == NULL if the call cannot be performed (or would block).
320
+ ncclResult_t (*iallreduce)(void* collComm, void* sendData, void* recvData, int count,
321
+ ncclDataType_t dataType, ncclRedOp_t redOp, void* sendMhandle, void* recvMhandle, void** request);
322
+ // Perform a flush/fence to make sure all data received with NCCL_PTR_CUDA is
323
+ // visible to the GPU
324
+ ncclResult_t (*iflush)(void* collComm, void* data, int size, void* mhandle, void** request);
325
+ // Test whether a request is complete. If size is not NULL, it returns the
326
+ // number of bytes sent/received.
327
+ ncclResult_t (*test)(void* request, int* done, int* size);
328
+ // Close and free collective comm objects
329
+ ncclResult_t (*closeColl)(void* collComm);
330
+ ncclResult_t (*closeListen)(void* listenComm);
331
+ } ncclCollNet_v5_t;
332
+
333
+ #endif // end include guard
videollama2/lib/python3.10/site-packages/nvidia/nccl/lib/__init__.py ADDED
File without changes
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCore.h ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NVTX_DECLSPEC void NVTX_API nvtxMarkEx(const nvtxEventAttributes_t* eventAttrib)
2
+ {
3
+ #ifndef NVTX_DISABLE
4
+ nvtxMarkEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkEx_impl_fnptr;
5
+ if(local!=0)
6
+ (*local)(eventAttrib);
7
+ #endif /*NVTX_DISABLE*/
8
+ }
9
+
10
+ NVTX_DECLSPEC void NVTX_API nvtxMarkA(const char* message)
11
+ {
12
+ #ifndef NVTX_DISABLE
13
+ nvtxMarkA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkA_impl_fnptr;
14
+ if(local!=0)
15
+ (*local)(message);
16
+ #endif /*NVTX_DISABLE*/
17
+ }
18
+
19
+ NVTX_DECLSPEC void NVTX_API nvtxMarkW(const wchar_t* message)
20
+ {
21
+ #ifndef NVTX_DISABLE
22
+ nvtxMarkW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkW_impl_fnptr;
23
+ if(local!=0)
24
+ (*local)(message);
25
+ #endif /*NVTX_DISABLE*/
26
+ }
27
+
28
+ NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartEx(const nvtxEventAttributes_t* eventAttrib)
29
+ {
30
+ #ifndef NVTX_DISABLE
31
+ nvtxRangeStartEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartEx_impl_fnptr;
32
+ if(local!=0)
33
+ return (*local)(eventAttrib);
34
+ else
35
+ #endif /*NVTX_DISABLE*/
36
+ return (nvtxRangeId_t)0;
37
+ }
38
+
39
+ NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartA(const char* message)
40
+ {
41
+ #ifndef NVTX_DISABLE
42
+ nvtxRangeStartA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartA_impl_fnptr;
43
+ if(local!=0)
44
+ return (*local)(message);
45
+ else
46
+ #endif /*NVTX_DISABLE*/
47
+ return (nvtxRangeId_t)0;
48
+ }
49
+
50
+ NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartW(const wchar_t* message)
51
+ {
52
+ #ifndef NVTX_DISABLE
53
+ nvtxRangeStartW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartW_impl_fnptr;
54
+ if(local!=0)
55
+ return (*local)(message);
56
+ else
57
+ #endif /*NVTX_DISABLE*/
58
+ return (nvtxRangeId_t)0;
59
+ }
60
+
61
+ NVTX_DECLSPEC void NVTX_API nvtxRangeEnd(nvtxRangeId_t id)
62
+ {
63
+ #ifndef NVTX_DISABLE
64
+ nvtxRangeEnd_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeEnd_impl_fnptr;
65
+ if(local!=0)
66
+ (*local)(id);
67
+ #endif /*NVTX_DISABLE*/
68
+ }
69
+
70
+ NVTX_DECLSPEC int NVTX_API nvtxRangePushEx(const nvtxEventAttributes_t* eventAttrib)
71
+ {
72
+ #ifndef NVTX_DISABLE
73
+ nvtxRangePushEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushEx_impl_fnptr;
74
+ if(local!=0)
75
+ return (*local)(eventAttrib);
76
+ else
77
+ #endif /*NVTX_DISABLE*/
78
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
79
+ }
80
+
81
+ NVTX_DECLSPEC int NVTX_API nvtxRangePushA(const char* message)
82
+ {
83
+ #ifndef NVTX_DISABLE
84
+ nvtxRangePushA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushA_impl_fnptr;
85
+ if(local!=0)
86
+ return (*local)(message);
87
+ else
88
+ #endif /*NVTX_DISABLE*/
89
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
90
+ }
91
+
92
+ NVTX_DECLSPEC int NVTX_API nvtxRangePushW(const wchar_t* message)
93
+ {
94
+ #ifndef NVTX_DISABLE
95
+ nvtxRangePushW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushW_impl_fnptr;
96
+ if(local!=0)
97
+ return (*local)(message);
98
+ else
99
+ #endif /*NVTX_DISABLE*/
100
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
101
+ }
102
+
103
+ NVTX_DECLSPEC int NVTX_API nvtxRangePop(void)
104
+ {
105
+ #ifndef NVTX_DISABLE
106
+ nvtxRangePop_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePop_impl_fnptr;
107
+ if(local!=0)
108
+ return (*local)();
109
+ else
110
+ #endif /*NVTX_DISABLE*/
111
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
112
+ }
113
+
114
+ NVTX_DECLSPEC void NVTX_API nvtxNameCategoryA(uint32_t category, const char* name)
115
+ {
116
+ #ifndef NVTX_DISABLE
117
+ nvtxNameCategoryA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryA_impl_fnptr;
118
+ if(local!=0)
119
+ (*local)(category, name);
120
+ #endif /*NVTX_DISABLE*/
121
+ }
122
+
123
+ NVTX_DECLSPEC void NVTX_API nvtxNameCategoryW(uint32_t category, const wchar_t* name)
124
+ {
125
+ #ifndef NVTX_DISABLE
126
+ nvtxNameCategoryW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryW_impl_fnptr;
127
+ if(local!=0)
128
+ (*local)(category, name);
129
+ #endif /*NVTX_DISABLE*/
130
+ }
131
+
132
+ NVTX_DECLSPEC void NVTX_API nvtxNameOsThreadA(uint32_t threadId, const char* name)
133
+ {
134
+ #ifndef NVTX_DISABLE
135
+ nvtxNameOsThreadA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadA_impl_fnptr;
136
+ if(local!=0)
137
+ (*local)(threadId, name);
138
+ #endif /*NVTX_DISABLE*/
139
+ }
140
+
141
+ NVTX_DECLSPEC void NVTX_API nvtxNameOsThreadW(uint32_t threadId, const wchar_t* name)
142
+ {
143
+ #ifndef NVTX_DISABLE
144
+ nvtxNameOsThreadW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadW_impl_fnptr;
145
+ if(local!=0)
146
+ (*local)(threadId, name);
147
+ #endif /*NVTX_DISABLE*/
148
+ }
149
+
150
+ NVTX_DECLSPEC void NVTX_API nvtxDomainMarkEx(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib)
151
+ {
152
+ #ifndef NVTX_DISABLE
153
+ nvtxDomainMarkEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainMarkEx_impl_fnptr;
154
+ if(local!=0)
155
+ (*local)(domain, eventAttrib);
156
+ #endif /*NVTX_DISABLE*/
157
+ }
158
+
159
+ NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxDomainRangeStartEx(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib)
160
+ {
161
+ #ifndef NVTX_DISABLE
162
+ nvtxDomainRangeStartEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeStartEx_impl_fnptr;
163
+ if(local!=0)
164
+ return (*local)(domain, eventAttrib);
165
+ else
166
+ #endif /*NVTX_DISABLE*/
167
+ return (nvtxRangeId_t)0;
168
+ }
169
+
170
+ NVTX_DECLSPEC void NVTX_API nvtxDomainRangeEnd(nvtxDomainHandle_t domain, nvtxRangeId_t id)
171
+ {
172
+ #ifndef NVTX_DISABLE
173
+ nvtxDomainRangeEnd_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeEnd_impl_fnptr;
174
+ if(local!=0)
175
+ (*local)(domain, id);
176
+ #endif /*NVTX_DISABLE*/
177
+ }
178
+
179
+ NVTX_DECLSPEC int NVTX_API nvtxDomainRangePushEx(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib)
180
+ {
181
+ #ifndef NVTX_DISABLE
182
+ nvtxDomainRangePushEx_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePushEx_impl_fnptr;
183
+ if(local!=0)
184
+ return (*local)(domain, eventAttrib);
185
+ else
186
+ #endif /*NVTX_DISABLE*/
187
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
188
+ }
189
+
190
+ NVTX_DECLSPEC int NVTX_API nvtxDomainRangePop(nvtxDomainHandle_t domain)
191
+ {
192
+ #ifndef NVTX_DISABLE
193
+ nvtxDomainRangePop_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePop_impl_fnptr;
194
+ if(local!=0)
195
+ return (*local)(domain);
196
+ else
197
+ #endif /*NVTX_DISABLE*/
198
+ return (int)NVTX_NO_PUSH_POP_TRACKING;
199
+ }
200
+
201
+ NVTX_DECLSPEC nvtxResourceHandle_t NVTX_API nvtxDomainResourceCreate(nvtxDomainHandle_t domain, nvtxResourceAttributes_t* attribs)
202
+ {
203
+ #ifndef NVTX_DISABLE
204
+ nvtxDomainResourceCreate_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceCreate_impl_fnptr;
205
+ if(local!=0)
206
+ return (*local)(domain, attribs);
207
+ else
208
+ #endif /*NVTX_DISABLE*/
209
+ return (nvtxResourceHandle_t)0;
210
+ }
211
+
212
+ NVTX_DECLSPEC void NVTX_API nvtxDomainResourceDestroy(nvtxResourceHandle_t resource)
213
+ {
214
+ #ifndef NVTX_DISABLE
215
+ nvtxDomainResourceDestroy_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceDestroy_impl_fnptr;
216
+ if(local!=0)
217
+ (*local)(resource);
218
+ #endif /*NVTX_DISABLE*/
219
+ }
220
+
221
+ NVTX_DECLSPEC void NVTX_API nvtxDomainNameCategoryA(nvtxDomainHandle_t domain, uint32_t category, const char* name)
222
+ {
223
+ #ifndef NVTX_DISABLE
224
+ nvtxDomainNameCategoryA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryA_impl_fnptr;
225
+ if(local!=0)
226
+ (*local)(domain, category, name);
227
+ #endif /*NVTX_DISABLE*/
228
+ }
229
+
230
+ NVTX_DECLSPEC void NVTX_API nvtxDomainNameCategoryW(nvtxDomainHandle_t domain, uint32_t category, const wchar_t* name)
231
+ {
232
+ #ifndef NVTX_DISABLE
233
+ nvtxDomainNameCategoryW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryW_impl_fnptr;
234
+ if(local!=0)
235
+ (*local)(domain, category, name);
236
+ #endif /*NVTX_DISABLE*/
237
+ }
238
+
239
+ NVTX_DECLSPEC nvtxStringHandle_t NVTX_API nvtxDomainRegisterStringA(nvtxDomainHandle_t domain, const char* string)
240
+ {
241
+ #ifndef NVTX_DISABLE
242
+ nvtxDomainRegisterStringA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringA_impl_fnptr;
243
+ if(local!=0)
244
+ return (*local)(domain, string);
245
+ else
246
+ #endif /*NVTX_DISABLE*/
247
+ return (nvtxStringHandle_t)0;
248
+ }
249
+
250
+ NVTX_DECLSPEC nvtxStringHandle_t NVTX_API nvtxDomainRegisterStringW(nvtxDomainHandle_t domain, const wchar_t* string)
251
+ {
252
+ #ifndef NVTX_DISABLE
253
+ nvtxDomainRegisterStringW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringW_impl_fnptr;
254
+ if(local!=0)
255
+ return (*local)(domain, string);
256
+ else
257
+ #endif /*NVTX_DISABLE*/
258
+ return (nvtxStringHandle_t)0;
259
+ }
260
+
261
+ NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API nvtxDomainCreateA(const char* message)
262
+ {
263
+ #ifndef NVTX_DISABLE
264
+ nvtxDomainCreateA_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateA_impl_fnptr;
265
+ if(local!=0)
266
+ return (*local)(message);
267
+ else
268
+ #endif /*NVTX_DISABLE*/
269
+ return (nvtxDomainHandle_t)0;
270
+ }
271
+
272
+ NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API nvtxDomainCreateW(const wchar_t* message)
273
+ {
274
+ #ifndef NVTX_DISABLE
275
+ nvtxDomainCreateW_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateW_impl_fnptr;
276
+ if(local!=0)
277
+ return (*local)(message);
278
+ else
279
+ #endif /*NVTX_DISABLE*/
280
+ return (nvtxDomainHandle_t)0;
281
+ }
282
+
283
+ NVTX_DECLSPEC void NVTX_API nvtxDomainDestroy(nvtxDomainHandle_t domain)
284
+ {
285
+ #ifndef NVTX_DISABLE
286
+ nvtxDomainDestroy_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainDestroy_impl_fnptr;
287
+ if(local!=0)
288
+ (*local)(domain);
289
+ #endif /*NVTX_DISABLE*/
290
+ }
291
+
292
+ NVTX_DECLSPEC void NVTX_API nvtxInitialize(const void* reserved)
293
+ {
294
+ #ifndef NVTX_DISABLE
295
+ nvtxInitialize_impl_fntype local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxInitialize_impl_fnptr;
296
+ if(local!=0)
297
+ (*local)(reserved);
298
+ #endif /*NVTX_DISABLE*/
299
+ }
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCudaRt_v3.h ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This file was procedurally generated! Do not modify this file by hand. */
2
+
3
+ /*
4
+ * Copyright 2009-2016 NVIDIA Corporation. All rights reserved.
5
+ *
6
+ * NOTICE TO USER:
7
+ *
8
+ * This source code is subject to NVIDIA ownership rights under U.S. and
9
+ * international Copyright laws.
10
+ *
11
+ * This software and the information contained herein is PROPRIETARY and
12
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and conditions
13
+ * of a form of NVIDIA software license agreement.
14
+ *
15
+ * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
16
+ * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
17
+ * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
18
+ * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
20
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
21
+ * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
22
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
24
+ * OR PERFORMANCE OF THIS SOURCE CODE.
25
+ *
26
+ * U.S. Government End Users. This source code is a "commercial item" as
27
+ * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
28
+ * "commercial computer software" and "commercial computer software
29
+ * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
30
+ * and is provided to the U.S. Government only as a commercial end item.
31
+ * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
32
+ * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
33
+ * source code with only those rights set forth herein.
34
+ *
35
+ * Any use of this source code in individual and commercial software must
36
+ * include, in the user documentation and internal comments to the code,
37
+ * the above Disclaimer and U.S. Government End Users Notice.
38
+ */
39
+
40
+ #ifndef NVTX_IMPL_GUARD_CUDART
41
+ #error Never include this file directly -- it is automatically included by nvToolsExtCudaRt.h (except when NVTX_NO_IMPL is defined).
42
+ #endif
43
+
44
+ #ifdef __cplusplus
45
+ extern "C" {
46
+ #endif /* __cplusplus */
47
+
48
+ //typedef void (NVTX_API * nvtxNameCudaDeviceA_impl_fntype)(int device, const char* name);
49
+ //typedef void (NVTX_API * nvtxNameCudaDeviceW_impl_fntype)(int device, const wchar_t* name);
50
+ typedef void (NVTX_API * nvtxNameCudaStreamA_impl_fntype)(cudaStream_t stream, const char* name);
51
+ typedef void (NVTX_API * nvtxNameCudaStreamW_impl_fntype)(cudaStream_t stream, const wchar_t* name);
52
+ typedef void (NVTX_API * nvtxNameCudaEventA_impl_fntype)(cudaEvent_t event, const char* name);
53
+ typedef void (NVTX_API * nvtxNameCudaEventW_impl_fntype)(cudaEvent_t event, const wchar_t* name);
54
+
55
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaDeviceA(int device, const char* name)
56
+ {
57
+ #ifndef NVTX_DISABLE
58
+ nvtxNameCudaDeviceA_impl_fntype local = (nvtxNameCudaDeviceA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceA_impl_fnptr;
59
+ if(local!=0)
60
+ (*local)(device, name);
61
+ #endif /*NVTX_DISABLE*/
62
+ }
63
+
64
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaDeviceW(int device, const wchar_t* name)
65
+ {
66
+ #ifndef NVTX_DISABLE
67
+ nvtxNameCudaDeviceW_impl_fntype local = (nvtxNameCudaDeviceW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceW_impl_fnptr;
68
+ if(local!=0)
69
+ (*local)(device, name);
70
+ #endif /*NVTX_DISABLE*/
71
+ }
72
+
73
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaStreamA(cudaStream_t stream, const char* name)
74
+ {
75
+ #ifndef NVTX_DISABLE
76
+ nvtxNameCudaStreamA_impl_fntype local = (nvtxNameCudaStreamA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamA_impl_fnptr;
77
+ if(local!=0)
78
+ (*local)(stream, name);
79
+ #endif /*NVTX_DISABLE*/
80
+ }
81
+
82
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaStreamW(cudaStream_t stream, const wchar_t* name)
83
+ {
84
+ #ifndef NVTX_DISABLE
85
+ nvtxNameCudaStreamW_impl_fntype local = (nvtxNameCudaStreamW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamW_impl_fnptr;
86
+ if(local!=0)
87
+ (*local)(stream, name);
88
+ #endif /*NVTX_DISABLE*/
89
+ }
90
+
91
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaEventA(cudaEvent_t event, const char* name)
92
+ {
93
+ #ifndef NVTX_DISABLE
94
+ nvtxNameCudaEventA_impl_fntype local = (nvtxNameCudaEventA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventA_impl_fnptr;
95
+ if(local!=0)
96
+ (*local)(event, name);
97
+ #endif /*NVTX_DISABLE*/
98
+ }
99
+
100
+ NVTX_DECLSPEC void NVTX_API nvtxNameCudaEventW(cudaEvent_t event, const wchar_t* name)
101
+ {
102
+ #ifndef NVTX_DISABLE
103
+ nvtxNameCudaEventW_impl_fntype local = (nvtxNameCudaEventW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventW_impl_fnptr;
104
+ if(local!=0)
105
+ (*local)(event, name);
106
+ #endif /*NVTX_DISABLE*/
107
+ }
108
+
109
+ #ifdef __cplusplus
110
+ } /* extern "C" */
111
+ #endif /* __cplusplus */
112
+
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCuda_v3.h ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This file was procedurally generated! Do not modify this file by hand. */
2
+
3
+ /*
4
+ * Copyright 2009-2016 NVIDIA Corporation. All rights reserved.
5
+ *
6
+ * NOTICE TO USER:
7
+ *
8
+ * This source code is subject to NVIDIA ownership rights under U.S. and
9
+ * international Copyright laws.
10
+ *
11
+ * This software and the information contained herein is PROPRIETARY and
12
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and conditions
13
+ * of a form of NVIDIA software license agreement.
14
+ *
15
+ * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
16
+ * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
17
+ * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
18
+ * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
20
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
21
+ * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
22
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
24
+ * OR PERFORMANCE OF THIS SOURCE CODE.
25
+ *
26
+ * U.S. Government End Users. This source code is a "commercial item" as
27
+ * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
28
+ * "commercial computer software" and "commercial computer software
29
+ * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
30
+ * and is provided to the U.S. Government only as a commercial end item.
31
+ * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
32
+ * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
33
+ * source code with only those rights set forth herein.
34
+ *
35
+ * Any use of this source code in individual and commercial software must
36
+ * include, in the user documentation and internal comments to the code,
37
+ * the above Disclaimer and U.S. Government End Users Notice.
38
+ */
39
+
40
+ #ifndef NVTX_IMPL_GUARD_CUDA
41
+ #error Never include this file directly -- it is automatically included by nvToolsExtCuda.h (except when NVTX_NO_IMPL is defined).
42
+ #endif
43
+
44
+
45
+ #ifdef __cplusplus
46
+ extern "C" {
47
+ #endif /* __cplusplus */
48
+
49
+ typedef void (NVTX_API * nvtxNameCuDeviceA_impl_fntype)(CUdevice device, const char* name);
50
+ typedef void (NVTX_API * nvtxNameCuDeviceW_impl_fntype)(CUdevice device, const wchar_t* name);
51
+ typedef void (NVTX_API * nvtxNameCuContextA_impl_fntype)(CUcontext context, const char* name);
52
+ typedef void (NVTX_API * nvtxNameCuContextW_impl_fntype)(CUcontext context, const wchar_t* name);
53
+ typedef void (NVTX_API * nvtxNameCuStreamA_impl_fntype)(CUstream stream, const char* name);
54
+ typedef void (NVTX_API * nvtxNameCuStreamW_impl_fntype)(CUstream stream, const wchar_t* name);
55
+ typedef void (NVTX_API * nvtxNameCuEventA_impl_fntype)(CUevent event, const char* name);
56
+ typedef void (NVTX_API * nvtxNameCuEventW_impl_fntype)(CUevent event, const wchar_t* name);
57
+
58
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuDeviceA(CUdevice device, const char* name)
59
+ {
60
+ #ifndef NVTX_DISABLE
61
+ nvtxNameCuDeviceA_impl_fntype local = (nvtxNameCuDeviceA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceA_impl_fnptr;
62
+ if(local!=0)
63
+ (*local)(device, name);
64
+ #endif /*NVTX_DISABLE*/
65
+ }
66
+
67
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuDeviceW(CUdevice device, const wchar_t* name)
68
+ {
69
+ #ifndef NVTX_DISABLE
70
+ nvtxNameCuDeviceW_impl_fntype local = (nvtxNameCuDeviceW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceW_impl_fnptr;
71
+ if(local!=0)
72
+ (*local)(device, name);
73
+ #endif /*NVTX_DISABLE*/
74
+ }
75
+
76
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuContextA(CUcontext context, const char* name)
77
+ {
78
+ #ifndef NVTX_DISABLE
79
+ nvtxNameCuContextA_impl_fntype local = (nvtxNameCuContextA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextA_impl_fnptr;
80
+ if(local!=0)
81
+ (*local)(context, name);
82
+ #endif /*NVTX_DISABLE*/
83
+ }
84
+
85
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuContextW(CUcontext context, const wchar_t* name)
86
+ {
87
+ #ifndef NVTX_DISABLE
88
+ nvtxNameCuContextW_impl_fntype local = (nvtxNameCuContextW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextW_impl_fnptr;
89
+ if(local!=0)
90
+ (*local)(context, name);
91
+ #endif /*NVTX_DISABLE*/
92
+ }
93
+
94
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuStreamA(CUstream stream, const char* name)
95
+ {
96
+ #ifndef NVTX_DISABLE
97
+ nvtxNameCuStreamA_impl_fntype local = (nvtxNameCuStreamA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamA_impl_fnptr;
98
+ if(local!=0)
99
+ (*local)(stream, name);
100
+ #endif /*NVTX_DISABLE*/
101
+ }
102
+
103
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuStreamW(CUstream stream, const wchar_t* name)
104
+ {
105
+ #ifndef NVTX_DISABLE
106
+ nvtxNameCuStreamW_impl_fntype local = (nvtxNameCuStreamW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamW_impl_fnptr;
107
+ if(local!=0)
108
+ (*local)(stream, name);
109
+ #endif /*NVTX_DISABLE*/
110
+ }
111
+
112
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuEventA(CUevent event, const char* name)
113
+ {
114
+ #ifndef NVTX_DISABLE
115
+ nvtxNameCuEventA_impl_fntype local = (nvtxNameCuEventA_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventA_impl_fnptr;
116
+ if(local!=0)
117
+ (*local)(event, name);
118
+ #endif /*NVTX_DISABLE*/
119
+ }
120
+
121
+ NVTX_DECLSPEC void NVTX_API nvtxNameCuEventW(CUevent event, const wchar_t* name)
122
+ {
123
+ #ifndef NVTX_DISABLE
124
+ nvtxNameCuEventW_impl_fntype local = (nvtxNameCuEventW_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventW_impl_fnptr;
125
+ if(local!=0)
126
+ (*local)(event, name);
127
+ #endif /*NVTX_DISABLE*/
128
+ }
129
+
130
+ #ifdef __cplusplus
131
+ } /* extern "C" */
132
+ #endif /* __cplusplus */
133
+
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplSync_v3.h ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This file was procedurally generated! Do not modify this file by hand. */
2
+
3
+ /*
4
+ * Copyright 2009-2016 NVIDIA Corporation. All rights reserved.
5
+ *
6
+ * NOTICE TO USER:
7
+ *
8
+ * This source code is subject to NVIDIA ownership rights under U.S. and
9
+ * international Copyright laws.
10
+ *
11
+ * This software and the information contained herein is PROPRIETARY and
12
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and conditions
13
+ * of a form of NVIDIA software license agreement.
14
+ *
15
+ * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
16
+ * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
17
+ * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
18
+ * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
20
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
21
+ * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
22
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
24
+ * OR PERFORMANCE OF THIS SOURCE CODE.
25
+ *
26
+ * U.S. Government End Users. This source code is a "commercial item" as
27
+ * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
28
+ * "commercial computer software" and "commercial computer software
29
+ * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
30
+ * and is provided to the U.S. Government only as a commercial end item.
31
+ * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
32
+ * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
33
+ * source code with only those rights set forth herein.
34
+ *
35
+ * Any use of this source code in individual and commercial software must
36
+ * include, in the user documentation and internal comments to the code,
37
+ * the above Disclaimer and U.S. Government End Users Notice.
38
+ */
39
+
40
+ #ifndef NVTX_IMPL_GUARD_SYNC
41
+ #error Never include this file directly -- it is automatically included by nvToolsExtCuda.h (except when NVTX_NO_IMPL is defined).
42
+ #endif
43
+
44
+
45
+ #ifdef __cplusplus
46
+ extern "C" {
47
+ #endif /* __cplusplus */
48
+
49
+ typedef nvtxSyncUser_t (NVTX_API * nvtxDomainSyncUserCreate_impl_fntype)(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t* attribs);
50
+ typedef void (NVTX_API * nvtxDomainSyncUserDestroy_impl_fntype)(nvtxSyncUser_t handle);
51
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireStart_impl_fntype)(nvtxSyncUser_t handle);
52
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireFailed_impl_fntype)(nvtxSyncUser_t handle);
53
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireSuccess_impl_fntype)(nvtxSyncUser_t handle);
54
+ typedef void (NVTX_API * nvtxDomainSyncUserReleasing_impl_fntype)(nvtxSyncUser_t handle);
55
+
56
+ NVTX_DECLSPEC nvtxSyncUser_t NVTX_API nvtxDomainSyncUserCreate(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t* attribs)
57
+ {
58
+ #ifndef NVTX_DISABLE
59
+ nvtxDomainSyncUserCreate_impl_fntype local = (nvtxDomainSyncUserCreate_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserCreate_impl_fnptr;
60
+ if(local!=0)
61
+ return (*local)(domain, attribs);
62
+ else
63
+ #endif /*NVTX_DISABLE*/
64
+ return (nvtxSyncUser_t)0;
65
+ }
66
+
67
+ NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserDestroy(nvtxSyncUser_t handle)
68
+ {
69
+ #ifndef NVTX_DISABLE
70
+ nvtxDomainSyncUserDestroy_impl_fntype local = (nvtxDomainSyncUserDestroy_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserDestroy_impl_fnptr;
71
+ if(local!=0)
72
+ (*local)(handle);
73
+ #endif /*NVTX_DISABLE*/
74
+ }
75
+
76
+ NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireStart(nvtxSyncUser_t handle)
77
+ {
78
+ #ifndef NVTX_DISABLE
79
+ nvtxDomainSyncUserAcquireStart_impl_fntype local = (nvtxDomainSyncUserAcquireStart_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireStart_impl_fnptr;
80
+ if(local!=0)
81
+ (*local)(handle);
82
+ #endif /*NVTX_DISABLE*/
83
+ }
84
+
85
+ NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireFailed(nvtxSyncUser_t handle)
86
+ {
87
+ #ifndef NVTX_DISABLE
88
+ nvtxDomainSyncUserAcquireFailed_impl_fntype local = (nvtxDomainSyncUserAcquireFailed_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireFailed_impl_fnptr;
89
+ if(local!=0)
90
+ (*local)(handle);
91
+ #endif /*NVTX_DISABLE*/
92
+ }
93
+
94
+ NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireSuccess(nvtxSyncUser_t handle)
95
+ {
96
+ #ifndef NVTX_DISABLE
97
+ nvtxDomainSyncUserAcquireSuccess_impl_fntype local = (nvtxDomainSyncUserAcquireSuccess_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireSuccess_impl_fnptr;
98
+ if(local!=0)
99
+ (*local)(handle);
100
+ #endif /*NVTX_DISABLE*/
101
+ }
102
+
103
+ NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserReleasing(nvtxSyncUser_t handle)
104
+ {
105
+ #ifndef NVTX_DISABLE
106
+ nvtxDomainSyncUserReleasing_impl_fntype local = (nvtxDomainSyncUserReleasing_impl_fntype)NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserReleasing_impl_fnptr;
107
+ if(local!=0)
108
+ (*local)(handle);
109
+ #endif /*NVTX_DISABLE*/
110
+ }
111
+
112
+ #ifdef __cplusplus
113
+ } /* extern "C" */
114
+ #endif /* __cplusplus */
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInit.h ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This file was procedurally generated! Do not modify this file by hand. */
2
+
3
+ /*
4
+ * Copyright 2009-2016 NVIDIA Corporation. All rights reserved.
5
+ *
6
+ * NOTICE TO USER:
7
+ *
8
+ * This source code is subject to NVIDIA ownership rights under U.S. and
9
+ * international Copyright laws.
10
+ *
11
+ * This software and the information contained herein is PROPRIETARY and
12
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and conditions
13
+ * of a form of NVIDIA software license agreement.
14
+ *
15
+ * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
16
+ * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
17
+ * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
18
+ * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
20
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
21
+ * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
22
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
24
+ * OR PERFORMANCE OF THIS SOURCE CODE.
25
+ *
26
+ * U.S. Government End Users. This source code is a "commercial item" as
27
+ * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
28
+ * "commercial computer software" and "commercial computer software
29
+ * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
30
+ * and is provided to the U.S. Government only as a commercial end item.
31
+ * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
32
+ * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
33
+ * source code with only those rights set forth herein.
34
+ *
35
+ * Any use of this source code in individual and commercial software must
36
+ * include, in the user documentation and internal comments to the code,
37
+ * the above Disclaimer and U.S. Government End Users Notice.
38
+ */
39
+
40
+ #ifndef NVTX_IMPL_GUARD
41
+ #error Never include this file directly -- it is automatically included by nvToolsExt.h (except when NVTX_NO_IMPL is defined).
42
+ #endif
43
+
44
+ /* ---- Platform-independent helper definitions and functions ---- */
45
+
46
+ /* Prefer macros over inline functions to reduce symbol resolution at link time */
47
+
48
+ #if defined(_WIN32)
49
+ #define NVTX_PATHCHAR wchar_t
50
+ #define NVTX_STR(x) L##x
51
+ #define NVTX_GETENV _wgetenv
52
+ #define NVTX_BUFSIZE MAX_PATH
53
+ #define NVTX_DLLHANDLE HMODULE
54
+ #define NVTX_DLLOPEN(x) LoadLibraryW(x)
55
+ #define NVTX_DLLFUNC GetProcAddress
56
+ #define NVTX_DLLCLOSE FreeLibrary
57
+ #define NVTX_YIELD() SwitchToThread()
58
+ #define NVTX_MEMBAR() MemoryBarrier()
59
+ #define NVTX_ATOMIC_WRITE_32(address, value) InterlockedExchange((volatile LONG*)address, value)
60
+ #define NVTX_ATOMIC_CAS_32(old, address, exchange, comparand) old = InterlockedCompareExchange((volatile LONG*)address, exchange, comparand)
61
+ #elif defined(__GNUC__)
62
+ #define NVTX_PATHCHAR char
63
+ #define NVTX_STR(x) x
64
+ #define NVTX_GETENV getenv
65
+ #define NVTX_BUFSIZE PATH_MAX
66
+ #define NVTX_DLLHANDLE void*
67
+ #define NVTX_DLLOPEN(x) dlopen(x, RTLD_LAZY)
68
+ #define NVTX_DLLFUNC dlsym
69
+ #define NVTX_DLLCLOSE dlclose
70
+ #define NVTX_YIELD() sched_yield()
71
+ #define NVTX_MEMBAR() __sync_synchronize()
72
+ /* Ensure full memory barrier for atomics, to match Windows functions */
73
+ #define NVTX_ATOMIC_WRITE_32(address, value) __sync_synchronize(); __sync_lock_test_and_set(address, value)
74
+ #define NVTX_ATOMIC_CAS_32(old, address, exchange, comparand) __sync_synchronize(); old = __sync_val_compare_and_swap(address, exchange, comparand)
75
+ #else
76
+ #error The library does not support your configuration!
77
+ #endif
78
+
79
+ /* Define this to 1 for platforms that where pre-injected libraries can be discovered. */
80
+ #if defined(_WIN32)
81
+ /* TODO */
82
+ #define NVTX_SUPPORT_ALREADY_INJECTED_LIBRARY 0
83
+ #else
84
+ #define NVTX_SUPPORT_ALREADY_INJECTED_LIBRARY 0
85
+ #endif
86
+
87
+ /* Define this to 1 for platforms that support environment variables */
88
+ /* TODO: Detect UWP, a.k.a. Windows Store app, and set this to 0. */
89
+ /* Try: #if defined(WINAPI_FAMILY_PARTITION) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
90
+ #define NVTX_SUPPORT_ENV_VARS 1
91
+
92
+ /* Define this to 1 for platforms that support dynamic/shared libraries */
93
+ #define NVTX_SUPPORT_DYNAMIC_INJECTION_LIBRARY 1
94
+
95
+ /* Injection libraries implementing InitializeInjectionNvtx2 may be statically linked,
96
+ * and this will override any dynamic injection. Useful for platforms where dynamic
97
+ * injection is not available. Since weak symbols not explicitly marked extern are
98
+ * guaranteed to be initialized to zero if no definitions are found by the linker, the
99
+ * dynamic injection process proceeds normally if pfnInitializeInjectionNvtx2 is 0. */
100
+ #if defined(__GNUC__) && !defined(_WIN32) && !defined(__CYGWIN__)
101
+ #define NVTX_SUPPORT_STATIC_INJECTION_LIBRARY 1
102
+ /* To statically inject an NVTX library, define InitializeInjectionNvtx2_fnptr as a normal
103
+ * symbol (not weak) pointing to the implementation of InitializeInjectionNvtx2 (which
104
+ * does not need to be named "InitializeInjectionNvtx2" as is necessary in a dynamic
105
+ * injection library. */
106
+ __attribute__((weak)) NvtxInitializeInjectionNvtxFunc_t InitializeInjectionNvtx2_fnptr;
107
+ #else
108
+ #define NVTX_SUPPORT_STATIC_INJECTION_LIBRARY 0
109
+ #endif
110
+
111
+ /* This function tries to find or load an NVTX injection library and get the
112
+ * address of its InitializeInjection2 function. If such a function pointer
113
+ * is found, it is called, and passed the address of this NVTX instance's
114
+ * nvtxGetExportTable function, so the injection can attach to this instance.
115
+ * If the initialization fails for any reason, any dynamic library loaded will
116
+ * be freed, and all NVTX implementation functions will be set to no-ops. If
117
+ * initialization succeeds, NVTX functions not attached to the tool will be set
118
+ * to no-ops. This is implemented as one function instead of several small
119
+ * functions to minimize the number of weak symbols the linker must resolve.
120
+ * Order of search is:
121
+ * - Pre-injected library exporting InitializeInjectionNvtx2
122
+ * - Loadable library exporting InitializeInjectionNvtx2
123
+ * - Path specified by env var NVTX_INJECTION??_PATH (?? is 32 or 64)
124
+ * - On Android, libNvtxInjection??.so within the package (?? is 32 or 64)
125
+ * - Statically-linked injection library defining InitializeInjectionNvtx2_fnptr
126
+ */
127
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_VERSIONED_IDENTIFIER(nvtxInitializeInjectionLibrary)(void);
128
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_VERSIONED_IDENTIFIER(nvtxInitializeInjectionLibrary)(void)
129
+ {
130
+ const char* const initFuncName = "InitializeInjectionNvtx2";
131
+ NvtxInitializeInjectionNvtxFunc_t init_fnptr = (NvtxInitializeInjectionNvtxFunc_t)0;
132
+ NVTX_DLLHANDLE injectionLibraryHandle = (NVTX_DLLHANDLE)0;
133
+ int entryPointStatus = 0;
134
+
135
+ #if NVTX_SUPPORT_ALREADY_INJECTED_LIBRARY
136
+ /* Use POSIX global symbol chain to query for init function from any module */
137
+ init_fnptr = (NvtxInitializeInjectionNvtxFunc_t)NVTX_DLLFUNC(0, initFuncName);
138
+ #endif
139
+
140
+ #if NVTX_SUPPORT_DYNAMIC_INJECTION_LIBRARY
141
+ /* Try discovering dynamic injection library to load */
142
+ if (!init_fnptr)
143
+ {
144
+ #if NVTX_SUPPORT_ENV_VARS
145
+ /* If env var NVTX_INJECTION64_PATH is set, it should contain the path
146
+ * to a 64-bit dynamic NVTX injection library (and similar for 32-bit). */
147
+ const NVTX_PATHCHAR* const nvtxEnvVarName = (sizeof(void*) == 4)
148
+ ? NVTX_STR("NVTX_INJECTION32_PATH")
149
+ : NVTX_STR("NVTX_INJECTION64_PATH");
150
+ #endif /* NVTX_SUPPORT_ENV_VARS */
151
+ NVTX_PATHCHAR injectionLibraryPathBuf[NVTX_BUFSIZE];
152
+ const NVTX_PATHCHAR* injectionLibraryPath = (const NVTX_PATHCHAR*)0;
153
+
154
+ /* Refer to this variable explicitly in case all references to it are #if'ed out */
155
+ (void)injectionLibraryPathBuf;
156
+
157
+ #if NVTX_SUPPORT_ENV_VARS
158
+ /* Disable the warning for getenv & _wgetenv -- this usage is safe because
159
+ * these functions are not called again before using the returned value. */
160
+ #if defined(_MSC_VER)
161
+ #pragma warning( push )
162
+ #pragma warning( disable : 4996 )
163
+ #endif
164
+ injectionLibraryPath = NVTX_GETENV(nvtxEnvVarName);
165
+ #if defined(_MSC_VER)
166
+ #pragma warning( pop )
167
+ #endif
168
+ #endif
169
+
170
+ #if defined(__ANDROID__)
171
+ if (!injectionLibraryPath)
172
+ {
173
+ const char *bits = (sizeof(void*) == 4) ? "32" : "64";
174
+ char cmdlineBuf[32];
175
+ char pkgName[PATH_MAX];
176
+ int count;
177
+ int pid;
178
+ FILE *fp;
179
+ size_t bytesRead;
180
+ size_t pos;
181
+
182
+ pid = (int)getpid();
183
+ count = snprintf(cmdlineBuf, sizeof(cmdlineBuf), "/proc/%d/cmdline", pid);
184
+ if (count <= 0 || count >= (int)sizeof(cmdlineBuf))
185
+ {
186
+ NVTX_ERR("Path buffer too small for: /proc/%d/cmdline\n", pid);
187
+ return NVTX_ERR_INIT_ACCESS_LIBRARY;
188
+ }
189
+
190
+ fp = fopen(cmdlineBuf, "r");
191
+ if (!fp)
192
+ {
193
+ NVTX_ERR("File couldn't be opened: %s\n", cmdlineBuf);
194
+ return NVTX_ERR_INIT_ACCESS_LIBRARY;
195
+ }
196
+
197
+ bytesRead = fread(pkgName, 1, sizeof(pkgName) - 1, fp);
198
+ fclose(fp);
199
+ if (bytesRead == 0)
200
+ {
201
+ NVTX_ERR("Package name couldn't be read from file: %s\n", cmdlineBuf);
202
+ return NVTX_ERR_INIT_ACCESS_LIBRARY;
203
+ }
204
+
205
+ pkgName[bytesRead] = 0;
206
+
207
+ /* String can contain colon as a process separator. In this case the package name is before the colon. */
208
+ pos = 0;
209
+ while (pos < bytesRead && pkgName[pos] != ':' && pkgName[pos] != '\0')
210
+ {
211
+ ++pos;
212
+ }
213
+ pkgName[pos] = 0;
214
+
215
+ count = snprintf(injectionLibraryPathBuf, NVTX_BUFSIZE, "/data/data/%s/files/libNvtxInjection%s.so", pkgName, bits);
216
+ if (count <= 0 || count >= NVTX_BUFSIZE)
217
+ {
218
+ NVTX_ERR("Path buffer too small for: /data/data/%s/files/libNvtxInjection%s.so\n", pkgName, bits);
219
+ return NVTX_ERR_INIT_ACCESS_LIBRARY;
220
+ }
221
+
222
+ /* On Android, verify path is accessible due to aggressive file access restrictions. */
223
+ /* For dlopen, if the filename contains a leading slash, then it is interpreted as a */
224
+ /* relative or absolute pathname; otherwise it will follow the rules in ld.so. */
225
+ if (injectionLibraryPathBuf[0] == '/')
226
+ {
227
+ #if (__ANDROID_API__ < 21)
228
+ int access_err = access(injectionLibraryPathBuf, F_OK | R_OK);
229
+ #else
230
+ int access_err = faccessat(AT_FDCWD, injectionLibraryPathBuf, F_OK | R_OK, 0);
231
+ #endif
232
+ if (access_err != 0)
233
+ {
234
+ NVTX_ERR("Injection library path wasn't accessible [code=%s] [path=%s]\n", strerror(errno), injectionLibraryPathBuf);
235
+ return NVTX_ERR_INIT_ACCESS_LIBRARY;
236
+ }
237
+ }
238
+ injectionLibraryPath = injectionLibraryPathBuf;
239
+ }
240
+ #endif
241
+
242
+ /* At this point, injectionLibraryPath is specified if a dynamic
243
+ * injection library was specified by a tool. */
244
+ if (injectionLibraryPath)
245
+ {
246
+ /* Load the injection library */
247
+ injectionLibraryHandle = NVTX_DLLOPEN(injectionLibraryPath);
248
+ if (!injectionLibraryHandle)
249
+ {
250
+ NVTX_ERR("Failed to load injection library\n");
251
+ return NVTX_ERR_INIT_LOAD_LIBRARY;
252
+ }
253
+ else
254
+ {
255
+ /* Attempt to get the injection library's entry-point */
256
+ init_fnptr = (NvtxInitializeInjectionNvtxFunc_t)NVTX_DLLFUNC(injectionLibraryHandle, initFuncName);
257
+ if (!init_fnptr)
258
+ {
259
+ NVTX_DLLCLOSE(injectionLibraryHandle);
260
+ NVTX_ERR("Failed to get address of function InitializeInjectionNvtx2 from injection library\n");
261
+ return NVTX_ERR_INIT_MISSING_LIBRARY_ENTRY_POINT;
262
+ }
263
+ }
264
+ }
265
+ }
266
+ #endif
267
+
268
+ #if NVTX_SUPPORT_STATIC_INJECTION_LIBRARY
269
+ if (!init_fnptr)
270
+ {
271
+ /* Check weakly-defined function pointer. A statically-linked injection can define this as
272
+ * a normal symbol and it will take precedence over a dynamic injection. */
273
+ if (InitializeInjectionNvtx2_fnptr)
274
+ {
275
+ init_fnptr = InitializeInjectionNvtx2_fnptr;
276
+ }
277
+ }
278
+ #endif
279
+
280
+ /* At this point, if init_fnptr is not set, then no tool has specified
281
+ * an NVTX injection library -- return non-success result so all NVTX
282
+ * API functions will be set to no-ops. */
283
+ if (!init_fnptr)
284
+ {
285
+ return NVTX_ERR_NO_INJECTION_LIBRARY_AVAILABLE;
286
+ }
287
+
288
+ /* Invoke injection library's initialization function. If it returns
289
+ * 0 (failure) and a dynamic injection was loaded, unload it. */
290
+ entryPointStatus = init_fnptr(NVTX_VERSIONED_IDENTIFIER(nvtxGetExportTable));
291
+ if (entryPointStatus == 0)
292
+ {
293
+ NVTX_ERR("Failed to initialize injection library -- initialization function returned 0\n");
294
+ if (injectionLibraryHandle)
295
+ {
296
+ NVTX_DLLCLOSE(injectionLibraryHandle);
297
+ }
298
+ return NVTX_ERR_INIT_FAILED_LIBRARY_ENTRY_POINT;
299
+ }
300
+
301
+ return NVTX_SUCCESS;
302
+ }
303
+
304
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)(void)
305
+ {
306
+ unsigned int old;
307
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).initState == NVTX_INIT_STATE_COMPLETE)
308
+ {
309
+ return;
310
+ }
311
+
312
+ NVTX_ATOMIC_CAS_32(
313
+ old,
314
+ &NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).initState,
315
+ NVTX_INIT_STATE_STARTED,
316
+ NVTX_INIT_STATE_FRESH);
317
+ if (old == NVTX_INIT_STATE_FRESH)
318
+ {
319
+ int result;
320
+ int forceAllToNoops;
321
+
322
+ /* Load & initialize injection library -- it will assign the function pointers */
323
+ result = NVTX_VERSIONED_IDENTIFIER(nvtxInitializeInjectionLibrary)();
324
+
325
+ /* Set all pointers not assigned by the injection to null */
326
+ forceAllToNoops = result != NVTX_SUCCESS; /* Set all to null if injection init failed */
327
+ NVTX_VERSIONED_IDENTIFIER(nvtxSetInitFunctionsToNoops)(forceAllToNoops);
328
+
329
+ /* Signal that initialization has finished, so now the assigned function pointers will be used */
330
+ NVTX_ATOMIC_WRITE_32(
331
+ &NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).initState,
332
+ NVTX_INIT_STATE_COMPLETE);
333
+ }
334
+ else /* Spin-wait until initialization has finished */
335
+ {
336
+ NVTX_MEMBAR();
337
+ while (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).initState != NVTX_INIT_STATE_COMPLETE)
338
+ {
339
+ NVTX_YIELD();
340
+ NVTX_MEMBAR();
341
+ }
342
+ }
343
+ }
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDecls.h ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NVTX_IMPL_GUARD
2
+ #error Never include this file directly -- it is automatically included by nvToolsExt.h (except when NVTX_NO_IMPL is defined).
3
+ #endif
4
+
5
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkEx_impl_init)(const nvtxEventAttributes_t* eventAttrib);
6
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkA_impl_init)(const char* message);
7
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkW_impl_init)(const wchar_t* message);
8
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartEx_impl_init)(const nvtxEventAttributes_t* eventAttrib);
9
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartA_impl_init)(const char* message);
10
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartW_impl_init)(const wchar_t* message);
11
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeEnd_impl_init)(nvtxRangeId_t id);
12
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushEx_impl_init)(const nvtxEventAttributes_t* eventAttrib);
13
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushA_impl_init)(const char* message);
14
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushW_impl_init)(const wchar_t* message);
15
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePop_impl_init)(void);
16
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryA_impl_init)(uint32_t category, const char* name);
17
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryW_impl_init)(uint32_t category, const wchar_t* name);
18
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadA_impl_init)(uint32_t threadId, const char* name);
19
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadW_impl_init)(uint32_t threadId, const wchar_t* name);
20
+
21
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceA_impl_init)(nvtx_CUdevice device, const char* name);
22
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceW_impl_init)(nvtx_CUdevice device, const wchar_t* name);
23
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextA_impl_init)(nvtx_CUcontext context, const char* name);
24
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextW_impl_init)(nvtx_CUcontext context, const wchar_t* name);
25
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamA_impl_init)(nvtx_CUstream stream, const char* name);
26
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamW_impl_init)(nvtx_CUstream stream, const wchar_t* name);
27
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventA_impl_init)(nvtx_CUevent event, const char* name);
28
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventW_impl_init)(nvtx_CUevent event, const wchar_t* name);
29
+
30
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceA_impl_init)(nvtx_cl_device_id device, const char* name);
31
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceW_impl_init)(nvtx_cl_device_id device, const wchar_t* name);
32
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextA_impl_init)(nvtx_cl_context context, const char* name);
33
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextW_impl_init)(nvtx_cl_context context, const wchar_t* name);
34
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueA_impl_init)(nvtx_cl_command_queue command_queue, const char* name);
35
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueW_impl_init)(nvtx_cl_command_queue command_queue, const wchar_t* name);
36
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectA_impl_init)(nvtx_cl_mem memobj, const char* name);
37
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectW_impl_init)(nvtx_cl_mem memobj, const wchar_t* name);
38
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerA_impl_init)(nvtx_cl_sampler sampler, const char* name);
39
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerW_impl_init)(nvtx_cl_sampler sampler, const wchar_t* name);
40
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramA_impl_init)(nvtx_cl_program program, const char* name);
41
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramW_impl_init)(nvtx_cl_program program, const wchar_t* name);
42
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventA_impl_init)(nvtx_cl_event evnt, const char* name);
43
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventW_impl_init)(nvtx_cl_event evnt, const wchar_t* name);
44
+
45
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceA_impl_init)(int device, const char* name);
46
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceW_impl_init)(int device, const wchar_t* name);
47
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamA_impl_init)(nvtx_cudaStream_t stream, const char* name);
48
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamW_impl_init)(nvtx_cudaStream_t stream, const wchar_t* name);
49
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventA_impl_init)(nvtx_cudaEvent_t event, const char* name);
50
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventW_impl_init)(nvtx_cudaEvent_t event, const wchar_t* name);
51
+
52
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainMarkEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
53
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeStartEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
54
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeEnd_impl_init)(nvtxDomainHandle_t domain, nvtxRangeId_t id);
55
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePushEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
56
+ NVTX_LINKONCE_FWDDECL_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePop_impl_init)(nvtxDomainHandle_t domain);
57
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxResourceHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceCreate_impl_init)(nvtxDomainHandle_t domain, nvtxResourceAttributes_t* attribs);
58
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceDestroy_impl_init)(nvtxResourceHandle_t resource);
59
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryA_impl_init)(nvtxDomainHandle_t domain, uint32_t category, const char* name);
60
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryW_impl_init)(nvtxDomainHandle_t domain, uint32_t category, const wchar_t* name);
61
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxStringHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringA_impl_init)(nvtxDomainHandle_t domain, const char* string);
62
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxStringHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringW_impl_init)(nvtxDomainHandle_t domain, const wchar_t* string);
63
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxDomainHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateA_impl_init)(const char* message);
64
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxDomainHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateW_impl_init)(const wchar_t* message);
65
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainDestroy_impl_init)(nvtxDomainHandle_t domain);
66
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxInitialize_impl_init)(const void* reserved);
67
+
68
+ NVTX_LINKONCE_FWDDECL_FUNCTION nvtxSyncUser_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserCreate_impl_init)(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t* attribs);
69
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserDestroy_impl_init)(nvtxSyncUser_t handle);
70
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireStart_impl_init)(nvtxSyncUser_t handle);
71
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireFailed_impl_init)(nvtxSyncUser_t handle);
72
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireSuccess_impl_init)(nvtxSyncUser_t handle);
73
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserReleasing_impl_init)(nvtxSyncUser_t handle);
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDefs.h ADDED
@@ -0,0 +1,565 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NVTX_IMPL_GUARD
2
+ #error Never include this file directly -- it is automatically included by nvToolsExt.h (except when NVTX_NO_IMPL is defined).
3
+ #endif
4
+
5
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkEx_impl_init)(const nvtxEventAttributes_t* eventAttrib){
6
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
7
+ nvtxMarkEx(eventAttrib);
8
+ }
9
+
10
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkA_impl_init)(const char* message){
11
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
12
+ nvtxMarkA(message);
13
+ }
14
+
15
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxMarkW_impl_init)(const wchar_t* message){
16
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
17
+ nvtxMarkW(message);
18
+ }
19
+
20
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartEx_impl_init)(const nvtxEventAttributes_t* eventAttrib){
21
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
22
+ return nvtxRangeStartEx(eventAttrib);
23
+ }
24
+
25
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartA_impl_init)(const char* message){
26
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
27
+ return nvtxRangeStartA(message);
28
+ }
29
+
30
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartW_impl_init)(const wchar_t* message){
31
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
32
+ return nvtxRangeStartW(message);
33
+ }
34
+
35
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangeEnd_impl_init)(nvtxRangeId_t id){
36
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
37
+ nvtxRangeEnd(id);
38
+ }
39
+
40
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushEx_impl_init)(const nvtxEventAttributes_t* eventAttrib){
41
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
42
+ return nvtxRangePushEx(eventAttrib);
43
+ }
44
+
45
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushA_impl_init)(const char* message){
46
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
47
+ return nvtxRangePushA(message);
48
+ }
49
+
50
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePushW_impl_init)(const wchar_t* message){
51
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
52
+ return nvtxRangePushW(message);
53
+ }
54
+
55
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxRangePop_impl_init)(void){
56
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
57
+ return nvtxRangePop();
58
+ }
59
+
60
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryA_impl_init)(uint32_t category, const char* name){
61
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
62
+ nvtxNameCategoryA(category, name);
63
+ }
64
+
65
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryW_impl_init)(uint32_t category, const wchar_t* name){
66
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
67
+ nvtxNameCategoryW(category, name);
68
+ }
69
+
70
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadA_impl_init)(uint32_t threadId, const char* name){
71
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
72
+ nvtxNameOsThreadA(threadId, name);
73
+ }
74
+
75
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadW_impl_init)(uint32_t threadId, const wchar_t* name){
76
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
77
+ nvtxNameOsThreadW(threadId, name);
78
+ }
79
+
80
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainMarkEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib){
81
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
82
+ nvtxDomainMarkEx(domain, eventAttrib);
83
+ }
84
+
85
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxRangeId_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeStartEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib){
86
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
87
+ return nvtxDomainRangeStartEx(domain, eventAttrib);
88
+ }
89
+
90
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeEnd_impl_init)(nvtxDomainHandle_t domain, nvtxRangeId_t id){
91
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
92
+ nvtxDomainRangeEnd(domain, id);
93
+ }
94
+
95
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePushEx_impl_init)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib){
96
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
97
+ return nvtxDomainRangePushEx(domain, eventAttrib);
98
+ }
99
+
100
+ NVTX_LINKONCE_DEFINE_FUNCTION int NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePop_impl_init)(nvtxDomainHandle_t domain){
101
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
102
+ return nvtxDomainRangePop(domain);
103
+ }
104
+
105
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxResourceHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceCreate_impl_init)(nvtxDomainHandle_t domain, nvtxResourceAttributes_t* attribs){
106
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
107
+ return nvtxDomainResourceCreate(domain, attribs);
108
+ }
109
+
110
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceDestroy_impl_init)(nvtxResourceHandle_t resource){
111
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
112
+ nvtxDomainResourceDestroy(resource);
113
+ }
114
+
115
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryA_impl_init)(nvtxDomainHandle_t domain, uint32_t category, const char* name){
116
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
117
+ nvtxDomainNameCategoryA(domain, category, name);
118
+ }
119
+
120
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryW_impl_init)(nvtxDomainHandle_t domain, uint32_t category, const wchar_t* name){
121
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
122
+ nvtxDomainNameCategoryW(domain, category, name);
123
+ }
124
+
125
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxStringHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringA_impl_init)(nvtxDomainHandle_t domain, const char* string){
126
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
127
+ return nvtxDomainRegisterStringA(domain, string);
128
+ }
129
+
130
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxStringHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringW_impl_init)(nvtxDomainHandle_t domain, const wchar_t* string){
131
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
132
+ return nvtxDomainRegisterStringW(domain, string);
133
+ }
134
+
135
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxDomainHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateA_impl_init)(const char* message){
136
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
137
+ return nvtxDomainCreateA(message);
138
+ }
139
+
140
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxDomainHandle_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateW_impl_init)(const wchar_t* message){
141
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
142
+ return nvtxDomainCreateW(message);
143
+ }
144
+
145
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainDestroy_impl_init)(nvtxDomainHandle_t domain){
146
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
147
+ nvtxDomainDestroy(domain);
148
+ }
149
+
150
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxInitialize_impl_init)(const void* reserved){
151
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
152
+ nvtxInitialize(reserved);
153
+ }
154
+
155
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceA_impl_init)(nvtx_CUdevice device, const char* name){
156
+ nvtxNameCuDeviceA_fakeimpl_fntype local;
157
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
158
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceA_impl_fnptr;
159
+ if (local)
160
+ local(device, name);
161
+ }
162
+
163
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceW_impl_init)(nvtx_CUdevice device, const wchar_t* name){
164
+ nvtxNameCuDeviceW_fakeimpl_fntype local;
165
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
166
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceW_impl_fnptr;
167
+ if (local)
168
+ local(device, name);
169
+ }
170
+
171
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextA_impl_init)(nvtx_CUcontext context, const char* name){
172
+ nvtxNameCuContextA_fakeimpl_fntype local;
173
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
174
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextA_impl_fnptr;
175
+ if (local)
176
+ local(context, name);
177
+ }
178
+
179
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextW_impl_init)(nvtx_CUcontext context, const wchar_t* name){
180
+ nvtxNameCuContextW_fakeimpl_fntype local;
181
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
182
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextW_impl_fnptr;
183
+ if (local)
184
+ local(context, name);
185
+ }
186
+
187
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamA_impl_init)(nvtx_CUstream stream, const char* name){
188
+ nvtxNameCuStreamA_fakeimpl_fntype local;
189
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
190
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamA_impl_fnptr;
191
+ if (local)
192
+ local(stream, name);
193
+ }
194
+
195
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamW_impl_init)(nvtx_CUstream stream, const wchar_t* name){
196
+ nvtxNameCuStreamW_fakeimpl_fntype local;
197
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
198
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamW_impl_fnptr;
199
+ if (local)
200
+ local(stream, name);
201
+ }
202
+
203
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventA_impl_init)(nvtx_CUevent event, const char* name){
204
+ nvtxNameCuEventA_fakeimpl_fntype local;
205
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
206
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventA_impl_fnptr;
207
+ if (local)
208
+ local(event, name);
209
+ }
210
+
211
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventW_impl_init)(nvtx_CUevent event, const wchar_t* name){
212
+ nvtxNameCuEventW_fakeimpl_fntype local;
213
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
214
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventW_impl_fnptr;
215
+ if (local)
216
+ local(event, name);
217
+ }
218
+
219
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceA_impl_init)(int device, const char* name){
220
+ nvtxNameCudaDeviceA_impl_fntype local;
221
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
222
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceA_impl_fnptr;
223
+ if (local)
224
+ local(device, name);
225
+ }
226
+
227
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceW_impl_init)(int device, const wchar_t* name){
228
+ nvtxNameCudaDeviceW_impl_fntype local;
229
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
230
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceW_impl_fnptr;
231
+ if (local)
232
+ local(device, name);
233
+ }
234
+
235
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamA_impl_init)(nvtx_cudaStream_t stream, const char* name){
236
+ nvtxNameCudaStreamA_fakeimpl_fntype local;
237
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
238
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamA_impl_fnptr;
239
+ if (local)
240
+ local(stream, name);
241
+ }
242
+
243
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamW_impl_init)(nvtx_cudaStream_t stream, const wchar_t* name){
244
+ nvtxNameCudaStreamW_fakeimpl_fntype local;
245
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
246
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamW_impl_fnptr;
247
+ if (local)
248
+ local(stream, name);
249
+ }
250
+
251
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventA_impl_init)(nvtx_cudaEvent_t event, const char* name){
252
+ nvtxNameCudaEventA_fakeimpl_fntype local;
253
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
254
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventA_impl_fnptr;
255
+ if (local)
256
+ local(event, name);
257
+ }
258
+
259
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventW_impl_init)(nvtx_cudaEvent_t event, const wchar_t* name){
260
+ nvtxNameCudaEventW_fakeimpl_fntype local;
261
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
262
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventW_impl_fnptr;
263
+ if (local)
264
+ local(event, name);
265
+ }
266
+
267
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceA_impl_init)(nvtx_cl_device_id device, const char* name){
268
+ nvtxNameClDeviceA_fakeimpl_fntype local;
269
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
270
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceA_impl_fnptr;
271
+ if (local)
272
+ local(device, name);
273
+ }
274
+
275
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceW_impl_init)(nvtx_cl_device_id device, const wchar_t* name){
276
+ nvtxNameClDeviceW_fakeimpl_fntype local;
277
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
278
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceW_impl_fnptr;
279
+ if (local)
280
+ local(device, name);
281
+ }
282
+
283
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextA_impl_init)(nvtx_cl_context context, const char* name){
284
+ nvtxNameClContextA_fakeimpl_fntype local;
285
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
286
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextA_impl_fnptr;
287
+ if (local)
288
+ local(context, name);
289
+ }
290
+
291
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextW_impl_init)(nvtx_cl_context context, const wchar_t* name){
292
+ nvtxNameClContextW_fakeimpl_fntype local;
293
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
294
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextW_impl_fnptr;
295
+ if (local)
296
+ local(context, name);
297
+ }
298
+
299
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueA_impl_init)(nvtx_cl_command_queue command_queue, const char* name){
300
+ nvtxNameClCommandQueueA_fakeimpl_fntype local;
301
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
302
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueA_impl_fnptr;
303
+ if (local)
304
+ local(command_queue, name);
305
+ }
306
+
307
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueW_impl_init)(nvtx_cl_command_queue command_queue, const wchar_t* name){
308
+ nvtxNameClCommandQueueW_fakeimpl_fntype local;
309
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
310
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueW_impl_fnptr;
311
+ if (local)
312
+ local(command_queue, name);
313
+ }
314
+
315
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectA_impl_init)(nvtx_cl_mem memobj, const char* name){
316
+ nvtxNameClMemObjectA_fakeimpl_fntype local;
317
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
318
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectA_impl_fnptr;
319
+ if (local)
320
+ local(memobj, name);
321
+ }
322
+
323
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectW_impl_init)(nvtx_cl_mem memobj, const wchar_t* name){
324
+ nvtxNameClMemObjectW_fakeimpl_fntype local;
325
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
326
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectW_impl_fnptr;
327
+ if (local)
328
+ local(memobj, name);
329
+ }
330
+
331
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerA_impl_init)(nvtx_cl_sampler sampler, const char* name){
332
+ nvtxNameClSamplerA_fakeimpl_fntype local;
333
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
334
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerA_impl_fnptr;
335
+ if (local)
336
+ local(sampler, name);
337
+ }
338
+
339
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerW_impl_init)(nvtx_cl_sampler sampler, const wchar_t* name){
340
+ nvtxNameClSamplerW_fakeimpl_fntype local;
341
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
342
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerW_impl_fnptr;
343
+ if (local)
344
+ local(sampler, name);
345
+ }
346
+
347
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramA_impl_init)(nvtx_cl_program program, const char* name){
348
+ nvtxNameClProgramA_fakeimpl_fntype local;
349
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
350
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramA_impl_fnptr;
351
+ if (local)
352
+ local(program, name);
353
+ }
354
+
355
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramW_impl_init)(nvtx_cl_program program, const wchar_t* name){
356
+ nvtxNameClProgramW_fakeimpl_fntype local;
357
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
358
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramW_impl_fnptr;
359
+ if (local)
360
+ local(program, name);
361
+ }
362
+
363
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventA_impl_init)(nvtx_cl_event evnt, const char* name){
364
+ nvtxNameClEventA_fakeimpl_fntype local;
365
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
366
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventA_impl_fnptr;
367
+ if (local)
368
+ local(evnt, name);
369
+ }
370
+
371
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventW_impl_init)(nvtx_cl_event evnt, const wchar_t* name){
372
+ nvtxNameClEventW_fakeimpl_fntype local;
373
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
374
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventW_impl_fnptr;
375
+ if (local)
376
+ local(evnt, name);
377
+ }
378
+
379
+ NVTX_LINKONCE_DEFINE_FUNCTION nvtxSyncUser_t NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserCreate_impl_init)(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t* attribs){
380
+ nvtxDomainSyncUserCreate_impl_fntype local;
381
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
382
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserCreate_impl_fnptr;
383
+ if (local) {
384
+ return local(domain, attribs);
385
+ }
386
+ return (nvtxSyncUser_t)0;
387
+ }
388
+
389
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserDestroy_impl_init)(nvtxSyncUser_t handle){
390
+ nvtxDomainSyncUserDestroy_impl_fntype local;
391
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
392
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserDestroy_impl_fnptr;
393
+ if (local)
394
+ local(handle);
395
+ }
396
+
397
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireStart_impl_init)(nvtxSyncUser_t handle){
398
+ nvtxDomainSyncUserAcquireStart_impl_fntype local;
399
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
400
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireStart_impl_fnptr;
401
+ if (local)
402
+ local(handle);
403
+ }
404
+
405
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireFailed_impl_init)(nvtxSyncUser_t handle){
406
+ nvtxDomainSyncUserAcquireFailed_impl_fntype local;
407
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
408
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireFailed_impl_fnptr;
409
+ if (local)
410
+ local(handle);
411
+ }
412
+
413
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireSuccess_impl_init)(nvtxSyncUser_t handle){
414
+ nvtxDomainSyncUserAcquireSuccess_impl_fntype local;
415
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
416
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireSuccess_impl_fnptr;
417
+ if (local)
418
+ local(handle);
419
+ }
420
+
421
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserReleasing_impl_init)(nvtxSyncUser_t handle){
422
+ nvtxDomainSyncUserReleasing_impl_fntype local;
423
+ NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)();
424
+ local = NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserReleasing_impl_fnptr;
425
+ if (local)
426
+ local(handle);
427
+ }
428
+
429
+ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_VERSIONED_IDENTIFIER(nvtxSetInitFunctionsToNoops)(int forceAllToNoops);
430
+ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_VERSIONED_IDENTIFIER(nvtxSetInitFunctionsToNoops)(int forceAllToNoops)
431
+ {
432
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxMarkEx_impl_init) || forceAllToNoops)
433
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkEx_impl_fnptr = NULL;
434
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxMarkA_impl_init) || forceAllToNoops)
435
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkA_impl_fnptr = NULL;
436
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxMarkW_impl_init) || forceAllToNoops)
437
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxMarkW_impl_fnptr = NULL;
438
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartEx_impl_init) || forceAllToNoops)
439
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartEx_impl_fnptr = NULL;
440
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartA_impl_init) || forceAllToNoops)
441
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartA_impl_fnptr = NULL;
442
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangeStartW_impl_init) || forceAllToNoops)
443
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeStartW_impl_fnptr = NULL;
444
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeEnd_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangeEnd_impl_init) || forceAllToNoops)
445
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangeEnd_impl_fnptr = NULL;
446
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangePushEx_impl_init) || forceAllToNoops)
447
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushEx_impl_fnptr = NULL;
448
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangePushA_impl_init) || forceAllToNoops)
449
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushA_impl_fnptr = NULL;
450
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangePushW_impl_init) || forceAllToNoops)
451
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePushW_impl_fnptr = NULL;
452
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePop_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxRangePop_impl_init) || forceAllToNoops)
453
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxRangePop_impl_fnptr = NULL;
454
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryA_impl_init) || forceAllToNoops)
455
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryA_impl_fnptr = NULL;
456
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCategoryW_impl_init) || forceAllToNoops)
457
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCategoryW_impl_fnptr = NULL;
458
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadA_impl_init) || forceAllToNoops)
459
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadA_impl_fnptr = NULL;
460
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameOsThreadW_impl_init) || forceAllToNoops)
461
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameOsThreadW_impl_fnptr = NULL;
462
+
463
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceA_impl_init) || forceAllToNoops)
464
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceA_impl_fnptr = NULL;
465
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuDeviceW_impl_init) || forceAllToNoops)
466
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuDeviceW_impl_fnptr = NULL;
467
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextA_impl_init) || forceAllToNoops)
468
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextA_impl_fnptr = NULL;
469
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuContextW_impl_init) || forceAllToNoops)
470
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuContextW_impl_fnptr = NULL;
471
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamA_impl_init) || forceAllToNoops)
472
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamA_impl_fnptr = NULL;
473
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuStreamW_impl_init) || forceAllToNoops)
474
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuStreamW_impl_fnptr = NULL;
475
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventA_impl_init) || forceAllToNoops)
476
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventA_impl_fnptr = NULL;
477
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCuEventW_impl_init) || forceAllToNoops)
478
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCuEventW_impl_fnptr = NULL;
479
+
480
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceA_impl_init) || forceAllToNoops)
481
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceA_impl_fnptr = NULL;
482
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClDeviceW_impl_init) || forceAllToNoops)
483
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClDeviceW_impl_fnptr = NULL;
484
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextA_impl_init) || forceAllToNoops)
485
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextA_impl_fnptr = NULL;
486
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClContextW_impl_init) || forceAllToNoops)
487
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClContextW_impl_fnptr = NULL;
488
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueA_impl_init) || forceAllToNoops)
489
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueA_impl_fnptr = NULL;
490
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClCommandQueueW_impl_init) || forceAllToNoops)
491
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClCommandQueueW_impl_fnptr = NULL;
492
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectA_impl_init) || forceAllToNoops)
493
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectA_impl_fnptr = NULL;
494
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClMemObjectW_impl_init) || forceAllToNoops)
495
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClMemObjectW_impl_fnptr = NULL;
496
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerA_impl_init) || forceAllToNoops)
497
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerA_impl_fnptr = NULL;
498
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClSamplerW_impl_init) || forceAllToNoops)
499
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClSamplerW_impl_fnptr = NULL;
500
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramA_impl_init) || forceAllToNoops)
501
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramA_impl_fnptr = NULL;
502
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClProgramW_impl_init) || forceAllToNoops)
503
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClProgramW_impl_fnptr = NULL;
504
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventA_impl_init) || forceAllToNoops)
505
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventA_impl_fnptr = NULL;
506
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameClEventW_impl_init) || forceAllToNoops)
507
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameClEventW_impl_fnptr = NULL;
508
+
509
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceA_impl_init) || forceAllToNoops)
510
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceA_impl_fnptr = NULL;
511
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaDeviceW_impl_init) || forceAllToNoops)
512
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaDeviceW_impl_fnptr = NULL;
513
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamA_impl_init) || forceAllToNoops)
514
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamA_impl_fnptr = NULL;
515
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaStreamW_impl_init) || forceAllToNoops)
516
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaStreamW_impl_fnptr = NULL;
517
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventA_impl_init) || forceAllToNoops)
518
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventA_impl_fnptr = NULL;
519
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxNameCudaEventW_impl_init) || forceAllToNoops)
520
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxNameCudaEventW_impl_fnptr = NULL;
521
+
522
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainMarkEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainMarkEx_impl_init) || forceAllToNoops)
523
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainMarkEx_impl_fnptr = NULL;
524
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeStartEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeStartEx_impl_init) || forceAllToNoops)
525
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeStartEx_impl_fnptr = NULL;
526
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeEnd_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangeEnd_impl_init) || forceAllToNoops)
527
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangeEnd_impl_fnptr = NULL;
528
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePushEx_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePushEx_impl_init) || forceAllToNoops)
529
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePushEx_impl_fnptr = NULL;
530
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePop_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRangePop_impl_init) || forceAllToNoops)
531
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRangePop_impl_fnptr = NULL;
532
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceCreate_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceCreate_impl_init) || forceAllToNoops)
533
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceCreate_impl_fnptr = NULL;
534
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceDestroy_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainResourceDestroy_impl_init) || forceAllToNoops)
535
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainResourceDestroy_impl_fnptr = NULL;
536
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryA_impl_init) || forceAllToNoops)
537
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryA_impl_fnptr = NULL;
538
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainNameCategoryW_impl_init) || forceAllToNoops)
539
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainNameCategoryW_impl_fnptr = NULL;
540
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringA_impl_init) || forceAllToNoops)
541
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringA_impl_fnptr = NULL;
542
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainRegisterStringW_impl_init) || forceAllToNoops)
543
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainRegisterStringW_impl_fnptr = NULL;
544
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateA_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateA_impl_init) || forceAllToNoops)
545
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateA_impl_fnptr = NULL;
546
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateW_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainCreateW_impl_init) || forceAllToNoops)
547
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainCreateW_impl_fnptr = NULL;
548
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainDestroy_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainDestroy_impl_init) || forceAllToNoops)
549
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainDestroy_impl_fnptr = NULL;
550
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxInitialize_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxInitialize_impl_init) || forceAllToNoops)
551
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxInitialize_impl_fnptr = NULL;
552
+
553
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserCreate_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserCreate_impl_init) || forceAllToNoops)
554
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserCreate_impl_fnptr = NULL;
555
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserDestroy_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserDestroy_impl_init) || forceAllToNoops)
556
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserDestroy_impl_fnptr = NULL;
557
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireStart_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireStart_impl_init) || forceAllToNoops)
558
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireStart_impl_fnptr = NULL;
559
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireFailed_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireFailed_impl_init) || forceAllToNoops)
560
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireFailed_impl_fnptr = NULL;
561
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireSuccess_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserAcquireSuccess_impl_init) || forceAllToNoops)
562
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserAcquireSuccess_impl_fnptr = NULL;
563
+ if (NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserReleasing_impl_fnptr == NVTX_VERSIONED_IDENTIFIER(nvtxDomainSyncUserReleasing_impl_init) || forceAllToNoops)
564
+ NVTX_VERSIONED_IDENTIFIER(nvtxGlobals).nvtxDomainSyncUserReleasing_impl_fnptr = NULL;
565
+ }
videollama2/lib/python3.10/site-packages/nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxTypes.h ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 2009-2016 NVIDIA Corporation. All rights reserved.
3
+ *
4
+ * NOTICE TO USER:
5
+ *
6
+ * This source code is subject to NVIDIA ownership rights under U.S. and
7
+ * international Copyright laws.
8
+ *
9
+ * This software and the information contained herein is PROPRIETARY and
10
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and conditions
11
+ * of a form of NVIDIA software license agreement.
12
+ *
13
+ * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
14
+ * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
15
+ * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
16
+ * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
17
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
18
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
19
+ * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
20
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
21
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
22
+ * OR PERFORMANCE OF THIS SOURCE CODE.
23
+ *
24
+ * U.S. Government End Users. This source code is a "commercial item" as
25
+ * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
26
+ * "commercial computer software" and "commercial computer software
27
+ * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
28
+ * and is provided to the U.S. Government only as a commercial end item.
29
+ * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
30
+ * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
31
+ * source code with only those rights set forth herein.
32
+ *
33
+ * Any use of this source code in individual and commercial software must
34
+ * include, in the user documentation and internal comments to the code,
35
+ * the above Disclaimer and U.S. Government End Users Notice.
36
+ */
37
+
38
+ /* This header defines types which are used by the internal implementation
39
+ * of NVTX and callback subscribers. API clients do not use these types,
40
+ * so they are defined here instead of in nvToolsExt.h to clarify they are
41
+ * not part of the NVTX client API. */
42
+
43
+ #ifndef NVTX_IMPL_GUARD
44
+ #error Never include this file directly -- it is automatically included by nvToolsExt.h.
45
+ #endif
46
+
47
+ /* ------ Dependency-free types binary-compatible with real types ------- */
48
+
49
+ /* In order to avoid having the NVTX core API headers depend on non-NVTX
50
+ * headers like cuda.h, NVTX defines binary-compatible types to use for
51
+ * safely making the initialization versions of all NVTX functions without
52
+ * needing to have definitions for the real types. */
53
+
54
+ typedef int nvtx_CUdevice;
55
+ typedef void* nvtx_CUcontext;
56
+ typedef void* nvtx_CUstream;
57
+ typedef void* nvtx_CUevent;
58
+
59
+ typedef void* nvtx_cudaStream_t;
60
+ typedef void* nvtx_cudaEvent_t;
61
+
62
+ typedef void* nvtx_cl_platform_id;
63
+ typedef void* nvtx_cl_device_id;
64
+ typedef void* nvtx_cl_context;
65
+ typedef void* nvtx_cl_command_queue;
66
+ typedef void* nvtx_cl_mem;
67
+ typedef void* nvtx_cl_program;
68
+ typedef void* nvtx_cl_kernel;
69
+ typedef void* nvtx_cl_event;
70
+ typedef void* nvtx_cl_sampler;
71
+
72
+ typedef struct nvtxSyncUser* nvtxSyncUser_t;
73
+ struct nvtxSyncUserAttributes_v0;
74
+ typedef struct nvtxSyncUserAttributes_v0 nvtxSyncUserAttributes_t;
75
+
76
+ /* --------- Types for function pointers (with fake API types) ---------- */
77
+
78
+ typedef void (NVTX_API * nvtxMarkEx_impl_fntype)(const nvtxEventAttributes_t* eventAttrib);
79
+ typedef void (NVTX_API * nvtxMarkA_impl_fntype)(const char* message);
80
+ typedef void (NVTX_API * nvtxMarkW_impl_fntype)(const wchar_t* message);
81
+ typedef nvtxRangeId_t (NVTX_API * nvtxRangeStartEx_impl_fntype)(const nvtxEventAttributes_t* eventAttrib);
82
+ typedef nvtxRangeId_t (NVTX_API * nvtxRangeStartA_impl_fntype)(const char* message);
83
+ typedef nvtxRangeId_t (NVTX_API * nvtxRangeStartW_impl_fntype)(const wchar_t* message);
84
+ typedef void (NVTX_API * nvtxRangeEnd_impl_fntype)(nvtxRangeId_t id);
85
+ typedef int (NVTX_API * nvtxRangePushEx_impl_fntype)(const nvtxEventAttributes_t* eventAttrib);
86
+ typedef int (NVTX_API * nvtxRangePushA_impl_fntype)(const char* message);
87
+ typedef int (NVTX_API * nvtxRangePushW_impl_fntype)(const wchar_t* message);
88
+ typedef int (NVTX_API * nvtxRangePop_impl_fntype)(void);
89
+ typedef void (NVTX_API * nvtxNameCategoryA_impl_fntype)(uint32_t category, const char* name);
90
+ typedef void (NVTX_API * nvtxNameCategoryW_impl_fntype)(uint32_t category, const wchar_t* name);
91
+ typedef void (NVTX_API * nvtxNameOsThreadA_impl_fntype)(uint32_t threadId, const char* name);
92
+ typedef void (NVTX_API * nvtxNameOsThreadW_impl_fntype)(uint32_t threadId, const wchar_t* name);
93
+
94
+ /* Real impl types are defined in nvtxImplCuda_v3.h, where CUDA headers are included */
95
+ typedef void (NVTX_API * nvtxNameCuDeviceA_fakeimpl_fntype)(nvtx_CUdevice device, const char* name);
96
+ typedef void (NVTX_API * nvtxNameCuDeviceW_fakeimpl_fntype)(nvtx_CUdevice device, const wchar_t* name);
97
+ typedef void (NVTX_API * nvtxNameCuContextA_fakeimpl_fntype)(nvtx_CUcontext context, const char* name);
98
+ typedef void (NVTX_API * nvtxNameCuContextW_fakeimpl_fntype)(nvtx_CUcontext context, const wchar_t* name);
99
+ typedef void (NVTX_API * nvtxNameCuStreamA_fakeimpl_fntype)(nvtx_CUstream stream, const char* name);
100
+ typedef void (NVTX_API * nvtxNameCuStreamW_fakeimpl_fntype)(nvtx_CUstream stream, const wchar_t* name);
101
+ typedef void (NVTX_API * nvtxNameCuEventA_fakeimpl_fntype)(nvtx_CUevent event, const char* name);
102
+ typedef void (NVTX_API * nvtxNameCuEventW_fakeimpl_fntype)(nvtx_CUevent event, const wchar_t* name);
103
+
104
+ /* Real impl types are defined in nvtxImplOpenCL_v3.h, where OPENCL headers are included */
105
+ typedef void (NVTX_API * nvtxNameClDeviceA_fakeimpl_fntype)(nvtx_cl_device_id device, const char* name);
106
+ typedef void (NVTX_API * nvtxNameClDeviceW_fakeimpl_fntype)(nvtx_cl_device_id device, const wchar_t* name);
107
+ typedef void (NVTX_API * nvtxNameClContextA_fakeimpl_fntype)(nvtx_cl_context context, const char* name);
108
+ typedef void (NVTX_API * nvtxNameClContextW_fakeimpl_fntype)(nvtx_cl_context context, const wchar_t* name);
109
+ typedef void (NVTX_API * nvtxNameClCommandQueueA_fakeimpl_fntype)(nvtx_cl_command_queue command_queue, const char* name);
110
+ typedef void (NVTX_API * nvtxNameClCommandQueueW_fakeimpl_fntype)(nvtx_cl_command_queue command_queue, const wchar_t* name);
111
+ typedef void (NVTX_API * nvtxNameClMemObjectA_fakeimpl_fntype)(nvtx_cl_mem memobj, const char* name);
112
+ typedef void (NVTX_API * nvtxNameClMemObjectW_fakeimpl_fntype)(nvtx_cl_mem memobj, const wchar_t* name);
113
+ typedef void (NVTX_API * nvtxNameClSamplerA_fakeimpl_fntype)(nvtx_cl_sampler sampler, const char* name);
114
+ typedef void (NVTX_API * nvtxNameClSamplerW_fakeimpl_fntype)(nvtx_cl_sampler sampler, const wchar_t* name);
115
+ typedef void (NVTX_API * nvtxNameClProgramA_fakeimpl_fntype)(nvtx_cl_program program, const char* name);
116
+ typedef void (NVTX_API * nvtxNameClProgramW_fakeimpl_fntype)(nvtx_cl_program program, const wchar_t* name);
117
+ typedef void (NVTX_API * nvtxNameClEventA_fakeimpl_fntype)(nvtx_cl_event evnt, const char* name);
118
+ typedef void (NVTX_API * nvtxNameClEventW_fakeimpl_fntype)(nvtx_cl_event evnt, const wchar_t* name);
119
+
120
+ /* Real impl types are defined in nvtxImplCudaRt_v3.h, where CUDART headers are included */
121
+ typedef void (NVTX_API * nvtxNameCudaDeviceA_impl_fntype)(int device, const char* name);
122
+ typedef void (NVTX_API * nvtxNameCudaDeviceW_impl_fntype)(int device, const wchar_t* name);
123
+ typedef void (NVTX_API * nvtxNameCudaStreamA_fakeimpl_fntype)(nvtx_cudaStream_t stream, const char* name);
124
+ typedef void (NVTX_API * nvtxNameCudaStreamW_fakeimpl_fntype)(nvtx_cudaStream_t stream, const wchar_t* name);
125
+ typedef void (NVTX_API * nvtxNameCudaEventA_fakeimpl_fntype)(nvtx_cudaEvent_t event, const char* name);
126
+ typedef void (NVTX_API * nvtxNameCudaEventW_fakeimpl_fntype)(nvtx_cudaEvent_t event, const wchar_t* name);
127
+
128
+ typedef void (NVTX_API * nvtxDomainMarkEx_impl_fntype)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
129
+ typedef nvtxRangeId_t (NVTX_API * nvtxDomainRangeStartEx_impl_fntype)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
130
+ typedef void (NVTX_API * nvtxDomainRangeEnd_impl_fntype)(nvtxDomainHandle_t domain, nvtxRangeId_t id);
131
+ typedef int (NVTX_API * nvtxDomainRangePushEx_impl_fntype)(nvtxDomainHandle_t domain, const nvtxEventAttributes_t* eventAttrib);
132
+ typedef int (NVTX_API * nvtxDomainRangePop_impl_fntype)(nvtxDomainHandle_t domain);
133
+ typedef nvtxResourceHandle_t (NVTX_API * nvtxDomainResourceCreate_impl_fntype)(nvtxDomainHandle_t domain, nvtxResourceAttributes_t* attribs);
134
+ typedef void (NVTX_API * nvtxDomainResourceDestroy_impl_fntype)(nvtxResourceHandle_t resource);
135
+ typedef void (NVTX_API * nvtxDomainNameCategoryA_impl_fntype)(nvtxDomainHandle_t domain, uint32_t category, const char* name);
136
+ typedef void (NVTX_API * nvtxDomainNameCategoryW_impl_fntype)(nvtxDomainHandle_t domain, uint32_t category, const wchar_t* name);
137
+ typedef nvtxStringHandle_t (NVTX_API * nvtxDomainRegisterStringA_impl_fntype)(nvtxDomainHandle_t domain, const char* string);
138
+ typedef nvtxStringHandle_t (NVTX_API * nvtxDomainRegisterStringW_impl_fntype)(nvtxDomainHandle_t domain, const wchar_t* string);
139
+ typedef nvtxDomainHandle_t (NVTX_API * nvtxDomainCreateA_impl_fntype)(const char* message);
140
+ typedef nvtxDomainHandle_t (NVTX_API * nvtxDomainCreateW_impl_fntype)(const wchar_t* message);
141
+ typedef void (NVTX_API * nvtxDomainDestroy_impl_fntype)(nvtxDomainHandle_t domain);
142
+ typedef void (NVTX_API * nvtxInitialize_impl_fntype)(const void* reserved);
143
+
144
+ typedef nvtxSyncUser_t (NVTX_API * nvtxDomainSyncUserCreate_impl_fntype)(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t* attribs);
145
+ typedef void (NVTX_API * nvtxDomainSyncUserDestroy_impl_fntype)(nvtxSyncUser_t handle);
146
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireStart_impl_fntype)(nvtxSyncUser_t handle);
147
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireFailed_impl_fntype)(nvtxSyncUser_t handle);
148
+ typedef void (NVTX_API * nvtxDomainSyncUserAcquireSuccess_impl_fntype)(nvtxSyncUser_t handle);
149
+ typedef void (NVTX_API * nvtxDomainSyncUserReleasing_impl_fntype)(nvtxSyncUser_t handle);
150
+
151
+ /* ---------------- Types for callback subscription --------------------- */
152
+
153
+ typedef const void *(NVTX_API * NvtxGetExportTableFunc_t)(uint32_t exportTableId);
154
+ typedef int (NVTX_API * NvtxInitializeInjectionNvtxFunc_t)(NvtxGetExportTableFunc_t exportTable);
155
+
156
+ typedef enum NvtxCallbackModule
157
+ {
158
+ NVTX_CB_MODULE_INVALID = 0,
159
+ NVTX_CB_MODULE_CORE = 1,
160
+ NVTX_CB_MODULE_CUDA = 2,
161
+ NVTX_CB_MODULE_OPENCL = 3,
162
+ NVTX_CB_MODULE_CUDART = 4,
163
+ NVTX_CB_MODULE_CORE2 = 5,
164
+ NVTX_CB_MODULE_SYNC = 6,
165
+ /* --- New constants must only be added directly above this line --- */
166
+ NVTX_CB_MODULE_SIZE,
167
+ NVTX_CB_MODULE_FORCE_INT = 0x7fffffff
168
+ } NvtxCallbackModule;
169
+
170
+ typedef enum NvtxCallbackIdCore
171
+ {
172
+ NVTX_CBID_CORE_INVALID = 0,
173
+ NVTX_CBID_CORE_MarkEx = 1,
174
+ NVTX_CBID_CORE_MarkA = 2,
175
+ NVTX_CBID_CORE_MarkW = 3,
176
+ NVTX_CBID_CORE_RangeStartEx = 4,
177
+ NVTX_CBID_CORE_RangeStartA = 5,
178
+ NVTX_CBID_CORE_RangeStartW = 6,
179
+ NVTX_CBID_CORE_RangeEnd = 7,
180
+ NVTX_CBID_CORE_RangePushEx = 8,
181
+ NVTX_CBID_CORE_RangePushA = 9,
182
+ NVTX_CBID_CORE_RangePushW = 10,
183
+ NVTX_CBID_CORE_RangePop = 11,
184
+ NVTX_CBID_CORE_NameCategoryA = 12,
185
+ NVTX_CBID_CORE_NameCategoryW = 13,
186
+ NVTX_CBID_CORE_NameOsThreadA = 14,
187
+ NVTX_CBID_CORE_NameOsThreadW = 15,
188
+ /* --- New constants must only be added directly above this line --- */
189
+ NVTX_CBID_CORE_SIZE,
190
+ NVTX_CBID_CORE_FORCE_INT = 0x7fffffff
191
+ } NvtxCallbackIdCore;
192
+
193
+ typedef enum NvtxCallbackIdCore2
194
+ {
195
+ NVTX_CBID_CORE2_INVALID = 0,
196
+ NVTX_CBID_CORE2_DomainMarkEx = 1,
197
+ NVTX_CBID_CORE2_DomainRangeStartEx = 2,
198
+ NVTX_CBID_CORE2_DomainRangeEnd = 3,
199
+ NVTX_CBID_CORE2_DomainRangePushEx = 4,
200
+ NVTX_CBID_CORE2_DomainRangePop = 5,
201
+ NVTX_CBID_CORE2_DomainResourceCreate = 6,
202
+ NVTX_CBID_CORE2_DomainResourceDestroy = 7,
203
+ NVTX_CBID_CORE2_DomainNameCategoryA = 8,
204
+ NVTX_CBID_CORE2_DomainNameCategoryW = 9,
205
+ NVTX_CBID_CORE2_DomainRegisterStringA = 10,
206
+ NVTX_CBID_CORE2_DomainRegisterStringW = 11,
207
+ NVTX_CBID_CORE2_DomainCreateA = 12,
208
+ NVTX_CBID_CORE2_DomainCreateW = 13,
209
+ NVTX_CBID_CORE2_DomainDestroy = 14,
210
+ NVTX_CBID_CORE2_Initialize = 15,
211
+ /* --- New constants must only be added directly above this line --- */
212
+ NVTX_CBID_CORE2_SIZE,
213
+ NVTX_CBID_CORE2_FORCE_INT = 0x7fffffff
214
+ } NvtxCallbackIdCore2;
215
+
216
+ typedef enum NvtxCallbackIdCuda
217
+ {
218
+ NVTX_CBID_CUDA_INVALID = 0,
219
+ NVTX_CBID_CUDA_NameCuDeviceA = 1,
220
+ NVTX_CBID_CUDA_NameCuDeviceW = 2,
221
+ NVTX_CBID_CUDA_NameCuContextA = 3,
222
+ NVTX_CBID_CUDA_NameCuContextW = 4,
223
+ NVTX_CBID_CUDA_NameCuStreamA = 5,
224
+ NVTX_CBID_CUDA_NameCuStreamW = 6,
225
+ NVTX_CBID_CUDA_NameCuEventA = 7,
226
+ NVTX_CBID_CUDA_NameCuEventW = 8,
227
+ /* --- New constants must only be added directly above this line --- */
228
+ NVTX_CBID_CUDA_SIZE,
229
+ NVTX_CBID_CUDA_FORCE_INT = 0x7fffffff
230
+ } NvtxCallbackIdCuda;
231
+
232
+ typedef enum NvtxCallbackIdCudaRt
233
+ {
234
+ NVTX_CBID_CUDART_INVALID = 0,
235
+ NVTX_CBID_CUDART_NameCudaDeviceA = 1,
236
+ NVTX_CBID_CUDART_NameCudaDeviceW = 2,
237
+ NVTX_CBID_CUDART_NameCudaStreamA = 3,
238
+ NVTX_CBID_CUDART_NameCudaStreamW = 4,
239
+ NVTX_CBID_CUDART_NameCudaEventA = 5,
240
+ NVTX_CBID_CUDART_NameCudaEventW = 6,
241
+ /* --- New constants must only be added directly above this line --- */
242
+ NVTX_CBID_CUDART_SIZE,
243
+ NVTX_CBID_CUDART_FORCE_INT = 0x7fffffff
244
+ } NvtxCallbackIdCudaRt;
245
+
246
+ typedef enum NvtxCallbackIdOpenCL
247
+ {
248
+ NVTX_CBID_OPENCL_INVALID = 0,
249
+ NVTX_CBID_OPENCL_NameClDeviceA = 1,
250
+ NVTX_CBID_OPENCL_NameClDeviceW = 2,
251
+ NVTX_CBID_OPENCL_NameClContextA = 3,
252
+ NVTX_CBID_OPENCL_NameClContextW = 4,
253
+ NVTX_CBID_OPENCL_NameClCommandQueueA = 5,
254
+ NVTX_CBID_OPENCL_NameClCommandQueueW = 6,
255
+ NVTX_CBID_OPENCL_NameClMemObjectA = 7,
256
+ NVTX_CBID_OPENCL_NameClMemObjectW = 8,
257
+ NVTX_CBID_OPENCL_NameClSamplerA = 9,
258
+ NVTX_CBID_OPENCL_NameClSamplerW = 10,
259
+ NVTX_CBID_OPENCL_NameClProgramA = 11,
260
+ NVTX_CBID_OPENCL_NameClProgramW = 12,
261
+ NVTX_CBID_OPENCL_NameClEventA = 13,
262
+ NVTX_CBID_OPENCL_NameClEventW = 14,
263
+ /* --- New constants must only be added directly above this line --- */
264
+ NVTX_CBID_OPENCL_SIZE,
265
+ NVTX_CBID_OPENCL_FORCE_INT = 0x7fffffff
266
+ } NvtxCallbackIdOpenCL;
267
+
268
+ typedef enum NvtxCallbackIdSync
269
+ {
270
+ NVTX_CBID_SYNC_INVALID = 0,
271
+ NVTX_CBID_SYNC_DomainSyncUserCreate = 1,
272
+ NVTX_CBID_SYNC_DomainSyncUserDestroy = 2,
273
+ NVTX_CBID_SYNC_DomainSyncUserAcquireStart = 3,
274
+ NVTX_CBID_SYNC_DomainSyncUserAcquireFailed = 4,
275
+ NVTX_CBID_SYNC_DomainSyncUserAcquireSuccess = 5,
276
+ NVTX_CBID_SYNC_DomainSyncUserReleasing = 6,
277
+ /* --- New constants must only be added directly above this line --- */
278
+ NVTX_CBID_SYNC_SIZE,
279
+ NVTX_CBID_SYNC_FORCE_INT = 0x7fffffff
280
+ } NvtxCallbackIdSync;
281
+
282
+ /* IDs for NVTX Export Tables */
283
+ typedef enum NvtxExportTableID
284
+ {
285
+ NVTX_ETID_INVALID = 0,
286
+ NVTX_ETID_CALLBACKS = 1,
287
+ NVTX_ETID_RESERVED0 = 2,
288
+ NVTX_ETID_VERSIONINFO = 3,
289
+ /* --- New constants must only be added directly above this line --- */
290
+ NVTX_ETID_SIZE,
291
+ NVTX_ETID_FORCE_INT = 0x7fffffff
292
+ } NvtxExportTableID;
293
+
294
+ typedef void (* NvtxFunctionPointer)(void); /* generic uncallable function pointer, must be casted to appropriate function type */
295
+ typedef NvtxFunctionPointer** NvtxFunctionTable; /* double pointer because array(1) of pointers(2) to function pointers */
296
+
297
+ typedef struct NvtxExportTableCallbacks
298
+ {
299
+ size_t struct_size;
300
+
301
+ /* returns an array of pointer to function pointers*/
302
+ int (NVTX_API *GetModuleFunctionTable)(
303
+ NvtxCallbackModule module,
304
+ NvtxFunctionTable* out_table,
305
+ unsigned int* out_size);
306
+ } NvtxExportTableCallbacks;
307
+
308
+ typedef struct NvtxExportTableVersionInfo
309
+ {
310
+ /* sizeof(NvtxExportTableVersionInfo) */
311
+ size_t struct_size;
312
+
313
+ /* The API version comes from the NVTX library linked to the app. The
314
+ * injection library is can use this info to make some assumptions */
315
+ uint32_t version;
316
+
317
+ /* Reserved for alignment, do not use */
318
+ uint32_t reserved0;
319
+
320
+ /* This must be set by tools when attaching to provide applications
321
+ * the ability to, in emergency situations, detect problematic tools
322
+ * versions and modify the NVTX source to prevent attaching anything
323
+ * that causes trouble in the app. Currently, this value is ignored. */
324
+ void (NVTX_API *SetInjectionNvtxVersion)(
325
+ uint32_t version);
326
+ } NvtxExportTableVersionInfo;
327
+
328
+
329
+
330
+
331
+
332
+
333
+
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__init__.py ADDED
File without changes
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_array_to_datetime.cpython-310.pyc ADDED
Binary file (10.8 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_ccalendar.cpython-310.pyc ADDED
Binary file (2.12 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_conversion.cpython-310.pyc ADDED
Binary file (4.68 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_fields.cpython-310.pyc ADDED
Binary file (1.62 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_libfrequencies.cpython-310.pyc ADDED
Binary file (810 Bytes). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_liboffsets.cpython-310.pyc ADDED
Binary file (4.47 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_np_datetime.cpython-310.pyc ADDED
Binary file (5.76 kB). View file
 
vllm/lib/python3.10/site-packages/pandas/tests/tslibs/__pycache__/test_npy_units.cpython-310.pyc ADDED
Binary file (1.3 kB). View file