Skip to content

Commit 02037dd

Browse files
fix: tolerate unsuccessful clock offset reset (#918)
1 parent e2d9f3b commit 02037dd

File tree

1 file changed

+3
-5
lines changed
  • lact-daemon/src/server/gpu_controller

1 file changed

+3
-5
lines changed

lact-daemon/src/server/gpu_controller/nvidia.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,9 @@ impl GpuController for NvidiaGpuController {
921921
.is_some_and(|offset| *offset != 0))
922922
{
923923
debug!("resetting clock offset for {clock_type:?} pstate {pstate:?}");
924-
device
925-
.set_clock_offset(clock_type, pstate, 0)
926-
.with_context(|| {
927-
format!("Could not reset {clock_type:?} pstate {pstate:?}")
928-
})?;
924+
if let Err(err) = device.set_clock_offset(clock_type, pstate, 0) {
925+
warn!("could not reset {clock_type:?} pstate {pstate:?}: {err:#}");
926+
}
929927
}
930928

931929
if let Some(applied_offsets) =

0 commit comments

Comments
 (0)