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/
--- 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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to