Skip to content

Commit

Permalink
Fix final build errors and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelPeeters committed Jan 26, 2024
1 parent f8df592 commit 7934ec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kn-cuda-eval/src/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ impl<T> Operand<T> {
}
}

#[allow(dead_code)]
pub fn map_value<K>(self, mut f: impl FnMut(T) -> K) -> Operand<K> {
Operand {
kind: self.kind,
Expand Down
2 changes: 1 addition & 1 deletion kn-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Device {
/// Returns the first available cuda device if any.
pub fn first_cuda() -> Option<Device> {
#[cfg(feature = "cuda")]
if let Some(device) = CudaDevice::all().next()? {
if let Some(device) = CudaDevice::all().next() {
return Some(Device::Cuda(device));
}

Expand Down

0 comments on commit 7934ec7

Please sign in to comment.