Browse Source

Hide cpu binding log messages

master
Tanguy Pruvot 10 years ago
parent
commit
e3fc059bd7
  1. 10
      ccminer.cpp
  2. 2
      configure.ac
  3. 6
      cpuminer-config.h

10
ccminer.cpp

@ -1121,8 +1121,9 @@ static void *miner_thread(void *userdata)
case 5: case 5:
prio = -15; prio = -15;
} }
applog(LOG_DEBUG, "Thread %d priority %d (set to %d)", thr_id, if (opt_debug)
opt_priority, prio); applog(LOG_DEBUG, "Thread %d priority %d (nice %d)",
thr_id, opt_priority, prio);
#endif #endif
int ret = setpriority(PRIO_PROCESS, 0, prio); int ret = setpriority(PRIO_PROCESS, 0, prio);
if (opt_priority == 0) { if (opt_priority == 0) {
@ -1133,12 +1134,12 @@ static void *miner_thread(void *userdata)
/* Cpu thread affinity */ /* Cpu thread affinity */
if (num_cpus > 1) { if (num_cpus > 1) {
if (opt_affinity == -1 && opt_n_threads > 1) { if (opt_affinity == -1 && opt_n_threads > 1) {
if (!opt_quiet) if (opt_debug)
applog(LOG_DEBUG, "Binding thread %d to cpu %d (mask %x)", thr_id, applog(LOG_DEBUG, "Binding thread %d to cpu %d (mask %x)", thr_id,
thr_id % num_cpus, (1 << (thr_id % num_cpus))); thr_id % num_cpus, (1 << (thr_id % num_cpus)));
affine_to_cpu_mask(thr_id, 1 << (thr_id % num_cpus)); affine_to_cpu_mask(thr_id, 1 << (thr_id % num_cpus));
} else if (opt_affinity != -1) { } else if (opt_affinity != -1) {
if (!opt_quiet) if (opt_debug)
applog(LOG_DEBUG, "Binding thread %d to cpu mask %x", thr_id, applog(LOG_DEBUG, "Binding thread %d to cpu mask %x", thr_id,
opt_affinity); opt_affinity);
affine_to_cpu_mask(thr_id, opt_affinity); affine_to_cpu_mask(thr_id, opt_affinity);
@ -2299,7 +2300,6 @@ int main(int argc, char *argv[])
SetConsoleCtrlHandler((PHANDLER_ROUTINE)ConsoleHandler, TRUE); SetConsoleCtrlHandler((PHANDLER_ROUTINE)ConsoleHandler, TRUE);
if (opt_priority > 0) { if (opt_priority > 0) {
DWORD prio = NORMAL_PRIORITY_CLASS; DWORD prio = NORMAL_PRIORITY_CLASS;
SetPriorityClass(NULL, prio);
switch (opt_priority) { switch (opt_priority) {
case 1: case 1:
prio = BELOW_NORMAL_PRIORITY_CLASS; prio = BELOW_NORMAL_PRIORITY_CLASS;

2
configure.ac

@ -1,4 +1,4 @@
AC_INIT([ccminer], [1.5.2]) AC_INIT([ccminer], [1.5-git])
AC_PREREQ([2.59c]) AC_PREREQ([2.59c])
AC_CANONICAL_SYSTEM AC_CANONICAL_SYSTEM

6
cpuminer-config.h

@ -156,7 +156,7 @@
#define PACKAGE_NAME "ccminer" #define PACKAGE_NAME "ccminer"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "ccminer 1.5.2" #define PACKAGE_STRING "ccminer 1.5-git"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "ccminer" #define PACKAGE_TARNAME "ccminer"
@ -165,7 +165,7 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.5.2" #define PACKAGE_VERSION "1.5-git"
/* If using the C implementation of alloca, define if you know the /* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be direction of stack growth for your system; otherwise it will be
@ -188,7 +188,7 @@
#define USE_XOP 1 #define USE_XOP 1
/* Version number of package */ /* Version number of package */
#define VERSION "1.5.2" #define VERSION "1.5-git"
/* Define curl_free() as free() if our version of curl lacks curl_free. */ /* Define curl_free() as free() if our version of curl lacks curl_free. */
/* #undef curl_free */ /* #undef curl_free */

Loading…
Cancel
Save