Commit da06ace
CP-20679: cope when pgpu metadata is unobtainable
The code that fetched the pgpu metadata from the Nvidia driver was
assuming that this would always work for every GPU made by Nvidia.
In fact only some Nvidia GPUs support the feature, and even where
the feature is available, and the Nvidia driver has been installed
on the host, that Nvidia driver has not yet been loaded when xapi
starts on host boot.
Therefore this commit catches the exception
Gpumon_interface.NvmlInterfaceNotAvailable
and the exception handler returns and empty list for the metadata.
Signed-off-by: Thomas Sanders <[email protected]>1 parent 709fc49 commit da06ace
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
0 commit comments