diff --git a/cgminer.c b/cgminer.c index 095f5819..a92ab4a6 100644 --- a/cgminer.c +++ b/cgminer.c @@ -95,7 +95,6 @@ int opt_dynamic_interval = 7; int opt_g_threads = -1; int gpu_threads; bool opt_restart = true; -bool opt_nogpu; struct list_head scan_devices; static bool devices_enabled[MAX_DEVICES]; diff --git a/driver-opencl.c b/driver-opencl.c index 1854d110..cb856c63 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -1012,8 +1012,6 @@ static void opencl_detect(bool hotplug) { int i; - if (opt_nogpu) - return; nDevs = clDevicesNum(); if (nDevs < 0) { applog(LOG_ERR, "clDevicesNum returned error, no GPUs usable"); diff --git a/miner.h b/miner.h index 330cc20e..45837188 100644 --- a/miner.h +++ b/miner.h @@ -969,7 +969,6 @@ extern bool opt_api_listen; extern bool opt_api_network; extern bool opt_delaynet; extern bool opt_restart; -extern bool opt_nogpu; extern bool opt_worktime; extern int swork_id;