Browse Source

ccminer: link --max-log-rate to the command line

master
Tanguy Pruvot 8 years ago
parent
commit
ef44e88ef9
  1. 3
      README.txt
  2. 7
      ccminer.cpp

3
README.txt

@ -163,6 +163,7 @@ its command line interface and options.
--max-temp=N Only mine if gpu temp is less than specified value --max-temp=N Only mine if gpu temp is less than specified value
--max-rate=N[KMG] Only mine if net hashrate is less than specified value --max-rate=N[KMG] Only mine if net hashrate is less than specified value
--max-diff=N Only mine if net difficulty is less than specified value --max-diff=N Only mine if net difficulty is less than specified value
--max-log-rate Interval to reduce per gpu hashrate logs (default: 3)
--pstate=0 will force the Geforce 9xx to run in P0 P-State --pstate=0 will force the Geforce 9xx to run in P0 P-State
--plimit=150W set the gpu power limit, allow multiple values for N cards --plimit=150W set the gpu power limit, allow multiple values for N cards
--tlimit=85 Set the gpu thermal limit (windows only) --tlimit=85 Set the gpu thermal limit (windows only)
@ -274,7 +275,7 @@ features.
Rework the common skein512 (used in most algos except skein ;) Rework the common skein512 (used in most algos except skein ;)
Store the share diff of second nonce(s) in most algos Store the share diff of second nonce(s) in most algos
Hardware monitoring thread to get more accurate power readings Hardware monitoring thread to get more accurate power readings
Small changes for the quiet mode Small changes for the quiet mode & max-log-rate to reduce logs
Dec. 21th 2016 v1.8.4 Dec. 21th 2016 v1.8.4
Improve streebog based algos, veltor and sib (from alexis work) Improve streebog based algos, veltor and sib (from alexis work)

7
ccminer.cpp

@ -312,7 +312,8 @@ Options:\n\
--max-temp=N Only mine if gpu temp is less than specified value\n\ --max-temp=N Only mine if gpu temp is less than specified value\n\
--max-rate=N[KMG] Only mine if net hashrate is less than specified value\n\ --max-rate=N[KMG] Only mine if net hashrate is less than specified value\n\
--max-diff=N Only mine if net difficulty is less than specified value\n\ --max-diff=N Only mine if net difficulty is less than specified value\n\
Can be tuned with --resume-diff=N to set a resume value\n" Can be tuned with --resume-diff=N to set a resume value\n\
--max-log-rate Interval to reduce per gpu hashrate logs (default: 3)\n"
#if defined(__linux) || defined(_WIN64) /* via nvml */ #if defined(__linux) || defined(_WIN64) /* via nvml */
"\ "\
--mem-clock=3505 Set the gpu memory max clock (346.72+ driver)\n\ --mem-clock=3505 Set the gpu memory max clock (346.72+ driver)\n\
@ -407,6 +408,7 @@ struct option options[] = {
{ "keep-clocks", 0, NULL, 1074 }, { "keep-clocks", 0, NULL, 1074 },
{ "tlimit", 1, NULL, 1075 }, { "tlimit", 1, NULL, 1075 },
{ "led", 1, NULL, 1080 }, { "led", 1, NULL, 1080 },
{ "max-log-rate", 1, NULL, 1019 },
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H
{ "syslog", 0, NULL, 'S' }, { "syslog", 0, NULL, 'S' },
{ "syslog-prefix", 1, NULL, 1018 }, { "syslog-prefix", 1, NULL, 1018 },
@ -3338,6 +3340,9 @@ void parse_arg(int key, char *arg)
opt_syslog_pfx = strdup(arg); opt_syslog_pfx = strdup(arg);
} }
break; break;
case 1019: // max-log-rate
opt_maxlograte = atoi(arg);
break;
case 1020: case 1020:
p = strstr(arg, "0x"); p = strstr(arg, "0x");
ul = p ? strtoul(p, NULL, 16) : atol(arg); ul = p ? strtoul(p, NULL, 16) : atol(arg);

Loading…
Cancel
Save