@@ -36,6 +36,9 @@ DPPL_C_EXTERN_C_BEGIN
36
36
/*!
37
37
* @brief Crete USM shared memory.
38
38
*
39
+ * @param size Number of bytes to allocate
40
+ * @param QRef Sycl queue reference to use in allocation
41
+ *
39
42
* @return The pointer to USM shared memory.
40
43
*/
41
44
DPPL_API
@@ -45,7 +48,11 @@ DPPLmalloc_shared (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
45
48
/*!
46
49
* @brief Crete USM shared memory.
47
50
*
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.
49
56
*/
50
57
DPPL_API
51
58
__dppl_give DPPLSyclUSMRef
@@ -55,6 +62,9 @@ DPPLaligned_alloc_shared (size_t alignment, size_t size,
55
62
/*!
56
63
* @brief Crete USM host memory.
57
64
*
65
+ * @param size Number of bytes to allocate
66
+ * @param QRef Sycl queue reference to use in allocation
67
+ *
58
68
* @return The pointer to USM host memory.
59
69
*/
60
70
DPPL_API
@@ -64,7 +74,11 @@ DPPLmalloc_host (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
64
74
/*!
65
75
* @brief Crete USM host memory.
66
76
*
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.
68
82
*/
69
83
DPPL_API
70
84
__dppl_give DPPLSyclUSMRef
@@ -74,6 +88,9 @@ DPPLaligned_alloc_host (size_t alignment, size_t size,
74
88
/*!
75
89
* @brief Crete USM device memory.
76
90
*
91
+ * @param size Number of bytes to allocate
92
+ * @param QRef Sycl queue reference to use in allocation
93
+ *
77
94
* @return The pointer to USM device memory.
78
95
*/
79
96
DPPL_API
@@ -83,6 +100,10 @@ DPPLmalloc_device (size_t size, __dppl_keep const DPPLSyclQueueRef QRef);
83
100
/*!
84
101
* @brief Crete USM device memory.
85
102
*
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
+ *
86
107
* @return The pointer to USM device memory with requested alignment.
87
108
*/
88
109
DPPL_API
@@ -93,6 +114,11 @@ DPPLaligned_alloc_device (size_t alignment, size_t size,
93
114
/*!
94
115
* @brief Free USM memory.
95
116
*
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.
96
122
*/
97
123
DPPL_API
98
124
void DPPLfree_with_queue (__dppl_take DPPLSyclUSMRef MRef ,
@@ -109,6 +135,9 @@ void DPPLfree_with_context (__dppl_take DPPLSyclUSMRef MRef,
109
135
/*!
110
136
* @brief Get pointer type.
111
137
*
138
+ * @param MRef USM Memory
139
+ * @param CRef
140
+ *
112
141
* @return "host", "device", "shared" or "unknown"
113
142
*/
114
143
DPPL_API
@@ -119,6 +148,9 @@ DPPLUSM_GetPointerType (__dppl_keep const DPPLSyclUSMRef MRef,
119
148
/*!
120
149
* @brief Get the device associated with USM pointer.
121
150
*
151
+ * @param MRef USM pointer
152
+ * @param CRef Sycl context reference associated with the pointer
153
+ *
122
154
* @return A DPPLSyclDeviceRef pointer to the sycl device.
123
155
*/
124
156
DPPL_API
0 commit comments