@@ -36,7 +36,7 @@ class device {
36
36
// / Constructs a SYCL device instance using the device selected
37
37
// / by the DeviceSelector provided.
38
38
// /
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).
40
40
explicit device (const device_selector &DeviceSelector);
41
41
42
42
bool operator ==(const device &rhs) const { return impl == rhs.impl ; }
@@ -53,7 +53,8 @@ class device {
53
53
54
54
// / Get instance of device
55
55
// /
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.
57
58
cl_device_id get () const ;
58
59
59
60
// / Check if device is a host device
@@ -82,52 +83,61 @@ class device {
82
83
// / must encapsulate the OpenCL cl_plaform_id associated with the
83
84
// / underlying OpenCL cl_device_id of this SYCL device. If this SYCL device
84
85
// / 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>().
86
88
// /
87
89
// / \return The associated SYCL platform.
88
90
platform get_platform () const ;
89
91
90
92
// / Partition device into sub devices
91
93
// /
92
94
// / 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.
95
98
// /
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.
98
102
template <info::partition_property prop>
99
103
vector_class<device> create_sub_devices (size_t ComputeUnits) const ;
100
104
101
105
// / Partition device into sub devices
102
106
// /
103
107
// / 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.
106
111
// /
107
112
// / \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.
109
115
template <info::partition_property prop>
110
116
vector_class<device>
111
117
create_sub_devices (const vector_class<size_t > &Counts) const ;
112
118
113
119
// / Partition device into sub devices
114
120
// /
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.
119
127
// /
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
122
131
template <info::partition_property prop>
123
132
vector_class<device>
124
133
create_sub_devices (info::partition_affinity_domain AffinityDomain) const ;
125
134
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
127
137
// /
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.
131
141
// /
132
142
// / \return device info of type described in Table 4.20.
133
143
template <info::device param>
@@ -136,7 +146,7 @@ class device {
136
146
137
147
// / Check SYCL extension support by device
138
148
// /
139
- // / @ extension_name is a name of queried extension.
149
+ // / \param extension_name is a name of queried extension.
140
150
// / \return true if SYCL device supports the extension.
141
151
bool has_extension (const string_class &extension_name) const ;
142
152
@@ -145,8 +155,9 @@ class device {
145
155
// / The returned vector_class must contain a single SYCL device
146
156
// / that is a host device, permitted by the deviceType parameter
147
157
// /
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
150
161
static vector_class<device>
151
162
get_devices (info::device_type deviceType = info::device_type::all);
152
163
0 commit comments