Skip to content

Commit 59b078b

Browse files
added doxygen @params
1 parent a95d2f2 commit 59b078b

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

backends/include/dppl_sycl_queue_manager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ void DPPLQueueMgr_PopQueue ();
167167
* ownership of the queue reference and should deallocate it using
168168
* DPPLQueue_Delete.
169169
*
170+
* @param CRef Sycl context reference
171+
* @param DRef Sycl device reference
172+
*
173+
* @return A copy of the sycl::queue created from given context and device
174+
* references.
170175
*/
171176
DPPL_API
172177
__dppl_give DPPLSyclQueueRef

backends/include/dppl_sycl_usm_interface.h

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
4144
DPPL_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
*/
5057
DPPL_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
*/
6070
DPPL_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
*/
6983
DPPL_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
*/
7996
DPPL_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
*/
88109
DPPL_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
*/
97123
DPPL_API
98124
void 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
*/
114143
DPPL_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
*/
124156
DPPL_API

0 commit comments

Comments
 (0)