Skip to content

Commit 11e9667

Browse files
committed
[SYCL][NFC] Fix doxygen warnings
The warnings are about parameter name mismatch and undocumented parameters. Signed-off-by: Alexey Bader <[email protected]>
1 parent 0e01ed5 commit 11e9667

File tree

8 files changed

+96
-80
lines changed

8 files changed

+96
-80
lines changed

sycl/include/CL/sycl/device.hpp

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class device {
3636
/// Constructs a SYCL device instance using the device selected
3737
/// by the DeviceSelector provided.
3838
///
39-
/// \param deviceSelector SYCL device selector to be used (see 4.6.1.1).
39+
/// \param DeviceSelector SYCL device selector to be used (see 4.6.1.1).
4040
explicit device(const device_selector &DeviceSelector);
4141

4242
bool operator==(const device &rhs) const { return impl == rhs.impl; }
@@ -53,7 +53,8 @@ class device {
5353

5454
/// Get instance of device
5555
///
56-
/// \return a valid cl_device_id instance in accordance with the requirements described in 4.3.1.
56+
/// \return a valid cl_device_id instance in accordance with the requirements
57+
/// described in 4.3.1.
5758
cl_device_id get() const;
5859

5960
/// Check if device is a host device
@@ -82,52 +83,61 @@ class device {
8283
/// must encapsulate the OpenCL cl_plaform_id associated with the
8384
/// underlying OpenCL cl_device_id of this SYCL device. If this SYCL device
8485
/// is a host device then the SYCL platform must be a host platform.
85-
/// The value returned must be equal to that returned by get_info<info::device::platform>().
86+
/// The value returned must be equal to that returned by
87+
/// get_info<info::device::platform>().
8688
///
8789
/// \return The associated SYCL platform.
8890
platform get_platform() const;
8991

9092
/// Partition device into sub devices
9193
///
9294
/// Available only when prop is info::partition_property::partition_equally.
93-
/// If this SYCL device does not support info::partition_property::partition_equally
94-
/// a feature_not_supported exception must be thrown.
95+
/// If this SYCL device does not support
96+
/// info::partition_property::partition_equally a feature_not_supported
97+
/// exception must be thrown.
9598
///
96-
/// \param ComputeUnits is a desired count of compute units in each sub device.
97-
/// \return A vector class of sub devices partitioned from this SYCL device equally based on the ComputeUnits parameter.
99+
/// \param ComputeUnits is a desired count of compute units in each sub
100+
/// device. \return A vector class of sub devices partitioned from this SYCL
101+
/// device equally based on the ComputeUnits parameter.
98102
template <info::partition_property prop>
99103
vector_class<device> create_sub_devices(size_t ComputeUnits) const;
100104

101105
/// Partition device into sub devices
102106
///
103107
/// Available only when prop is info::partition_property::partition_by_counts.
104-
/// If this SYCL device does not support info::partition_property::partition_by_counts
105-
/// a feature_not_supported exception must be thrown.
108+
/// If this SYCL device does not support
109+
/// info::partition_property::partition_by_counts a feature_not_supported
110+
/// exception must be thrown.
106111
///
107112
/// \param Counts is a vector_class of desired compute units in sub devices.
108-
/// \return a vector_class of sub devices partitioned from this SYCL device by count sizes based on the Counts parameter.
113+
/// \return a vector_class of sub devices partitioned from this SYCL device by
114+
/// count sizes based on the Counts parameter.
109115
template <info::partition_property prop>
110116
vector_class<device>
111117
create_sub_devices(const vector_class<size_t> &Counts) const;
112118

113119
/// Partition device into sub devices
114120
///
115-
/// Available only when prop is info::partition_property::partition_by_affinity_domain.
116-
/// If this SYCL device does not support info::partition_property::partition_by_affinity_domain
117-
/// or the SYCL device does not support info::affinity_domain provided
118-
/// a feature_not_supported exception must be thrown.
121+
/// Available only when prop is
122+
/// info::partition_property::partition_by_affinity_domain. If this SYCL
123+
/// device does not support
124+
/// info::partition_property::partition_by_affinity_domain or the SYCL device
125+
/// does not support info::affinity_domain provided a feature_not_supported
126+
/// exception must be thrown.
119127
///
120-
/// \param AffinityDomain is one of the values described in Table 4.20 of SYCL Spec
121-
/// \return a vector class of sub devices partitioned from this SYCL device by affinity domain based on the AffinityDomain parameter
128+
/// \param AffinityDomain is one of the values described in Table 4.20 of SYCL
129+
/// Spec \return a vector class of sub devices partitioned from this SYCL
130+
/// device by affinity domain based on the AffinityDomain parameter
122131
template <info::partition_property prop>
123132
vector_class<device>
124133
create_sub_devices(info::partition_affinity_domain AffinityDomain) const;
125134

126-
/// Queries this SYCL device for information requested by the template parameter param
135+
/// Queries this SYCL device for information requested by the template
136+
/// parameter param
127137
///
128-
/// Specializations of info::param_traits must be defined in accordance with the info
129-
/// parameters in Table 4.20 of SYCL Spec to facilitate returning the type
130-
/// associated with the param parameter.
138+
/// Specializations of info::param_traits must be defined in accordance with
139+
/// the info parameters in Table 4.20 of SYCL Spec to facilitate returning the
140+
/// type associated with the param parameter.
131141
///
132142
/// \return device info of type described in Table 4.20.
133143
template <info::device param>
@@ -136,7 +146,7 @@ class device {
136146

137147
/// Check SYCL extension support by device
138148
///
139-
/// @extension_name is a name of queried extension.
149+
/// \param extension_name is a name of queried extension.
140150
/// \return true if SYCL device supports the extension.
141151
bool has_extension(const string_class &extension_name) const;
142152

@@ -145,8 +155,9 @@ class device {
145155
/// The returned vector_class must contain a single SYCL device
146156
/// that is a host device, permitted by the deviceType parameter
147157
///
148-
/// @deviceType is one of the values described in A.3 of SYCL Spec
149-
/// \return a vector_class containing all SYCL devices available in the system of the device type specified
158+
/// \param deviceType is one of the values described in A.3 of SYCL Spec
159+
/// \return a vector_class containing all SYCL devices available in the system
160+
/// of the device type specified
150161
static vector_class<device>
151162
get_devices(info::device_type deviceType = info::device_type::all);
152163

0 commit comments

Comments
 (0)