forked from KL0nLutiy/sgminer-kl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
adl.h
25 lines (18 loc) · 561 Bytes
/
adl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ADL_H
#define ADL_H
extern bool adl_active;
extern bool opt_reorder;
extern int opt_hysteresis;
extern int opt_targettemp;
extern int opt_overheattemp;
#ifdef HAVE_ADL
void init_adl(int nDevs);
void change_gpusettings(int gpu);
void clear_adl(int nDevs);
#else /* HAVE_ADL */
#define adl_active (0)
static inline void init_adl(__maybe_unused int nDevs) {}
static inline void change_gpusettings(__maybe_unused int gpu) { }
static inline void clear_adl(__maybe_unused int nDevs) {}
#endif /* HAVE_ADL */
#endif /* ADL_H */