Could someone plz tell me what - C does... I looked in the readme file and its not there. Thx.
CPU MINING--
The "-C" command line flag enables the "CPU Mining" boost in sp_ 's branch of ccminer. It makes a big difference in hash rate for some algos, as the cpu is assisting the gpu in processing the data. I remember chatting at you about it before. As far as I know, sp_ 's branch is the only one that uses this fllag.
It increased my Quark hash rate about 500kh/s to 11.5MH/s with my GTX 960. --scryptr
That's with an unoptimized CPU miner. If you want to co-mine with the CPU you could try cpuminer-opt.
It does quark at 1.2 MH/s on a i7-6700K. But I prefer to mine more CPU friendly algos.
I CO-MINE WITH CPUMINER-OPT--
I run 6 threads. BUT, the "-C" flag allows the cpu to assuust/boost the performance of the gpu hash rate. If you want a better explanation, you will have to ask sp_ . In simple English, ccminer gets a better hash rate with the "-C" flag set at launch. Results depend on the algo and hardware. I use the flag in all of my launch lines. And, I am usually runnning CPUminer-Opt at the same time, with only a small reduction in hash rate for both miners. --scryptr
We were both wrong, I looked at the code.
-C actually has nothing to do with CPU mining, it only changes how the CPU and GPU are synchronized.
It is not implemented in other forks as it is selected automatically when appropriate.
JSON LAUNCH.CONF FILE--
The "-C" flag stands for the long form "cpu-mining" command that would be in a JSON format configuration file. An example for ZPOOL follows:
{
"url" : "stratum+tcp://mine.zpool.ca:4533",
"user" : "COIN ADDRESS",
"pass" : "rig1,c=COIN",
"algo" : "lyra2v2",
"intensity" : "21.3",
"cpu-priority" : "5",
"cpu-mining" : "true"
}
This is called by a launch line like "ccminer.exe -c zpool.conf". I was unclear as to what I meant by "cpu-mining", and with your focus on coding CPUminer-OPT, you possibly misunderstood.
The only fork of ccminer with this switch is sp_ 's, and it works. It forces co-operation between the cpu and gpu that yields better hash rates. Your code inspection is informative. Apparently, auto-selection is not always working to yeild the best results. --scryptr