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"
146
+
class: $xDevice
147
+
loader_only: True
148
+
name: GetSelected
149
+
decl: static
150
+
ordinal: "0"
151
+
details:
152
+
- "Multiple calls to this function will return identical device handles, in the same order."
153
+
- "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."
154
+
- "A reference is taken for each returned device and must be released with a subsequent call to $xDeviceRelease."
155
+
- "The application may call this function from simultaneous threads, the implementation must be thread-safe."
156
+
params:
157
+
- type: $x_platform_handle_t
158
+
name: hPlatform
159
+
desc: "[in] handle of the platform instance"
160
+
- type: "$x_device_type_t"
161
+
name: DeviceType
162
+
desc: |
163
+
[in] the type of the devices.
164
+
- type: "uint32_t"
165
+
name: NumEntries
166
+
desc: |
167
+
[in] the number of devices to be added to phDevices.
168
+
If phDevices in not NULL then NumEntries should be greater than zero, otherwise $X_RESULT_ERROR_INVALID_VALUE,
169
+
will be returned.
170
+
- type: "$x_device_handle_t*"
171
+
name: phDevices
172
+
desc: |
173
+
[out][optional][range(0, NumEntries)] array of handle of devices.
174
+
If NumEntries is less than the number of devices available, then only that number of devices will be retrieved.
175
+
- type: "uint32_t*"
176
+
name: pNumDevices
177
+
desc: |
178
+
[out][optional] pointer to the number of devices.
179
+
pNumDevices will be updated with the total number of selected devices available for the given platform.
0 commit comments