You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desc: "Retrieves devices within a platform selected by ONEAPI_DEVICE_SELECTOR"
155
+
class: $xDevice
156
+
loader_only: True
157
+
name: GetSelected
158
+
decl: static
159
+
ordinal: "0"
160
+
details:
161
+
- "Multiple calls to this function will return identical device handles, in the same order."
162
+
- "The number and order of handles returned from this function will be affected by environment variables that filter or select which devices are exposed through this API."
163
+
- "A reference is taken for each returned device and must be released with a subsequent call to $xDeviceRelease."
164
+
- "The application may call this function from simultaneous threads, the implementation must be thread-safe."
165
+
params:
166
+
- type: $x_platform_handle_t
167
+
name: hPlatform
168
+
desc: "[in] handle of the platform instance"
169
+
- type: "$x_device_type_t"
170
+
name: DeviceType
171
+
desc: |
172
+
[in] the type of the devices.
173
+
- type: "uint32_t"
174
+
name: NumEntries
175
+
desc: |
176
+
[in] the number of devices to be added to phDevices.
177
+
If phDevices in not NULL then NumEntries should be greater than zero, otherwise $X_RESULT_ERROR_INVALID_VALUE,
178
+
will be returned.
179
+
- type: "$x_device_handle_t*"
180
+
name: phDevices
181
+
desc: |
182
+
[out][optional][range(0, NumEntries)] array of handle of devices.
183
+
If NumEntries is less than the number of devices available, then only that number of devices will be retrieved.
184
+
- type: "uint32_t*"
185
+
name: pNumDevices
186
+
desc: |
187
+
[out][optional] pointer to the number of devices.
188
+
pNumDevices will be updated with the total number of selected devices available for the given platform.
0 commit comments