You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sycl/doc/extensions/USM/USM.adoc
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -374,22 +374,28 @@ Return value:: none
374
374
375
375
'''
376
376
==== Concurrent USM
377
-
Concurrent USM contains all the utility functions of Explicit USM and Restricted USM. It introduces a new function, `sycl::mem_advise`, that allows programmers to provide additional information to the underlying runtime about how different allocations are used.
377
+
Concurrent USM contains all the utility functions of Explicit USM and Restricted USM. It introduces a new function, `sycl::queue::mem_advise`, that allows programmers to provide additional information to the underlying runtime about how different allocations are used.
378
378
379
379
===== Performance Hints
380
380
===== prefetch
381
381
In Concurrent USM, prefetch commands may be overlapped with kernel execution.
382
+
382
383
===== mem_advise
383
384
[source,cpp]
384
385
----
385
-
void sycl::mem_advise(void *addr, size_t length, int advice);
386
+
class queue {
387
+
...
388
+
public:
389
+
...
390
+
event mem_advise(void *addr, size_t length, int advice);
391
+
};
386
392
----
387
393
388
394
Parameters::
389
395
* `void* addr` - address of allocation
390
396
* `size_t length` - number of bytes in the allocation
391
397
* `int advice` - device-defined advice for the specified allocation
392
-
Return Value:: none
398
+
Return Value:: Returns an event representing the operation.
0 commit comments