mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Allow CPU mining explicitly enable only if other mining support is built in.
This commit is contained in:
parent
67376ca0e1
commit
c487383cf4
2
README
2
README
@ -203,7 +203,7 @@ CPU only options:
|
|||||||
sse2_64 SSE2 64 bit implementation for x86_64 machines
|
sse2_64 SSE2 64 bit implementation for x86_64 machines
|
||||||
sse4_64 SSE4.1 64 bit implementation for x86_64 machines (default: sse2_64)
|
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)
|
--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
4
main.c
@ -1574,10 +1574,10 @@ static struct opt_table opt_config_table[] = {
|
|||||||
set_float_0_to_99, &opt_show_floatval, &opt_donation,
|
set_float_0_to_99, &opt_show_floatval, &opt_donation,
|
||||||
"Set donation percentage to cgminer author (0.0 - 99.9)"),
|
"Set donation percentage to cgminer author (0.0 - 99.9)"),
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
#ifdef WANT_CPUMINE
|
#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE))
|
||||||
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 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
|
||||||
#endif
|
#endif
|
||||||
OPT_WITH_ARG("--expiry|-E",
|
OPT_WITH_ARG("--expiry|-E",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user