1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Allow CPU mining explicitly enable only if other mining support is built in.

This commit is contained in:
Con Kolivas 2012-01-20 09:12:49 +11:00
parent 67376ca0e1
commit c487383cf4
2 changed files with 3 additions and 3 deletions

2
README
View File

@ -203,7 +203,7 @@ CPU only options:
sse2_64 SSE2 64 bit implementation for x86_64 machines
sse4_64 SSE4.1 64 bit implementation for x86_64 machines (default: sse2_64)
--cpu-threads|-t <arg> Number of miner CPU threads (default: 4)
--enable-cpu|-C Enable CPU mining with other mining (default: no CPU mining if suitable devices exist)
--enable-cpu|-C Enable CPU mining with other mining (default: no CPU mining if other devices exist)

4
main.c
View File

@ -1574,10 +1574,10 @@ static struct opt_table opt_config_table[] = {
set_float_0_to_99, &opt_show_floatval, &opt_donation,
"Set donation percentage to cgminer author (0.0 - 99.9)"),
#ifdef HAVE_OPENCL
#ifdef WANT_CPUMINE
#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE))
OPT_WITHOUT_ARG("--enable-cpu|-C",
opt_set_bool, &opt_usecpu,
"Enable CPU mining with GPU mining (default: no CPU mining if suitable GPUs exist)"),
"Enable CPU mining with other mining (default: no CPU mining if other devices exist)"),
#endif
#endif
OPT_WITH_ARG("--expiry|-E",