mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
feat: show error when NVML is not loaded while the nvidia driver is present
This commit is contained in:
@@ -391,6 +391,11 @@ impl AppModel {
|
||||
.context("Could not fetch info")?;
|
||||
let info = Rc::new(info_buf.inner()?);
|
||||
|
||||
// Plain `nvidia` means that the nvidia driver is loaded, but it does not contain a version fetched from NVML
|
||||
if info.driver == "nvidia" {
|
||||
sender.input(AppMsg::Error(Rc::new(anyhow!("Nvidia driver detected, but the management library could not be loaded. Check lact service status for more information."))));
|
||||
}
|
||||
|
||||
self.info_page.emit(PageUpdate::Info(info.clone()));
|
||||
|
||||
self.oc_page.set_info(&info);
|
||||
|
||||
Reference in New Issue
Block a user