@@ -126,10 +126,11 @@ __dpctl_give DPCTLSyclQueueRef
126126DPCTLQueue_Copy (__dpctl_keep const DPCTLSyclQueueRef QRef);
127127
128128/* !
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``.
130131 *
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`` .
133134 * @return True if the underlying sycl::queue are same, false otherwise.
134135 * @ingroup QueueInterface
135136 */
@@ -174,11 +175,12 @@ DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
174175 * @brief Submits the kernel to the specified queue with the provided range
175176 * argument.
176177 *
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))``.
180182 *
181- * \todo sycl::buffer arguments are not supported yet.
183+ * \todo `` sycl::buffer`` arguments are not supported yet.
182184 * \todo Add support for id<Dims> WorkItemOffset
183185 *
184186 * @param KRef Opaque pointer to an OpenCL interoperability kernel
@@ -195,11 +197,11 @@ DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
195197 * dimensions.
196198 * @param NRange Size of the gRange array.
197199 * @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.
200202 * @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.
203205 * @ingroup QueueInterface
204206 */
205207DPCTL_API
@@ -218,9 +220,9 @@ DPCTLQueue_SubmitRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
218220 * @brief Submits the kernel to the specified queue with the provided nd_range
219221 * argument.
220222 *
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))`` .
224226 *
225227 * \todo sycl::buffer arguments are not supported yet.
226228 * \todo Add support for id<Dims> WorkItemOffset
@@ -243,11 +245,11 @@ DPCTLQueue_SubmitRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
243245 * @param NDims The number of dimensions for both local and global
244246 * ranges.
245247 * @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.
248250 * @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.
251253 * @ingroup QueueInterface
252254 */
253255DPCTL_API
@@ -264,20 +266,20 @@ DPCTLQueue_SubmitNDRange(__dpctl_keep const DPCTLSyclKernelRef KRef,
264266 size_t NDepEvents);
265267
266268/* !
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.
269271 *
270- * @param QRef Opaque pointer to a sycl::queue.
272+ * @param QRef Opaque pointer to a `` sycl::queue`` .
271273 * @ingroup QueueInterface
272274 */
273275DPCTL_API
274276void DPCTLQueue_Wait (__dpctl_keep const DPCTLSyclQueueRef QRef);
275277
276278/* !
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.
279281 *
280- * @param QRef An opaque pointer to the sycl queue.
282+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
281283 * @param Dest An USM pointer to the destination memory.
282284 * @param Src An USM pointer to the source memory.
283285 * @param Count A number of bytes to copy.
@@ -290,10 +292,10 @@ void DPCTLQueue_Memcpy(__dpctl_keep const DPCTLSyclQueueRef QRef,
290292 size_t Count);
291293
292294/* !
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
294296 * event till the prefetch operation completes.
295297 *
296- * @param QRef An opaque pointer to the sycl queue.
298+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
297299 * @param Ptr An USM pointer to memory.
298300 * @param Count A number of bytes to prefetch.
299301 * @ingroup QueueInterface
@@ -307,7 +309,7 @@ void DPCTLQueue_Prefetch(__dpctl_keep DPCTLSyclQueueRef QRef,
307309 * @brief C-API wrapper for sycl::queue::mem_advise, the function waits on an
308310 * event till the operation completes.
309311 *
310- * @param QRef An opaque pointer to the sycl queue.
312+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
311313 * @param Ptr An USM pointer to memory.
312314 * @param Count A number of bytes to prefetch.
313315 * @param Advice Device-defined advice for the specified allocation.
@@ -325,10 +327,20 @@ void DPCTLQueue_MemAdvise(__dpctl_keep DPCTLSyclQueueRef QRef,
325327 * @brief C-API wrapper for sycl::queue::is_in_order that indicates whether
326328 * the referenced queue is in-order or out-of-order.
327329 *
328- * @param QRef An opaque pointer to the sycl queue.
330+ * @param QRef An opaque pointer to the `` sycl:: queue`` .
329331 * @ingroup QueueInterface
330332 */
331333DPCTL_API
332334bool DPCTLQueue_IsInOrder (__dpctl_keep const DPCTLSyclQueueRef QRef);
333335
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+
334346DPCTL_C_EXTERN_C_END
0 commit comments