cpuminer mines only on one core regardless of "--threads" option
Andrey Chernov
ache at freebsd.org
Tue Feb 18 14:24:56 UTC 2014
On 14.01.2014 17:55, Volodymyr Kostyrko wrote:
> 14.01.2014 15:01, Alexander:
>> on Freebsd 9.2 x64 on 5 different PCs I installed net-p2p/cpuminer
>> from ports and by "pkg install" - result is the same - minerd mines
>> only on one core regardless of "--threads" option.
The patch to solve this problem attached.
--
http://ache.vniz.net/
-------------- next part --------------
--- cpu-miner.c.bak 2013-07-10 16:00:51.000000000 +0400
+++ cpu-miner.c 2014-02-15 04:40:56.000000000 +0400
@@ -75,7 +75,7 @@
cpuset_t set;
CPU_ZERO(&set);
CPU_SET(cpu, &set);
- cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_CPUSET, -1, sizeof(cpuset_t), &set);
+ cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof(cpuset_t), &set);
}
#else
static inline void drop_policy(void)
More information about the freebsd-ports
mailing list