Commit 79dd8f8
authored
[UR][L0] Fix
Some devices don't provide access to power information, which was
incorrectly handled. This makes the following changes:
* When the output pointer is nullptr, `UNSUPPORTED_ENUM` is still
returned.
* Return `UNSUPPORTED_ENUM` rather than `UNSUPPORTED_FEATURE`.
* In the conformance test, use the proper property name when checking if
it is optional (this is technically a NFC, since the one incorrectly
used is optional anyway).POWER_LIMIT device info where it is not supported (intel#18536)1 parent 6ddd385 commit 79dd8f8
File tree
2 files changed
+18
-10
lines changed- unified-runtime
- source/adapters/level_zero
- test/conformance/device
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | 1318 | | |
1325 | 1319 | | |
1326 | 1320 | | |
1327 | 1321 | | |
1328 | 1322 | | |
1329 | 1323 | | |
1330 | | - | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1331 | 1339 | | |
1332 | 1340 | | |
1333 | 1341 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2608 | 2608 | | |
2609 | 2609 | | |
2610 | 2610 | | |
2611 | | - | |
| 2611 | + | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
| |||
2629 | 2629 | | |
2630 | 2630 | | |
2631 | 2631 | | |
2632 | | - | |
| 2632 | + | |
2633 | 2633 | | |
2634 | 2634 | | |
2635 | 2635 | | |
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | | - | |
| 2653 | + | |
2654 | 2654 | | |
2655 | 2655 | | |
2656 | 2656 | | |
| |||
0 commit comments