mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
Remove remaining references to have_opencl.
This commit is contained in:
parent
744e819117
commit
b11ca3650a
@ -105,7 +105,6 @@ int total_devices;
|
||||
int zombie_devs;
|
||||
static int most_devices;
|
||||
struct cgpu_info **devices;
|
||||
bool have_opencl;
|
||||
int mining_threads;
|
||||
int num_processors;
|
||||
#ifdef HAVE_CURSES
|
||||
@ -2036,8 +2035,7 @@ static void curses_print_status(void)
|
||||
prev_block, block_diff, blocktime, best_share);
|
||||
mvwhline(statuswin, 6, 0, '-', 80);
|
||||
mvwhline(statuswin, statusy - 1, 0, '-', 80);
|
||||
cg_mvwprintw(statuswin, devcursor - 1, 1, "[P]ool management %s[S]ettings [D]isplay options [Q]uit",
|
||||
have_opencl ? "[G]PU management " : "");
|
||||
cg_mvwprintw(statuswin, devcursor - 1, 1, "[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit");
|
||||
}
|
||||
|
||||
static void adj_width(int var, int *length)
|
||||
@ -4747,7 +4745,7 @@ static void *input_thread(void __maybe_unused *userdata)
|
||||
display_pools();
|
||||
else if (!strncasecmp(&input, "s", 1))
|
||||
set_options();
|
||||
else if (have_opencl && !strncasecmp(&input, "g", 1))
|
||||
else if (!strncasecmp(&input, "g", 1))
|
||||
manage_gpu();
|
||||
if (opt_realquiet) {
|
||||
disable_curses();
|
||||
|
@ -48,7 +48,6 @@ extern bool opt_loginput;
|
||||
extern char *opt_kernel_path;
|
||||
extern int gpur_thr_id;
|
||||
extern bool opt_noadl;
|
||||
extern bool have_opencl;
|
||||
|
||||
extern void *miner_thread(void *userdata);
|
||||
extern int dev_from_id(int thr_id);
|
||||
@ -1154,8 +1153,6 @@ static bool opencl_thread_prepare(struct thr_info *thr)
|
||||
cgtime(&now);
|
||||
get_datestamp(cgpu->init, sizeof(cgpu->init), &now);
|
||||
|
||||
have_opencl = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,6 @@ extern char *set_kernel(char *arg);
|
||||
void manage_gpu(void);
|
||||
extern void pause_dynamic_threads(int gpu);
|
||||
|
||||
extern bool have_opencl;
|
||||
extern int opt_platform_id;
|
||||
|
||||
extern struct device_drv opencl_drv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user