Commit 0e1a699
authored
Fix bug caused by disabled gpu (#69)
Many AMD iGPUs are paired with a dGPU, and the BIOS has the option to
disable the iGPU. Doing so can fix a variety of software problems
related to multi-GPU-incompatible software. When this happens, rocm-smi
prints an error message to stderr since the amdgpu driver is not
initalized, but returns 0. Checking that there was actually data
returned fixes the crash (since amd-smi correctly returns 255) for those
with this hardware configuration.
Signed-off-by: Owen Hilyard <hilyard.owen@gmail.com>1 parent a6252c8 commit 0e1a699
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments