@@ -205,7 +205,7 @@ DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
205
205
* @ingroup QueueInterface
206
206
*/
207
207
DPCTL_API
208
- DPCTLSyclEventRef
208
+ __dpctl_give DPCTLSyclEventRef
209
209
DPCTLQueue_SubmitRange (__dpctl_keep const DPCTLSyclKernelRef KRef,
210
210
__dpctl_keep const DPCTLSyclQueueRef QRef,
211
211
__dpctl_keep void **Args,
@@ -253,7 +253,7 @@ DPCTLQueue_SubmitRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
253
253
* @ingroup QueueInterface
254
254
*/
255
255
DPCTL_API
256
- DPCTLSyclEventRef
256
+ __dpctl_give DPCTLSyclEventRef
257
257
DPCTLQueue_SubmitNDRange (__dpctl_keep const DPCTLSyclKernelRef KRef,
258
258
__dpctl_keep const DPCTLSyclQueueRef QRef,
259
259
__dpctl_keep void **Args,
@@ -287,10 +287,11 @@ void DPCTLQueue_Wait(__dpctl_keep const DPCTLSyclQueueRef QRef);
287
287
* @ingroup QueueInterface
288
288
*/
289
289
DPCTL_API
290
- DPCTLSyclEventRef DPCTLQueue_Memcpy (__dpctl_keep const DPCTLSyclQueueRef QRef,
291
- void *Dest,
292
- const void *Src,
293
- size_t Count);
290
+ __dpctl_give DPCTLSyclEventRef
291
+ DPCTLQueue_Memcpy (__dpctl_keep const DPCTLSyclQueueRef QRef,
292
+ void *Dest,
293
+ const void *Src,
294
+ size_t Count);
294
295
295
296
/* !
296
297
* @brief C-API wrapper for ``sycl::queue::prefetch``.
@@ -303,9 +304,10 @@ DPCTLSyclEventRef DPCTLQueue_Memcpy(__dpctl_keep const DPCTLSyclQueueRef QRef,
303
304
* @ingroup QueueInterface
304
305
*/
305
306
DPCTL_API
306
- DPCTLSyclEventRef DPCTLQueue_Prefetch (__dpctl_keep DPCTLSyclQueueRef QRef,
307
- const void *Ptr,
308
- size_t Count);
307
+ __dpctl_give DPCTLSyclEventRef
308
+ DPCTLQueue_Prefetch (__dpctl_keep DPCTLSyclQueueRef QRef,
309
+ const void *Ptr,
310
+ size_t Count);
309
311
310
312
/* !
311
313
* @brief C-API wrapper for ``sycl::queue::mem_advise``.
@@ -321,10 +323,11 @@ DPCTLSyclEventRef DPCTLQueue_Prefetch(__dpctl_keep DPCTLSyclQueueRef QRef,
321
323
* @ingroup QueueInterface
322
324
*/
323
325
DPCTL_API
324
- DPCTLSyclEventRef DPCTLQueue_MemAdvise (__dpctl_keep DPCTLSyclQueueRef QRef,
325
- const void *Ptr,
326
- size_t Count,
327
- int Advice);
326
+ __dpctl_give DPCTLSyclEventRef
327
+ DPCTLQueue_MemAdvise (__dpctl_keep DPCTLSyclQueueRef QRef,
328
+ const void *Ptr,
329
+ size_t Count,
330
+ int Advice);
328
331
329
332
/* !
330
333
* @brief C-API wrapper for sycl::queue::is_in_order that indicates whether
@@ -365,7 +368,7 @@ size_t DPCTLQueue_Hash(__dpctl_keep const DPCTLSyclQueueRef QRef);
365
368
* ``sycl::queue::submit_barrier()`` function.
366
369
*/
367
370
DPCTL_API
368
- DPCTLSyclEventRef
371
+ __dpctl_give DPCTLSyclEventRef
369
372
DPCTLQueue_SubmitBarrier (__dpctl_keep const DPCTLSyclQueueRef QRef);
370
373
371
374
/* !
@@ -380,7 +383,7 @@ DPCTLQueue_SubmitBarrier(__dpctl_keep const DPCTLSyclQueueRef QRef);
380
383
* ``sycl::queue::submit_barrier()`` function.
381
384
*/
382
385
DPCTL_API
383
- DPCTLSyclEventRef DPCTLQueue_SubmitBarrierForEvents (
386
+ __dpctl_give DPCTLSyclEventRef DPCTLQueue_SubmitBarrierForEvents (
384
387
__dpctl_keep const DPCTLSyclQueueRef QRef,
385
388
__dpctl_keep const DPCTLSyclEventRef *DepEvents,
386
389
size_t NDepEvents);
@@ -397,9 +400,101 @@ DPCTLSyclEventRef DPCTLQueue_SubmitBarrierForEvents(
397
400
* @ingroup QueueInterface
398
401
*/
399
402
DPCTL_API
400
- DPCTLSyclEventRef DPCTLQueue_Memset (__dpctl_keep const DPCTLSyclQueueRef QRef,
401
- void *USMRef,
402
- uint8_t Value,
403
- size_t Count);
403
+ __dpctl_give DPCTLSyclEventRef
404
+ DPCTLQueue_Memset (__dpctl_keep const DPCTLSyclQueueRef QRef,
405
+ void *USMRef,
406
+ uint8_t Value,
407
+ size_t Count);
408
+
409
+ /* !
410
+ * @brief C-API wrapper for ``sycl::queue::fill``.
411
+ *
412
+ * @param QRef An opaque pointer to the ``sycl::queue``.
413
+ * @param USMRef An USM pointer to the memory to fill.
414
+ * @param Value A uint8_t value to fill.
415
+ * @param Count A number of uint8_t elements to fill.
416
+ * @return An opaque pointer to the ``sycl::event`` returned by the
417
+ * ``sycl::queue::fill`` function.
418
+ * @ingroup QueueInterface
419
+ */
420
+ DPCTL_API
421
+ __dpctl_give DPCTLSyclEventRef
422
+ DPCTLQueue_Fill8 (__dpctl_keep const DPCTLSyclQueueRef QRef,
423
+ void *USMRef,
424
+ uint8_t Value,
425
+ size_t Count);
426
+
427
+ /* !
428
+ * @brief C-API wrapper for ``sycl::queue::fill``.
429
+ *
430
+ * @param QRef An opaque pointer to the ``sycl::queue``.
431
+ * @param USMRef An USM pointer to the memory to fill.
432
+ * @param Value A uint16_t value to fill.
433
+ * @param Count A number of uint16_t elements to fill.
434
+ * @return An opaque pointer to the ``sycl::event`` returned by the
435
+ * ``sycl::queue::fill`` function.
436
+ * @ingroup QueueInterface
437
+ */
438
+ DPCTL_API
439
+ __dpctl_give DPCTLSyclEventRef
440
+ DPCTLQueue_Fill16 (__dpctl_keep const DPCTLSyclQueueRef QRef,
441
+ void *USMRef,
442
+ uint16_t Value,
443
+ size_t Count);
444
+
445
+ /* !
446
+ * @brief C-API wrapper for ``sycl::queue::fill``.
447
+ *
448
+ * @param QRef An opaque pointer to the ``sycl::queue``.
449
+ * @param USMRef An USM pointer to the memory to fill.
450
+ * @param Value A uint32_t value to fill.
451
+ * @param Count A number of uint32_t elements to fill.
452
+ * @return An opaque pointer to the ``sycl::event`` returned by the
453
+ * ``sycl::queue::fill`` function.
454
+ * @ingroup QueueInterface
455
+ */
456
+ DPCTL_API
457
+ __dpctl_give DPCTLSyclEventRef
458
+ DPCTLQueue_Fill32 (__dpctl_keep const DPCTLSyclQueueRef QRef,
459
+ void *USMRef,
460
+ uint32_t Value,
461
+ size_t Count);
462
+
463
+ /* !
464
+ * @brief C-API wrapper for ``sycl::queue::fill``.
465
+ *
466
+ * @param QRef An opaque pointer to the ``sycl::queue``.
467
+ * @param USMRef An USM pointer to the memory to fill.
468
+ * @param Value A uint64_t value to fill.
469
+ * @param Count A number of uint64_t elements to fill.
470
+ * @return An opaque pointer to the ``sycl::event`` returned by the
471
+ * ``sycl::queue::fill`` function.
472
+ * @ingroup QueueInterface
473
+ */
474
+ DPCTL_API
475
+ __dpctl_give DPCTLSyclEventRef
476
+ DPCTLQueue_Fill64 (__dpctl_keep const DPCTLSyclQueueRef QRef,
477
+ void *USMRef,
478
+ uint64_t Value,
479
+ size_t Count);
480
+
481
+ /* !
482
+ * @brief C-API wrapper for ``sycl::queue::fill``.
483
+ *
484
+ * @param QRef An opaque pointer to the ``sycl::queue``.
485
+ * @param USMRef An USM pointer to the memory to fill.
486
+ * @param Value A pointer to uint64_t array of 2 elements with value
487
+ * to fill.
488
+ * @param Count A number of 128-bit elements to fill.
489
+ * @return An opaque pointer to the ``sycl::event`` returned by the
490
+ * ``sycl::queue::fill`` function.
491
+ * @ingroup QueueInterface
492
+ */
493
+ DPCTL_API
494
+ __dpctl_give DPCTLSyclEventRef
495
+ DPCTLQueue_Fill128 (__dpctl_keep const DPCTLSyclQueueRef QRef,
496
+ void *USMRef,
497
+ uint64_t *Value,
498
+ size_t Count);
404
499
405
500
DPCTL_C_EXTERN_C_END
0 commit comments