File: structSanitizer__ResourceMemoryData.html

package info (click to toggle)
nvidia-cuda-toolkit 12.5.0-1
  • links: PTS, VCS
  • area: non-free
  • in suites: experimental
  • size: 13,247,276 kB
  • sloc: ansic: 214,716; cpp: 65,455; javascript: 24,274; python: 22,339; xml: 11,484; makefile: 3,079; sh: 2,288; perl: 356
file content (228 lines) | stat: -rw-r--r-- 12,340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>SanitizerApi: Sanitizer_ResourceMemoryData Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Sanitizer_ResourceMemoryData Struct Reference<br>
<small>
[<a class="el" href="group__SANITIZER__CALLBACK__API.html">Sanitizer Callback API</a>]</small>
</h1><!-- doxytag: class="Sanitizer_ResourceMemoryData" -->Data passed into a memory resource callback function.  
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#8dc887749dd6a0163ac54d331b1280ad">address</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">CUcontext&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#306fed61e5fc1aefe907f67b6aeb3c7b">context</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">CUdevice&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#c23e893ab78877ab395678c4dc1bddfa">device</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#7bee77cc4075471b0397cf557c843c4a">flags</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">Sanitizer_StreamHandle&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#9cd401e3148076d3b5cabcdbf54f3f33">hStream</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">CUmemoryPool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#be9335a4874c70f9e8fdc287b8a14a38">memoryPool</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#fa68ea5df21d945ae35162a7573c4d61">permissions</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#f33b6cf45e80c06fc9130c719d6e13c7">size</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">CUdevice&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#34ae0e07bbf2f9ae371d132c59138ce0">sourceDevice</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">CUstream&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#bb146be5d2857f1294a1af6edf28f6f5">stream</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__SANITIZER__CALLBACK__API.html#g62d02f306fdb955ab1f5add810c45564">Sanitizer_MemoryVisibility</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSanitizer__ResourceMemoryData.html#5838f90e131f6b6761c39986b9b6efd8">visibility</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Data passed into a memory resource callback function as the <code>cbdata</code> argument to <a class="el" href="group__SANITIZER__CALLBACK__API.html#gf031ccd4dcc013ab017d9ee1032858c4">Sanitizer_CallbackFunc</a>. The <code>cbdata</code> will be this type for <code>domain</code> equal to SANITIZER_CB_DOMAIN_RESOURCE and <code>cbid</code> equal to SANITIZER_CBID_RESOURCE_DEVICE_MEMORY_ALLOC, SANITIZER_CBID_RESOURCE_DEVICE_MEMORY_FREE, SANITIZER_CBID_RESOURCE_HOST_MEMORY_ALLOC, SANITIZER_CBID_RESOURCE_HOST_MEMORY_FREE, SANITIZER_CBID_RESOURCE_MEMORY_ALLOC_ASYNC, SANITIZER_CBID_RESOURCE_MEMORY_FREE_ASYNC or SANITIZER_CBID_RESOURCE_MEMORY_FREE_ASYNC_DONE or SANITIZER_CBID_RESOURCE_MEMPOOL_IMPORT_POINTER. The callback data is only valid within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of it. <hr><h2>Field Documentation</h2>
<a class="anchor" name="8dc887749dd6a0163ac54d331b1280ad"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::address" ref="8dc887749dd6a0163ac54d331b1280ad" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t <a class="el" href="structSanitizer__ResourceMemoryData.html#8dc887749dd6a0163ac54d331b1280ad">Sanitizer_ResourceMemoryData::address</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Address of the allocation being created or destroyed. 
</div>
</div><p>
<a class="anchor" name="306fed61e5fc1aefe907f67b6aeb3c7b"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::context" ref="306fed61e5fc1aefe907f67b6aeb3c7b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUcontext <a class="el" href="structSanitizer__ResourceMemoryData.html#306fed61e5fc1aefe907f67b6aeb3c7b">Sanitizer_ResourceMemoryData::context</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Context containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a context. 
</div>
</div><p>
<a class="anchor" name="c23e893ab78877ab395678c4dc1bddfa"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::device" ref="c23e893ab78877ab395678c4dc1bddfa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUdevice <a class="el" href="structSanitizer__ResourceMemoryData.html#c23e893ab78877ab395678c4dc1bddfa">Sanitizer_ResourceMemoryData::device</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Device where the allocation is being created. Available for all cbid with a driver version of 455 or newer. 
</div>
</div><p>
<a class="anchor" name="7bee77cc4075471b0397cf557c843c4a"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::flags" ref="7bee77cc4075471b0397cf557c843c4a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t <a class="el" href="structSanitizer__ResourceMemoryData.html#7bee77cc4075471b0397cf557c843c4a">Sanitizer_ResourceMemoryData::flags</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allocation details: use Sanitizer_ResourceMemoryFlags to interpret this field. 
</div>
</div><p>
<a class="anchor" name="9cd401e3148076d3b5cabcdbf54f3f33"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::hStream" ref="9cd401e3148076d3b5cabcdbf54f3f33" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Sanitizer_StreamHandle <a class="el" href="structSanitizer__ResourceMemoryData.html#9cd401e3148076d3b5cabcdbf54f3f33">Sanitizer_ResourceMemoryData::hStream</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Stream containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a stream. 
</div>
</div><p>
<a class="anchor" name="be9335a4874c70f9e8fdc287b8a14a38"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::memoryPool" ref="be9335a4874c70f9e8fdc287b8a14a38" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUmemoryPool <a class="el" href="structSanitizer__ResourceMemoryData.html#be9335a4874c70f9e8fdc287b8a14a38">Sanitizer_ResourceMemoryData::memoryPool</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Memory pool containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a memory pool. 
</div>
</div><p>
<a class="anchor" name="fa68ea5df21d945ae35162a7573c4d61"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::permissions" ref="fa68ea5df21d945ae35162a7573c4d61" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t <a class="el" href="structSanitizer__ResourceMemoryData.html#fa68ea5df21d945ae35162a7573c4d61">Sanitizer_ResourceMemoryData::permissions</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allocation permissions: use Sanitizer_ResourceMemoryPermissions to interpret this field. 
</div>
</div><p>
<a class="anchor" name="f33b6cf45e80c06fc9130c719d6e13c7"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::size" ref="f33b6cf45e80c06fc9130c719d6e13c7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t <a class="el" href="structSanitizer__ResourceMemoryData.html#f33b6cf45e80c06fc9130c719d6e13c7">Sanitizer_ResourceMemoryData::size</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Size of the allocation being created or destroyed. 
</div>
</div><p>
<a class="anchor" name="34ae0e07bbf2f9ae371d132c59138ce0"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::sourceDevice" ref="34ae0e07bbf2f9ae371d132c59138ce0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUdevice <a class="el" href="structSanitizer__ResourceMemoryData.html#34ae0e07bbf2f9ae371d132c59138ce0">Sanitizer_ResourceMemoryData::sourceDevice</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Source device of this allocation (different from device if SANITIZER_MEMORY_FLAG_PEER is set). 
</div>
</div><p>
<a class="anchor" name="bb146be5d2857f1294a1af6edf28f6f5"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::stream" ref="bb146be5d2857f1294a1af6edf28f6f5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUstream <a class="el" href="structSanitizer__ResourceMemoryData.html#bb146be5d2857f1294a1af6edf28f6f5">Sanitizer_ResourceMemoryData::stream</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Public handle for the stream. 
</div>
</div><p>
<a class="anchor" name="5838f90e131f6b6761c39986b9b6efd8"></a><!-- doxytag: member="Sanitizer_ResourceMemoryData::visibility" ref="5838f90e131f6b6761c39986b9b6efd8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__SANITIZER__CALLBACK__API.html#g62d02f306fdb955ab1f5add810c45564">Sanitizer_MemoryVisibility</a> <a class="el" href="structSanitizer__ResourceMemoryData.html#5838f90e131f6b6761c39986b9b6efd8">Sanitizer_ResourceMemoryData::visibility</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Visibility of the allocation. 
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Apr 15 23:05:33 2024 for SanitizerApi by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>