@@ -36,6 +36,9 @@ DPPL_C_EXTERN_C_BEGIN
3636/*!
3737 * @brief Crete USM shared memory.
3838 *
39+ * @param size Number of bytes to allocate
40+ * @param QRef Sycl queue reference to use in allocation
41+ *
3942 * @return The pointer to USM shared memory.
4043 */
4144DPPL_API
@@ -45,7 +48,11 @@ DPPLmalloc_shared (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
4548/*!
4649 * @brief Crete USM shared memory.
4750 *
48- * @return The pointer to USM shared memory with requested alignment.
51+ * @param alignment Allocation's byte alignment
52+ * @param size Number of bytes to allocate
53+ * @param QRef Sycl queue reference to use in allocation
54+ *
55+ * @return The pointer to USM shared memory with the requested alignment.
4956 */
5057DPPL_API
5158__dppl_give DPPLSyclUSMRef
@@ -55,6 +62,9 @@ DPPLaligned_alloc_shared (size_t alignment, size_t size,
5562/*!
5663 * @brief Crete USM host memory.
5764 *
65+ * @param size Number of bytes to allocate
66+ * @param QRef Sycl queue reference to use in allocation
67+ *
5868 * @return The pointer to USM host memory.
5969 */
6070DPPL_API
@@ -64,7 +74,11 @@ DPPLmalloc_host (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
6474/*!
6575 * @brief Crete USM host memory.
6676 *
67- * @return The pointer to USM host memory with requested alignment.
77+ * @param alignment Allocation's byte alignment
78+ * @param size Number of bytes to allocate
79+ * @param QRef Sycl queue reference to use in allocation
80+ *
81+ * @return The pointer to USM host memory with the requested alignment.
6882 */
6983DPPL_API
7084__dppl_give DPPLSyclUSMRef
@@ -74,6 +88,9 @@ DPPLaligned_alloc_host (size_t alignment, size_t size,
7488/*!
7589 * @brief Crete USM device memory.
7690 *
91+ * @param size Number of bytes to allocate
92+ * @param QRef Sycl queue reference to use in allocation
93+ *
7794 * @return The pointer to USM device memory.
7895 */
7996DPPL_API
@@ -83,6 +100,10 @@ DPPLmalloc_device (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
83100/*!
84101 * @brief Crete USM device memory.
85102 *
103+ * @param alignment Allocation's byte alignment
104+ * @param size Number of bytes to allocate
105+ * @param QRef Sycl queue reference to use in allocation
106+ *
86107 * @return The pointer to USM device memory with requested alignment.
87108 */
88109DPPL_API
@@ -93,6 +114,11 @@ DPPLaligned_alloc_device (size_t alignment, size_t size,
93114/*!
94115 * @brief Free USM memory.
95116 *
117+ * @param MRef USM pointer to free
118+ * @param QRef Sycl queue reference to use.
119+ *
120+ * USM pointer must have been allocated using the same context as the one
121+ * used to construct the queue.
96122 */
97123DPPL_API
98124void DPPLfree_with_queue (__dppl_take DPPLSyclUSMRef MRef ,
@@ -109,6 +135,9 @@ void DPPLfree_with_context (__dppl_take DPPLSyclUSMRef MRef,
109135/*!
110136 * @brief Get pointer type.
111137 *
138+ * @param MRef USM Memory
139+ * @param CRef
140+ *
112141 * @return "host", "device", "shared" or "unknown"
113142 */
114143DPPL_API
@@ -119,6 +148,9 @@ DPPLUSM_GetPointerType (__dppl_keep const DPPLSyclUSMRef MRef,
119148/*!
120149 * @brief Get the device associated with USM pointer.
121150 *
151+ * @param MRef USM pointer
152+ * @param CRef Sycl context reference associated with the pointer
153+ *
122154 * @return A DPPLSyclDeviceRef pointer to the sycl device.
123155 */
124156DPPL_API
0 commit comments