joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 03:56:58 PM |
|
im sorry if i did not fully understand everything, im not familiar with such low level code  avx is as fast as the scalar code and sometimes also requires the same amount of instructions, avx2 however is always faster the cpus only have avx afaik i took a look at the diff but im a bit lost there whats the best thing to do in my case? if the "old" code that was faster on amd but slower on intel can not be integrated into the miner i will have to identify the slower algos and use the old version for these and newer versions for the other algos i suppose? cheers Sorry for the overtechnical explanation. One of the big challenges is to write the best code for every CPU. That's not possible so different versions of the same functions can be written and logic introduced to select the best one for a given CPU architecture. This logic can get quite complex. With just Intel it's a linear problem. Only the top feature has to be identified, it can then be asumed that all lesser features are included. When you add AMD to the equation that assumption no nonger applies. I am still coming to grips with some of the pecularities of some early Intel AES CPUs. I'm hoping I can solve that one. AMD is going to be more challenging, if not impossible, if similarly featured AMD CPUs perform diffferently than their Intel peers. Lyra2 seems to be an extreme case because in some places the AVX code was only marginally better on Intel CPUs. A less efficient AVX implementation on AMD CPUs could actually make it slower. My priorities are obviously going to be for the newest and most popular CPUs. It's also difficult to code for a CPU I can't test on. If I ever get to trying to solve this issue, and that is unlikely, I would need a partner with the necessary CPU and the technical skills to do the testing and report results. It may be inconvenient for you but I suggest you choose whichever miner works best for each CPU. But you seem to have already figured that out.
|
|
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
felixbrucker
|
 |
August 27, 2016, 04:06:40 PM |
|
ok thanks  if you ever need direct access (ssh) to an amd system (the two cpus listed) to test code or something just pm me unfortunately i dont think i have the skills needed to test this stuff myself so long, great work cheers
|
|
|
|
citronick
Legendary
Offline
Activity: 1834
Merit: 1080
---- winter*juvia -----
|
 |
August 27, 2016, 05:31:54 PM |
|
Hi All - can anyone post a sample batch file for using this miner for mining at Nicehash? Many thanks
|
If I provided you good and useful info or just a smile to your day, consider sending me merit points to further validate this Bitcointalk account ~ useful for future account recovery...
|
|
|
felixbrucker
|
 |
August 27, 2016, 06:25:55 PM |
|
hi joblo, another problem: the compile with build.sh on linux on a system without aes (i3-3120M) fails with algo/hodl/cpuminer-hodl-gate.o: In function `hodl_scanhash': hodl-gate.c:(.text+0x34f): undefined reference to `GenRandomGarbage' hodl-gate.c:(.text+0x373): undefined reference to `scanhash_hodl_wolf' collect2: error: ld returned 1 exit status
it seems this is since 3.4.4 cheers
|
|
|
|
Q_R_V
Sr. Member
  
Offline
Activity: 428
Merit: 250
Inactivity: 8963
|
 |
August 27, 2016, 06:48:19 PM |
|
Hi All - can anyone post a sample batch file for using this miner for mining at Nicehash? Many thanks
I gues it will be something like: start /low cpuminer-core2 -a lyra2re -o stratum+tcp://lyra2re.eu.nicehash.com:3342 -u btc_address -p x -t 2
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 07:00:04 PM |
|
hi joblo, another problem: the compile with build.sh on linux on a system without aes (i3-3120M) fails with algo/hodl/cpuminer-hodl-gate.o: In function `hodl_scanhash': hodl-gate.c:(.text+0x34f): undefined reference to `GenRandomGarbage' hodl-gate.c:(.text+0x373): undefined reference to `scanhash_hodl_wolf' collect2: error: ld returned 1 exit status
it seems this is since 3.4.4 cheers That's one of those CPUs from the early days of AES, this one doesn't have it. I presume you used -march=native, that's the default in build.sh. Try -march=core2, that should work. Oddly every arch compiled for me but it was on haswell HW. Could you execute the following and tell me what it returns? gcc -Q -march=native --help=target | grep march
|
|
|
|
felixbrucker
|
 |
August 27, 2016, 07:37:02 PM |
|
sure thing, output is: -march= ivybridge
miner compiled with march=core2, hashrate is a bit lower compared to 3.4.3 native compile
cheers
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 08:02:50 PM |
|
sure thing, output is: -march= ivybridge
miner compiled with march=core2, hashrate is a bit lower compared to 3.4.3 native compile
cheers
Thanks, you also answered the question I forgot to ask, the performance was lower as I suspected. I going to shortly release a patched version thet reverts the changes I made to hodl. It was done with incomplete information and appears to have destabilized things. Oddly my compiler doesn't accept brand names, only corei7-avx etc. I suscessfully compiled all targets except amdfam10.
|
|
|
|
|
felixbrucker
|
 |
August 27, 2016, 08:13:31 PM |
|
do you have by any chance a how to guide to setup the build environment on windows with mingw? i own amdfam10 and bdver1 hardware and can compile these targets (if the environment is setup it should be as easy as running winbuild.sh in msys shell i suppose)
i got to the point where i installed mingw32 (only "official" thing i found, mingw64 is hosted somewhere else and does not share the same installer and such) and the msys basics, but all READMEs mention one should install curl/ssl stuff in windows, have not found a good tutorial on this sadly
cheers
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 08:27:36 PM |
|
do you have by any chance a how to guide to setup the build environment on windows with mingw? i own amdfam10 and bdver1 hardware and can compile these targets (if the environment is setup it should be as easy as running winbuild.sh in msys shell i suppose)
i got to the point where i installed mingw32 (only "official" thing i found, mingw64 is hosted somewhere else and does not share the same installer and such) and the msys basics, but all READMEs mention one should install curl/ssl stuff in windows, have not found a good tutorial on this sadly
cheers
Did you look at README.md. If you get stuck let me know where. winbuild.sh will build for the native architecture "-march=native". My Windows bins were all compiled on haswell specifying "-march=core-avx2" etc.
|
|
|
|
citronick
Legendary
Offline
Activity: 1834
Merit: 1080
---- winter*juvia -----
|
 |
August 27, 2016, 08:38:31 PM |
|
Hi All - can anyone post a sample batch file for using this miner for mining at Nicehash? Many thanks
I gues it will be something like: start /low cpuminer-core2 -a lyra2re -o stratum+tcp://lyra2re.eu.nicehash.com:3342 -u btc_address -p x -t 2 thanks QRV - I got my old i5s to work on cryptonight on nicehash it only took 2 cores however how do I get it to use all 4 cores? start /high ?
|
If I provided you good and useful info or just a smile to your day, consider sending me merit points to further validate this Bitcointalk account ~ useful for future account recovery...
|
|
|
felixbrucker
|
 |
August 27, 2016, 08:48:37 PM |
|
-t 4, or leave it to use all available cores @joblo: i have found this detailed guide: http://pastebin.com/p2cRgHxddownload packages are a bit old, should i use newer ones? all sf repos did not have newer ones cheers
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 08:50:05 PM |
|
Hi All - can anyone post a sample batch file for using this miner for mining at Nicehash? Many thanks
I gues it will be something like: start /low cpuminer-core2 -a lyra2re -o stratum+tcp://lyra2re.eu.nicehash.com:3342 -u btc_address -p x -t 2 thanks QRV - I got my old i5s to work on cryptonight on nicehash it only took 2 cores however how do I get it to use all 4 cores? start /high ? Take out "-t 2" and it will default to the number of cores in your CPU. Your i5s might work with a better build than core2, give corei7 and corei7-avx a try. I'm still tweaking the builds for older core-i CPUs, as you may have noticed by recent posts in this thread, so YMMV.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 08:53:24 PM |
|
i have found this detailed guide: http://pastebin.com/p2cRgHxddownload packages are a bit old, should i use newer ones? all sf repos did not have newer ones cheers I wouldn't use old direct links, I'd use the front page and download the current versions.
|
|
|
|
felixbrucker
|
 |
August 27, 2016, 09:04:49 PM |
|
ok, now im stuck with openssl, cpuminer compile wants openssl/aes.h, what do i need to install/download?
cheers
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 09:15:24 PM |
|
ok, now im stuck with openssl, cpuminer compile wants openssl/aes.h, what do i need to install/download?
cheers
If you got that far then it looks like your compile environment is setup correctly. There are many different publishers but I installed from here: https://slproweb.com/products/Win32OpenSSL.htmlDownload the 64 bit developper version.
|
|
|
|
felixbrucker
|
 |
August 27, 2016, 09:51:18 PM Last edit: August 27, 2016, 10:04:26 PM by felixbrucker |
|
that seemed to have worked, now it complains about missing gmp.h however edit: added gmp.h from here http://cs.nyu.edu/~exact/core/gmp/index.html, now compile fails but im unsure why, windows building is pita  wonderful garbled text from msys i guess i have done something wrong, might need a guide for dummies, will wait for someone else to build bins cheers
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 27, 2016, 10:07:24 PM Last edit: August 27, 2016, 10:34:56 PM by joblo |
|
that seemed to have worked, now it complains about missing gmp.h however edit: added gmp.h from here http://cs.nyu.edu/~exact/core/gmp/index.html, now compile fails but im unsure why, windows building is pita  wonderful garbled text from msys i guess i have done something wrong, might need a guide for dummies, will wait for someone else to build bins cheers What CPU? Did you compile native or specify -march=? This error is in AES code, which suggests your CPU doesn't have it but the compiler thought it did. Edit: In case it isn't obvious this is significant progress in helping me. If the compiler can't figure out the correct architecture it can be specified manually.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
 |
August 28, 2016, 01:45:03 AM |
|
Proposal for change in output for share submissions.
old format:
[2016-08-27 21:09:13] accepted: 1791/1791 (100%), 11.93 MH, 461.52 kH/s yes! [2016-08-27 21:09:13] accepted: 1791/1792 (99.9%), 11.93 MH, 461.52 kH/s nooooo
proposed new format:
[2016-08-27 21:09:13] Accepted: 11.93 MH, 461.52 kH/s, 1791/1791 (100%) [2016-08-27 21:09:13] Rejected: 11.93 MH, 461.52 kH/s, 1791/1792 (99.9%)
Reason for change:
- shorter - removes ambiguous "accepted" for both accepted and rejected shares - eliminates unnecessary words "yes!" and "nooooo".
Comments?
|
|
|
|
|