@@ -126,10 +126,11 @@ __dpctl_give DPCTLSyclQueueRef
126
126
DPCTLQueue_Copy (__dpctl_keep const DPCTLSyclQueueRef QRef);
127
127
128
128
/* !
129
- * @brief Checks if two DPCTLSyclQueueRef objects point to the same sycl::queue.
129
+ * @brief Checks if two DPCTLSyclQueueRef objects point to the
130
+ * same ``sycl::queue``.
130
131
*
131
- * @param QRef1 First opaque pointer to the sycl queue.
132
- * @param QRef2 Second opaque pointer to the sycl queue.
132
+ * @param QRef1 First opaque pointer to the `` sycl:: queue`` .
133
+ * @param QRef2 Second opaque pointer to the `` sycl:: queue`` .
133
134
* @return True if the underlying sycl::queue are same, false otherwise.
134
135
* @ingroup QueueInterface
135
136
*/
@@ -174,11 +175,12 @@ DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
174
175
* @brief Submits the kernel to the specified queue with the provided range
175
176
* argument.
176
177
*
177
- * A wrapper over sycl::queue.submit(). The function takes an interoperability
178
- * kernel, the kernel arguments, and a Sycl queue as input. The kernel is
179
- * submitted as parallel_for(range<NRange>, *unwrap(KRef)).
178
+ * A wrapper over ``sycl::queue.submit()``. The function takes an
179
+ * interoperability kernel, the kernel arguments, and a ``sycl::queue`` as
180
+ * input. The kernel is submitted as
181
+ * ``parallel_for(range<NRange>, *unwrap(KRef))``.
180
182
*
181
- * \todo sycl::buffer arguments are not supported yet.
183
+ * \todo `` sycl::buffer`` arguments are not supported yet.
182
184
* \todo Add support for id<Dims> WorkItemOffset
183
185
*
184
186
* @param KRef Opaque pointer to an OpenCL interoperability kernel
@@ -195,11 +197,11 @@ DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
195
197
* dimensions.
196
198
* @param NRange Size of the gRange array.
197
199
* @param DepEvents List of dependent DPCTLSyclEventRef objects (events)
198
- * for the kernel. We call sycl::handler.depends_on for
199
- * each of the provided events.
200
+ * for the kernel. We call `` sycl::handler.depends_on``
201
+ * for each of the provided events.
200
202
* @param NDepEvents Size of the DepEvents list.
201
- * @return An opaque pointer to the sycl::event returned by the
202
- * sycl::queue.submit() function.
203
+ * @return An opaque pointer to the `` sycl::event`` returned by the
204
+ * `` sycl::queue.submit()`` function.
203
205
* @ingroup QueueInterface
204
206
*/
205
207
DPCTL_API
@@ -218,9 +220,9 @@ DPCTLQueue_SubmitRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
218
220
* @brief Submits the kernel to the specified queue with the provided nd_range
219
221
* argument.
220
222
*
221
- * A wrapper over sycl::queue.submit(). The function takes an interoperability
222
- * kernel, the kernel arguments, and a Sycl queue as input. The kernel is
223
- * submitted as parallel_for(nd_range<NRange>, *unwrap(KRef)).
223
+ * A wrapper over `` sycl::queue.submit()`` . The function takes an
224
+ * interoperability kernel, the kernel arguments, and a Sycl queue as input.
225
+ * The kernel is submitted as `` parallel_for(nd_range<NRange>, *unwrap(KRef))`` .
224
226
*
225
227
* \todo sycl::buffer arguments are not supported yet.
226
228
* \todo Add support for id<Dims> WorkItemOffset
@@ -243,11 +245,11 @@ DPCTLQueue_SubmitRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
243
245
* @param NDims The number of dimensions for both local and global
244
246
* ranges.
245
247
* @param DepEvents List of dependent DPCTLSyclEventRef objects (events)
246
- * for the kernel. We call sycl::handler.depends_on for
247
- * each of the provided events.
248
+ * for the kernel. We call `` sycl::handler.depends_on``
249
+ * for each of the provided events.
248
250
* @param NDepEvents Size of the DepEvents list.
249
- * @return An opaque pointer to the sycl::event returned by the
250
- * sycl::queue.submit() function.
251
+ * @return An opaque pointer to the `` sycl::event`` returned by the
252
+ * `` sycl::queue.submit()`` function.
251
253
* @ingroup QueueInterface
252
254
*/
253
255
DPCTL_API
@@ -264,20 +266,20 @@ DPCTLQueue_SubmitNDRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
264
266
size_t NDepEvents);
265
267
266
268
/* !
267
- * @brief Calls the sycl::queue.submit function to do a blocking wait on all
268
- * enqueued tasks in the queue.
269
+ * @brief Calls the `` sycl::queue.submit`` function to do a blocking wait on
270
+ * all enqueued tasks in the queue.
269
271
*
270
- * @param QRef Opaque pointer to a sycl::queue.
272
+ * @param QRef Opaque pointer to a `` sycl::queue`` .
271
273
* @ingroup QueueInterface
272
274
*/
273
275
DPCTL_API
274
276
void DPCTLQueue_Wait (__dpctl_keep const DPCTLSyclQueueRef QRef);
275
277
276
278
/* !
277
- * @brief C-API wrapper for sycl::queue::memcpy, the function waits on an event
278
- * till the memcpy operation completes.
279
+ * @brief C-API wrapper for `` sycl::queue::memcpy`` , the function waits on an
280
+ * event till the memcpy operation completes.
279
281
*
280
- * @param QRef An opaque pointer to the sycl queue.
282
+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
281
283
* @param Dest An USM pointer to the destination memory.
282
284
* @param Src An USM pointer to the source memory.
283
285
* @param Count A number of bytes to copy.
@@ -290,10 +292,10 @@ void DPCTLQueue_Memcpy(__dpctl_keep const DPCTLSyclQueueRef QRef,
290
292
size_t Count);
291
293
292
294
/* !
293
- * @brief C-API wrapper for sycl::queue::prefetch, the function waits on an
295
+ * @brief C-API wrapper for `` sycl::queue::prefetch`` , the function waits on an
294
296
* event till the prefetch operation completes.
295
297
*
296
- * @param QRef An opaque pointer to the sycl queue.
298
+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
297
299
* @param Ptr An USM pointer to memory.
298
300
* @param Count A number of bytes to prefetch.
299
301
* @ingroup QueueInterface
@@ -307,7 +309,7 @@ void DPCTLQueue_Prefetch(__dpctl_keep DPCTLSyclQueueRef QRef,
307
309
* @brief C-API wrapper for sycl::queue::mem_advise, the function waits on an
308
310
* event till the operation completes.
309
311
*
310
- * @param QRef An opaque pointer to the sycl queue.
312
+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
311
313
* @param Ptr An USM pointer to memory.
312
314
* @param Count A number of bytes to prefetch.
313
315
* @param Advice Device-defined advice for the specified allocation.
@@ -325,10 +327,20 @@ void DPCTLQueue_MemAdvise(__dpctl_keep DPCTLSyclQueueRef QRef,
325
327
* @brief C-API wrapper for sycl::queue::is_in_order that indicates whether
326
328
* the referenced queue is in-order or out-of-order.
327
329
*
328
- * @param QRef An opaque pointer to the sycl queue.
330
+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
329
331
* @ingroup QueueInterface
330
332
*/
331
333
DPCTL_API
332
334
bool DPCTLQueue_IsInOrder (__dpctl_keep const DPCTLSyclQueueRef QRef);
333
335
336
+ /* !
337
+ * @brief C-API wrapper for std::hash<sycl::queue>'s operator().
338
+ *
339
+ * @param QRef An opaque pointer to the ``sycl::queue``.
340
+ * @return Hash value of the underlying ``sycl::queue`` instance.
341
+ * @ingroup QueueInterface
342
+ */
343
+ DPCTL_API
344
+ size_t DPCTLQueue_Hash (__dpctl_keep const DPCTLSyclQueueRef QRef);
345
+
334
346
DPCTL_C_EXTERN_C_END
0 commit comments