Commit 8acff55
committed
Map unknown exit codes to PlatformStatus.PlatformNotAvailable
For example, if the system does not have libdrm.so.2 installed, then
rocmIsEnabled exits with code 127 because of "error while loading
shared libraries: libdrm.so.2: cannot open shared object file: No
such file or directory" which leads to a Python error "ValueError:
127 is not a valid PlatformStatus"1 parent 54a31a8 commit 8acff55
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments