Skip to content

Commit 092f5b3

Browse files
author
Diptorup Deb
committed
Other minor C API doc fixes.
1 parent 54aa641 commit 092f5b3

File tree

1 file changed

+38
-37
lines changed

1 file changed

+38
-37
lines changed

dpctl-capi/include/dpctl_sycl_device_interface.h

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ DPCTLDevice_Copy(__dpctl_keep const DPCTLSyclDeviceRef DRef);
5757
* @brief Returns a new DPCTLSyclDeviceRef opaque object wrapping a SYCL device
5858
* instance as a host device.
5959
*
60-
* @return An opaque pointer to the host SYCL device.
60+
* @return An opaque pointer to a ``sycl::device`` created as an instance of
61+
* the host device.
6162
* @ingroup DeviceInterface
6263
*/
6364
DPCTL_API
@@ -67,7 +68,7 @@ __dpctl_give DPCTLSyclDeviceRef DPCTLDevice_Create();
6768
* @brief Returns a new DPCTLSyclDeviceRef opaque object created using the
6869
* provided device_selector.
6970
*
70-
* @param DSRef An opaque pointer to a SYCL device_selector.
71+
* @param DSRef An opaque pointer to a ``sycl::device_selector``.
7172
* @return Returns an opaque pointer to a SYCL device created using the
7273
* device_selector, if the requested device could not be created a
7374
* nullptr is returned.
@@ -88,9 +89,9 @@ void DPCTLDevice_Delete(__dpctl_take DPCTLSyclDeviceRef DRef);
8889

8990
/*!
9091
* @brief Returns true if this SYCL device is an OpenCL device and the device
91-
* type is sycl::info::device_type::accelerator.
92+
* type is ``sycl::info::device_type::accelerator``.
9293
*
93-
* @param DRef Opaque pointer to a sycl::device
94+
* @param DRef Opaque pointer to a ``sycl::device``
9495
* @return True if the device type is an accelerator, else False.
9596
* @ingroup DeviceInterface
9697
*/
@@ -99,9 +100,9 @@ bool DPCTLDevice_IsAccelerator(__dpctl_keep const DPCTLSyclDeviceRef DRef);
99100

100101
/*!
101102
* @brief Returns true if this SYCL device is an OpenCL device and the device
102-
* type is sycl::info::device_type::cpu.
103+
* type is ``sycl::info::device_type::cpu``.
103104
*
104-
* @param DRef Opaque pointer to a sycl::device
105+
* @param DRef Opaque pointer to a ``sycl::device``
105106
* @return True if the device type is a cpu, else False.
106107
* @ingroup DeviceInterface
107108
*/
@@ -110,9 +111,9 @@ bool DPCTLDevice_IsCPU(__dpctl_keep const DPCTLSyclDeviceRef DRef);
110111

111112
/*!
112113
* @brief Returns true if this SYCL device is an OpenCL device and the device
113-
* type is sycl::info::device_type::gpu.
114+
* type is ``sycl::info::device_type::gpu``.
114115
*
115-
* @param DRef Opaque pointer to a sycl::device
116+
* @param DRef Opaque pointer to a ``sycl::device``
116117
* @return True if the device type is a gpu, else False.
117118
* @ingroup DeviceInterface
118119
*/
@@ -122,7 +123,7 @@ bool DPCTLDevice_IsGPU(__dpctl_keep const DPCTLSyclDeviceRef DRef);
122123
/*!
123124
* @brief Returns true if this SYCL device is a host device.
124125
*
125-
* @param DRef Opaque pointer to a sycl::device
126+
* @param DRef Opaque pointer to a ``sycl::device``
126127
* @return True if the device is a host device, else False.
127128
* @ingroup DeviceInterface
128129
*/
@@ -132,9 +133,9 @@ bool DPCTLDevice_IsHost(__dpctl_keep const DPCTLSyclDeviceRef DRef);
132133
/*!
133134
* @brief Returns the backend for the device.
134135
*
135-
* @param DRef Opaque pointer to a sycl::device
136-
* @return A DPCTLSyclBackendType enum value representing the sycl::backend
137-
* for the device.
136+
* @param DRef Opaque pointer to a ``sycl::device``
137+
* @return A DPCTLSyclBackendType enum value representing the
138+
* ``sycl::backend`` for the device.
138139
* @ingroup DeviceInterface
139140
*/
140141
DPCTL_API
@@ -156,7 +157,7 @@ DPCTLDevice_GetDeviceType(__dpctl_keep const DPCTLSyclDeviceRef DRef);
156157
/*!
157158
* @brief Returns the OpenCL software driver version as a C string.
158159
*
159-
* @param DRef Opaque pointer to a sycl::device
160+
* @param DRef Opaque pointer to a ``sycl::device``
160161
* @return A C string in the form major_number.minor.number that corresponds
161162
* to the OpenCL driver version if this is a OpenCL device.
162163
* @ingroup DeviceInterface
@@ -168,7 +169,7 @@ DPCTLDevice_GetDriverInfo(__dpctl_keep const DPCTLSyclDeviceRef DRef);
168169
/*!
169170
* @brief Wrapper over device.get_info<info::device::max_compute_units>().
170171
*
171-
* @param DRef Opaque pointer to a sycl::device
172+
* @param DRef Opaque pointer to a ``sycl::device``
172173
* @return Returns the valid result if device exists else returns 0.
173174
* @ingroup DeviceInterface
174175
*/
@@ -179,7 +180,7 @@ DPCTLDevice_GetMaxComputeUnits(__dpctl_keep const DPCTLSyclDeviceRef DRef);
179180
/*!
180181
* @brief Wrapper for get_info<info::device::max_work_item_dimensions>().
181182
*
182-
* @param DRef Opaque pointer to a sycl::device
183+
* @param DRef Opaque pointer to a ``sycl::device``
183184
* @return Returns the valid result if device exists else returns 0.
184185
* @ingroup DeviceInterface
185186
*/
@@ -190,7 +191,7 @@ DPCTLDevice_GetMaxWorkItemDims(__dpctl_keep const DPCTLSyclDeviceRef DRef);
190191
/*!
191192
* @brief Wrapper for get_info<info::device::max_work_item_sizes>().
192193
*
193-
* @param DRef Opaque pointer to a sycl::device
194+
* @param DRef Opaque pointer to a ``sycl::device``
194195
* @return Returns the valid result if device exists else returns NULL.
195196
* @ingroup DeviceInterface
196197
*/
@@ -201,7 +202,7 @@ DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef);
201202
/*!
202203
* @brief Wrapper for get_info<info::device::max_work_group_size>().
203204
*
204-
* @param DRef Opaque pointer to a sycl::device
205+
* @param DRef Opaque pointer to a ``sycl::device``
205206
* @return Returns the valid result if device exists else returns 0.
206207
* @ingroup DeviceInterface
207208
*/
@@ -212,7 +213,7 @@ DPCTLDevice_GetMaxWorkGroupSize(__dpctl_keep const DPCTLSyclDeviceRef DRef);
212213
/*!
213214
* @brief Wrapper over device.get_info<info::device::max_num_sub_groups>.
214215
*
215-
* @param DRef Opaque pointer to a sycl::device
216+
* @param DRef Opaque pointer to a ``sycl::device``
216217
* @return Returns the valid result if device exists else returns 0.
217218
* @ingroup DeviceInterface
218219
*/
@@ -221,10 +222,10 @@ uint32_t
221222
DPCTLDevice_GetMaxNumSubGroups(__dpctl_keep const DPCTLSyclDeviceRef DRef);
222223

223224
/*!
224-
* @brief Returns the sycl::platform for the device as DPCTLSyclPlatformRef
225+
* @brief Returns the ``sycl::platform`` for the device as DPCTLSyclPlatformRef
225226
* opaque pointer.
226227
*
227-
* @param DRef Opaque pointer to a sycl::device
228+
* @param DRef Opaque pointer to a ``sycl::device``
228229
* @return An opaque pointer to the sycl::platform for the device.
229230
* @ingroup DeviceInterface
230231
*/
@@ -235,7 +236,7 @@ DPCTLDevice_GetPlatform(__dpctl_keep const DPCTLSyclDeviceRef DRef);
235236
/*!
236237
* @brief Returns a C string for the device name.
237238
*
238-
* @param DRef Opaque pointer to a sycl::device
239+
* @param DRef Opaque pointer to a ``sycl::device``
239240
* @return A C string containing the OpenCL device name.
240241
* @ingroup DeviceInterface
241242
*/
@@ -246,7 +247,7 @@ DPCTLDevice_GetName(__dpctl_keep const DPCTLSyclDeviceRef DRef);
246247
/*!
247248
* @brief Returns a C string corresponding to the vendor name.
248249
*
249-
* @param DRef Opaque pointer to a sycl::device
250+
* @param DRef Opaque pointer to a ``sycl::device``
250251
* @return A C string containing the OpenCL device vendor name.
251252
* @ingroup DeviceInterface
252253
*/
@@ -258,7 +259,7 @@ DPCTLDevice_GetVendorName(__dpctl_keep const DPCTLSyclDeviceRef DRef);
258259
* @brief Returns True if the device and the host share a unified memory
259260
* subsystem, else returns False.
260261
*
261-
* @param DRef Opaque pointer to a sycl::device
262+
* @param DRef Opaque pointer to a ``sycl::device``
262263
* @return Boolean indicating if the device shares a unified memory subsystem
263264
* with the host.
264265
* @ingroup DeviceInterface
@@ -271,8 +272,8 @@ bool DPCTLDevice_IsHostUnifiedMemory(
271272
* @brief Checks if two DPCTLSyclDeviceRef objects point to the same
272273
* sycl::device.
273274
*
274-
* @param DRef1 First opaque pointer to a sycl device.
275-
* @param DRef2 Second opaque pointer to a sycl device.
275+
* @param DRef1 First opaque pointer to a ``sycl::device``.
276+
* @param DRef2 Second opaque pointer to a ``sycl::device``.
276277
* @return True if the underlying sycl::device are same, false otherwise.
277278
* @ingroup DeviceInterface
278279
*/
@@ -283,8 +284,8 @@ bool DPCTLDevice_AreEq(__dpctl_keep const DPCTLSyclDeviceRef DRef1,
283284
/*!
284285
* @brief Checks if device has aspect.
285286
*
286-
* @param DRef Opaque pointer to a sycl::device
287-
* @param AT DPCTLSyclAspectType of device::aspect.
287+
* @param DRef Opaque pointer to a ``sycl::device``
288+
* @param AT DPCTLSyclAspectType of ``device::aspect``.
288289
* @return True if sycl::device has device::aspect, else false.
289290
* @ingroup DeviceInterface
290291
*/
@@ -391,7 +392,7 @@ DPCTLDevice_GetImage3dMaxDepth(__dpctl_keep const DPCTLSyclDeviceRef DRef);
391392
* units is not evenly divided by count, then the remaining compute units are
392393
* not included in any of the sub devices.
393394
*
394-
* @param DRef Opaque pointer to a sycl::device
395+
* @param DRef Opaque pointer to a ``sycl::device``
395396
* @param count Count compute units that need to contains in
396397
* subdevices
397398
* @return A #DPCTLDeviceVectorRef containing #DPCTLSyclDeviceRef objects
@@ -408,7 +409,7 @@ DPCTLDevice_CreateSubDevicesEqually(__dpctl_keep const DPCTLSyclDeviceRef DRef,
408409
* non-zero value M in the counts vector, a sub device with M compute units
409410
* is created.
410411
*
411-
* @param DRef Opaque pointer to a sycl::device
412+
* @param DRef Opaque pointer to a ``sycl::device``
412413
* @param counts Array with count compute units
413414
* that need to contains in subdevices
414415
* @param ncounts Number of counts
@@ -457,7 +458,7 @@ bool DPCTLDevice_GetSubGroupIndependentForwardProgress(
457458
* @brief Wrapper over
458459
* device.get_info<info::device::preferred_vector_width_char>.
459460
*
460-
* @param DRef Opaque pointer to a sycl::device
461+
* @param DRef Opaque pointer to a ``sycl::device``
461462
* @return Returns the preferred native vector width size for built-in scalar
462463
* types that can be put into vectors.
463464
* @ingroup DeviceInterface
@@ -470,7 +471,7 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthChar(
470471
* @brief Wrapper over
471472
* device.get_info<info::device::preferred_vector_width_short>.
472473
*
473-
* @param DRef Opaque pointer to a sycl::device
474+
* @param DRef Opaque pointer to a ``sycl::device``
474475
* @return Returns the preferred native vector width size for built-in scalar
475476
* types that can be put into vectors.
476477
* @ingroup DeviceInterface
@@ -483,7 +484,7 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthShort(
483484
* @brief Wrapper over
484485
* device.get_info<info::device::preferred_vector_width_int>.
485486
*
486-
* @param DRef Opaque pointer to a sycl::device
487+
* @param DRef Opaque pointer to a ``sycl::device``
487488
* @return Returns the preferred native vector width size for built-in scalar
488489
* types that can be put into vectors.
489490
* @ingroup DeviceInterface
@@ -496,7 +497,7 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthInt(
496497
* @brief Wrapper over
497498
* device.get_info<info::device::preferred_vector_width_long>.
498499
*
499-
* @param DRef Opaque pointer to a sycl::device
500+
* @param DRef Opaque pointer to a ``sycl::device``
500501
* @return Returns the preferred native vector width size for built-in scalar
501502
* types that can be put into vectors.
502503
* @ingroup DeviceInterface
@@ -509,7 +510,7 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthLong(
509510
* @brief Wrapper over
510511
* device.get_info<info::device::preferred_vector_width_float>.
511512
*
512-
* @param DRef Opaque pointer
513+
* @param DRef Opaque pointer to a ``sycl::device``
513514
* @return Returns the preferred native vector width size for built-in scalar
514515
* type.
515516
* @ingroup DeviceInterface
@@ -522,7 +523,7 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthFloat(
522523
* @brief Wrapper over
523524
* device.get_info<info::device::preferred_vector_width_double>.
524525
*
525-
* @param DRef Opaque pointer to a sycl::device
526+
* @param DRef Opaque pointer to a ``sycl::device``
526527
* @return Returns the preferred native vector width size for built-in scalar
527528
* types that can be put into vectors.
528529
* @ingroup DeviceInterface
@@ -533,9 +534,9 @@ uint32_t DPCTLDevice_GetPreferredVectorWidthDouble(
533534

534535
/*!
535536
* @brief Wrapper over
536-
* device.get_info<info::device::preferred_vector_width_half>.
537+
* ``device.get_info<info::device::preferred_vector_width_half>``.
537538
*
538-
* @param DRef Opaque pointer to a sycl::device
539+
* @param DRef Opaque pointer to a ``sycl::device``
539540
* @return Returns the preferred native vector width size for built-in scalar
540541
* types that can be put into vectors.
541542
* @ingroup DeviceInterface

0 commit comments

Comments
 (0)