@@ -6,8 +6,8 @@ use cust::prelude::*;
6
6
use kaspa_miner:: { Plugin , Worker , WorkerSpec } ;
7
7
use log:: LevelFilter ;
8
8
use log:: { error, info} ;
9
- use nvml_wrapper:: Device as NvmlDevice ;
10
- use nvml_wrapper:: Nvml ;
9
+ // use nvml_wrapper::Device as NvmlDevice;
10
+ // use nvml_wrapper::Nvml;
11
11
use std:: error:: Error as StdError ;
12
12
13
13
pub type Error = Box < dyn StdError + Send + Sync + ' static > ;
@@ -22,16 +22,16 @@ const DEFAULT_WORKLOAD_SCALE: f32 = 256.;
22
22
23
23
pub struct CudaPlugin {
24
24
specs : Vec < CudaWorkerSpec > ,
25
- nvml_instance : Nvml ,
25
+ // nvml_instance: Nvml,
26
26
_enabled : bool ,
27
27
}
28
28
29
29
impl CudaPlugin {
30
30
fn new ( ) -> Result < Self , Error > {
31
31
cust:: init ( CudaFlags :: empty ( ) ) ?;
32
32
env_logger:: builder ( ) . filter_level ( LevelFilter :: Info ) . parse_default_env ( ) . init ( ) ;
33
- let nvml_instance = Nvml :: init ( ) ?;
34
- Ok ( Self { specs : Vec :: new ( ) , _enabled : false , nvml_instance } )
33
+ // let nvml_instance = Nvml::init()?;
34
+ Ok ( Self { specs : Vec :: new ( ) , _enabled : false /* , nvml_instance*/ } )
35
35
}
36
36
}
37
37
@@ -62,6 +62,7 @@ impl Plugin for CudaPlugin {
62
62
}
63
63
} ;
64
64
65
+ /*
65
66
// if any of cuda_lock_core_clocks / cuda_lock_mem_clocks / cuda_power_limit is valid, init nvml and try to apply
66
67
if opts.cuda_lock_core_clocks.is_some()
67
68
|| opts.cuda_lock_mem_clocks.is_some()
@@ -109,7 +110,7 @@ impl Plugin for CudaPlugin {
109
110
};
110
111
};
111
112
}
112
- }
113
+ }*/
113
114
114
115
self . specs = ( 0 ..gpus. len ( ) )
115
116
. map ( |i| CudaWorkerSpec {
0 commit comments