aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_ml/src
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-08-07 15:13:33 +0200
committerAndrzej Janik <[email protected]>2021-08-07 15:13:33 +0200
commit20c9aa4f02013bf12889c3e73f78682e44c6e5ef (patch)
tree3602186b50618bf30a73221a340d9380d1de75e1 /zluda_ml/src
parent8d79c5d0f803558a7589db563a4f8b3872dd9059 (diff)
downloadZLUDA-20c9aa4f02013bf12889c3e73f78682e44c6e5ef.tar.gz
ZLUDA-20c9aa4f02013bf12889c3e73f78682e44c6e5ef.zip
Fix warnings
Diffstat (limited to 'zluda_ml/src')
-rw-r--r--zluda_ml/src/impl.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/zluda_ml/src/impl.rs b/zluda_ml/src/impl.rs
index 4a05c50..584d4aa 100644
--- a/zluda_ml/src/impl.rs
+++ b/zluda_ml/src/impl.rs
@@ -5,8 +5,6 @@ use std::{
ptr,
};
-use ocl_core::ClVersions;
-
use crate::nvml::nvmlReturn_t;
macro_rules! stringify_nmvlreturn_t {
@@ -74,7 +72,7 @@ static mut DEVICE: Option<ocl_core::DeviceId> = None;
pub(crate) fn init_v2() -> Result<(), nvmlReturn_t> {
let platforms = ocl_core::get_platform_ids()?;
- let mut device = platforms.iter().find_map(|plat| {
+ let device = platforms.iter().find_map(|plat| {
let devices = ocl_core::get_device_ids(plat, Some(ocl_core::DeviceType::GPU), None).ok()?;
for dev in devices {
let vendor = ocl_core::get_device_info(dev, ocl_core::DeviceInfo::VendorId).ok()?;
@@ -103,7 +101,7 @@ pub(crate) fn init_with_flags() -> Result<(), nvmlReturn_t> {
}
impl From<ocl_core::Error> for nvmlReturn_t {
- fn from(err: ocl_core::Error) -> Self {
+ fn from(_: ocl_core::Error) -> Self {
nvmlReturn_t::NVML_ERROR_UNKNOWN
}
}