forked from arrayfire/arrayfire-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharrayfire.device.html
More file actions
463 lines (417 loc) · 25 KB
/
arrayfire.device.html
File metadata and controls
463 lines (417 loc) · 25 KB
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>arrayfire.device module — ArrayFire Python documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '3.4.20160925',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="ArrayFire Python documentation" href="index.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
</head>
<body role="document">
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-arrayfire.device">
<span id="arrayfire-device-module"></span><h1>arrayfire.device module<a class="headerlink" href="#module-arrayfire.device" title="Permalink to this headline">¶</a></h1>
<p>Functions to handle the available devices in the backend.</p>
<dl class="function">
<dt id="arrayfire.device.alloc_device">
<code class="descclassname">arrayfire.device.</code><code class="descname">alloc_device</code><span class="sig-paren">(</span><em>num_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#alloc_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.alloc_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the device with specified number of bytes.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.alloc_host">
<code class="descclassname">arrayfire.device.</code><code class="descname">alloc_host</code><span class="sig-paren">(</span><em>num_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#alloc_host"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.alloc_host" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the host with specified number of bytes.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.alloc_pinned">
<code class="descclassname">arrayfire.device.</code><code class="descname">alloc_pinned</code><span class="sig-paren">(</span><em>num_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#alloc_pinned"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.alloc_pinned" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the host using pinned memory with specified number of bytes.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.device_gc">
<code class="descclassname">arrayfire.device.</code><code class="descname">device_gc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#device_gc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.device_gc" title="Permalink to this definition">¶</a></dt>
<dd><p>Ask the garbage collector to free all unlocked memory</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.device_info">
<code class="descclassname">arrayfire.device.</code><code class="descname">device_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#device_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.device_info" title="Permalink to this definition">¶</a></dt>
<dd><dl class="docutils">
<dt>Returns a map with the following fields:</dt>
<dd><ul class="first last simple">
<li>‘device’: Name of the current device.</li>
<li>‘backend’: The current backend being used.</li>
<li>‘toolkit’: The toolkit version for the backend.</li>
<li>‘compute’: The compute version of the device.</li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.device_mem_info">
<code class="descclassname">arrayfire.device.</code><code class="descname">device_mem_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#device_mem_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.device_mem_info" title="Permalink to this definition">¶</a></dt>
<dd><dl class="docutils">
<dt>Returns a map with the following fields:</dt>
<dd><ul class="first last">
<li><dl class="first docutils">
<dt>‘alloc’: Contains the map of the following</dt>
<dd><ul class="first last simple">
<li>‘buffers’ : Total number of buffers allocated by memory manager.</li>
<li>‘bytes’ : Total number of bytes allocated by memory manager.</li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>‘lock’: Contains the map of the following</dt>
<dd><ul class="first last simple">
<li>‘buffers’ : Total number of buffers currently in scope.</li>
<li>‘bytes’ : Total number of bytes currently in scope.</li>
</ul>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.eval">
<code class="descclassname">arrayfire.device.</code><code class="descname">eval</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#eval"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.eval" title="Permalink to this definition">¶</a></dt>
<dd><p>Evaluate one or more inputs together</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>args</strong> : arguments to be evaluated</td>
</tr>
</tbody>
</table>
<p class="rubric">Examples</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">a</span> <span class="o">=</span> <span class="n">af</span><span class="o">.</span><span class="n">constant</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">b</span> <span class="o">=</span> <span class="n">af</span><span class="o">.</span><span class="n">constant</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">c</span> <span class="o">=</span> <span class="n">a</span> <span class="o">+</span> <span class="n">b</span>
<span class="gp">>>> </span><span class="n">d</span> <span class="o">=</span> <span class="n">a</span> <span class="o">-</span> <span class="n">b</span>
<span class="gp">>>> </span><span class="n">af</span><span class="o">.</span><span class="n">eval</span><span class="p">(</span><span class="n">c</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="c1"># A single kernel is launched here</span>
<span class="gp">>>> </span><span class="n">c</span>
<span class="go">arrayfire.Array()</span>
<span class="go">Type: float</span>
<span class="go">[3 3 1 1]</span>
<span class="go">3.0000 3.0000 3.0000</span>
<span class="go">3.0000 3.0000 3.0000</span>
<span class="go">3.0000 3.0000 3.0000</span>
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">d</span>
<span class="go">arrayfire.Array()</span>
<span class="go">Type: float</span>
<span class="go">[3 3 1 1]</span>
<span class="go">-1.0000 -1.0000 -1.0000</span>
<span class="go">-1.0000 -1.0000 -1.0000</span>
<span class="go">-1.0000 -1.0000 -1.0000</span>
</pre></div>
</div>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.free_device">
<code class="descclassname">arrayfire.device.</code><code class="descname">free_device</code><span class="sig-paren">(</span><em>ptr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#free_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.free_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the device memory allocated by alloc_device</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.free_host">
<code class="descclassname">arrayfire.device.</code><code class="descname">free_host</code><span class="sig-paren">(</span><em>ptr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#free_host"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.free_host" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the host memory allocated by alloc_host</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.free_pinned">
<code class="descclassname">arrayfire.device.</code><code class="descname">free_pinned</code><span class="sig-paren">(</span><em>ptr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#free_pinned"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.free_pinned" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the pinned memory allocated by alloc_pinned</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.get_device">
<code class="descclassname">arrayfire.device.</code><code class="descname">get_device</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#get_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.get_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the id of the current device.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.get_device_count">
<code class="descclassname">arrayfire.device.</code><code class="descname">get_device_count</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#get_device_count"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.get_device_count" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the number of devices available.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.get_device_ptr">
<code class="descclassname">arrayfire.device.</code><code class="descname">get_device_ptr</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#get_device_ptr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.get_device_ptr" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the raw device pointer of an array</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>a: af.Array</strong></p>
<blockquote>
<div><ul class="simple">
<li>A multi dimensional arrayfire array.</li>
</ul>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><ul class="first last simple">
<li>internal device pointer held by a</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.get_manual_eval_flag">
<code class="descclassname">arrayfire.device.</code><code class="descname">get_manual_eval_flag</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#get_manual_eval_flag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.get_manual_eval_flag" title="Permalink to this definition">¶</a></dt>
<dd><p>Query the backend JIT engine to see if the user disabled heuristic evaluation of the JIT tree.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.info">
<code class="descclassname">arrayfire.device.</code><code class="descname">info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.info" title="Permalink to this definition">¶</a></dt>
<dd><dl class="docutils">
<dt>Displays the information about the following:</dt>
<dd><ul class="first last simple">
<li>ArrayFire build and version number.</li>
<li>The number of devices available.</li>
<li>The names of the devices.</li>
<li>The current device being used.</li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.info_str">
<code class="descclassname">arrayfire.device.</code><code class="descname">info_str</code><span class="sig-paren">(</span><em>verbose=False</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#info_str"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.info_str" title="Permalink to this definition">¶</a></dt>
<dd><dl class="docutils">
<dt>Returns information about the following as a string:</dt>
<dd><ul class="first last simple">
<li>ArrayFire version number.</li>
<li>The number of devices available.</li>
<li>The names of the devices.</li>
<li>The current device being used.</li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.init">
<code class="descclassname">arrayfire.device.</code><code class="descname">init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#init"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.init" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="function">
<dt id="arrayfire.device.is_dbl_supported">
<code class="descclassname">arrayfire.device.</code><code class="descname">is_dbl_supported</code><span class="sig-paren">(</span><em>device=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#is_dbl_supported"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.is_dbl_supported" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if double precision is supported on specified device.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>device: optional: int. default: None.</strong></p>
<blockquote>
<div><p>id of the desired device.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><ul class="first last">
<li><p class="first">True if double precision supported.</p>
<blockquote>
<div><ul class="simple">
<li>False if double precision not supported.</li>
</ul>
</div></blockquote>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.is_locked_array">
<code class="descclassname">arrayfire.device.</code><code class="descname">is_locked_array</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#is_locked_array"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.is_locked_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if the input array is locked by the user.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>a: af.Array</strong></p>
<blockquote>
<div><ul class="simple">
<li>A multi dimensional arrayfire array.</li>
</ul>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A bool specifying if the input array is locked.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.lock_array">
<code class="descclassname">arrayfire.device.</code><code class="descname">lock_array</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#lock_array"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.lock_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Ask arrayfire to not perform garbage collection on raw data held by an array.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>a: af.Array</strong></p>
<blockquote class="last">
<div><ul class="simple">
<li>A multi dimensional arrayfire array.</li>
</ul>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.lock_device_ptr">
<code class="descclassname">arrayfire.device.</code><code class="descname">lock_device_ptr</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#lock_device_ptr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.lock_device_ptr" title="Permalink to this definition">¶</a></dt>
<dd><p>This functions is deprecated. Please use lock_array instead.</p>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.set_device">
<code class="descclassname">arrayfire.device.</code><code class="descname">set_device</code><span class="sig-paren">(</span><em>num</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#set_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.set_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Change the active device to the specified id.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>num: int.</strong></p>
<blockquote class="last">
<div><p>id of the desired device.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.set_manual_eval_flag">
<code class="descclassname">arrayfire.device.</code><code class="descname">set_manual_eval_flag</code><span class="sig-paren">(</span><em>flag</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#set_manual_eval_flag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.set_manual_eval_flag" title="Permalink to this definition">¶</a></dt>
<dd><p>Tells the backend JIT engine to disable heuristics for determining when to evaluate a JIT tree.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>flag</strong> : optional: bool.</p>
<blockquote class="last">
<div><ul class="simple">
<li>Specifies if the heuristic evaluation of the JIT tree needs to be disabled.</li>
</ul>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.sync">
<code class="descclassname">arrayfire.device.</code><code class="descname">sync</code><span class="sig-paren">(</span><em>device=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#sync"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.sync" title="Permalink to this definition">¶</a></dt>
<dd><p>Block until all the functions on the device have completed execution.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>device: optional: int. default: None.</strong></p>
<blockquote class="last">
<div><p>id of the desired device.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.unlock_array">
<code class="descclassname">arrayfire.device.</code><code class="descname">unlock_array</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#unlock_array"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.unlock_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Tell arrayfire to resume garbage collection on raw data held by an array.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>a: af.Array</strong></p>
<blockquote class="last">
<div><ul class="simple">
<li>A multi dimensional arrayfire array.</li>
</ul>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="arrayfire.device.unlock_device_ptr">
<code class="descclassname">arrayfire.device.</code><code class="descname">unlock_device_ptr</code><span class="sig-paren">(</span><em>a</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/arrayfire/device.html#unlock_device_ptr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#arrayfire.device.unlock_device_ptr" title="Permalink to this definition">¶</a></dt>
<dd><p>This functions is deprecated. Please use unlock_array instead.</p>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/arrayfire_logo_symbol.png" alt="Logo"/>
</a></p><div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="index.html">Documentation overview</a><ul>
</ul></li>
</ul>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/arrayfire.device.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2016, Pavan Yalamanchili.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.4.6</a>
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.9</a>
|
<a href="_sources/arrayfire.device.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>