Skip to content

Commit

Permalink
feat: show error when NVML is not loaded while the nvidia driver is p…
Browse files Browse the repository at this point in the history
…resent
  • Loading branch information
ilya-zlobintsev committed Nov 16, 2024
1 parent 885e32d commit a26bcec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lact-gui/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a26bcec

Please sign in to comment.