File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -277,12 +277,13 @@ std::vector<int> platform_impl::filterDeviceFilter(
277
277
continue ;
278
278
info::device_type FilterDevType =
279
279
Filter.DeviceType .value_or (info::device_type::all);
280
+
281
+ // match the device_num entry
282
+ if (Filter.DeviceNum && DeviceNum != Filter.DeviceNum .value ())
283
+ continue ;
284
+
280
285
// Next, match the device_type entry
281
286
if (FilterDevType == info::device_type::all) {
282
- // Last, match the device_num entry
283
- if (Filter.DeviceNum && DeviceNum != Filter.DeviceNum .value ())
284
- continue ;
285
-
286
287
if constexpr (is_ods_target) { // dealing with ODS filters
287
288
if (!Blacklist[DeviceNum]) { // ensure it is not blacklisted
288
289
if (!Filter.IsNegativeTarget ) { // is filter positive?
@@ -301,9 +302,6 @@ std::vector<int> platform_impl::filterDeviceFilter(
301
302
break ;
302
303
}
303
304
if (FilterDevType == DeviceType) {
304
- if (Filter.DeviceNum && DeviceNum != Filter.DeviceNum .value ())
305
- continue ;
306
-
307
305
if constexpr (is_ods_target) {
308
306
if (!Blacklist[DeviceNum]) {
309
307
if (!Filter.IsNegativeTarget ) {
You can’t perform that action at this time.
0 commit comments