Browse Source

Merge pull request #142 from luke-jr/bugfix_enable_cpu

Bugfix: Allow enabling CPU even without OpenCL support
nfactor-troky
Con Kolivas 13 years ago
parent
commit
cc064bba6e
  1. 2
      cgminer.c

2
cgminer.c

@ -667,11 +667,11 @@ static struct opt_table opt_config_table[] = {
OPT_WITHOUT_ARG("--disable-gpu|-G", OPT_WITHOUT_ARG("--disable-gpu|-G",
opt_set_bool, &opt_nogpu, opt_set_bool, &opt_nogpu,
"Disable GPU mining even if suitable devices exist"), "Disable GPU mining even if suitable devices exist"),
#endif
#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE) || defined(USE_ICARUS)) #if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE) || defined(USE_ICARUS))
OPT_WITHOUT_ARG("--enable-cpu|-C", OPT_WITHOUT_ARG("--enable-cpu|-C",
opt_set_bool, &opt_usecpu, opt_set_bool, &opt_usecpu,
"Enable CPU mining with other mining (default: no CPU mining if other devices exist)"), "Enable CPU mining with other mining (default: no CPU mining if other devices exist)"),
#endif
#endif #endif
OPT_WITH_ARG("--expiry|-E", OPT_WITH_ARG("--expiry|-E",
set_int_0_to_9999, opt_show_intval, &opt_expiry, set_int_0_to_9999, opt_show_intval, &opt_expiry,

Loading…
Cancel
Save