joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 16, 2017, 07:46:40 PM Last edit: April 16, 2017, 07:57:57 PM by joblo |
|
joblo, submitted a couple of pull requests to get it to compile on Ryzen. m7m is rejecting shares when built for Ryzen. cpuminer -a m7m -o stratum+tcp://xmg.suprnova.cc:7128 -u x -p x --cpu-priority 0 --api-bind 127.0.0.1:5500 --cpu-affinity 0x2 -D
********** cpuminer-opt 3.6.2 *********** A CPU miner with multi algo support and optimized for CPUs with AES_NI and AVX extensions. BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT Forked from TPruvot's cpuminer-multi with credits to Lucas Jones, elmad, palmd, djm34, pooler, ig0tik3d, Wolf0, Jeff Garzik and Optiminer.
CPU: AMD Ryzen 7 1800X Eight-Core Processor CPU features: SSE2 AES AVX AVX2 SHA SW built on Apr 16 2017 with GCC 6.3.0 SW features: SSE2 AES AVX AVX2 SHA Algo features: SSE2 AES AVX SHA Start mining with SSE2 AES AVX SHA
[2017-04-16 14:23:45] Binding process to cpu mask 2 [2017-04-16 14:23:45] 1 miner threads started, using 'm7m' algorithm. [2017-04-16 14:23:45] Starting Stratum on stratum+tcp://xmg.suprnova.cc:7128 [2017-04-16 14:23:45] Binding thread 0 to cpu mask 2 [2017-04-16 14:23:45] Stratum session id: deadbeefcafebabe6e55180000000000 [2017-04-16 14:23:45] Stratum difficulty set to 8 [2017-04-16 14:23:48] stratum extranonce subscribe timed out [2017-04-16 14:23:48] DEBUG: job_id='3fb1' extranonce2=00000000 ntime=aec4f358 [2017-04-16 14:23:48] m7m block 1283282, diff 4.488 [2017-04-16 14:23:55] CPU #0: 131.07 kH, 20.98 kH/s [2017-04-16 14:24:06] DEBUG: [0 thread] Found share! data 04000000ce6b8cd52940cbb5c79f0afe74ca0b2d4c5733152a0bdc87614fa230a43cbf7c6919c3c5e047a5ddfd618350d0cb63c87fec6e40538d324958ed2911645013d5aec4f358c709391c60670500 hash a246467dddbf887e5967eaada783eadbe98042a325e7fdba764274c74c050000 target 000000000000000000000000000000000000000000000000000000e0ff1f0000 [2017-04-16 14:24:06] CPU #0: 223.07 kH, 20.95 kH/s [2017-04-16 14:24:06] Rejected 1/1 (100.0%), 223.07 kH, 20.95 kH/s [2017-04-16 14:24:06] reject reason: low difficulty share of 0.000016677225528600396 [2017-04-16 14:24:06] factor reduced to : 0.67 It's hard to make sense of your pull request. This is the only error I found: - SHA256_CTX ctx_fsha256; + SHA256_CTX ctxf_sha256;
The non-SHA code works for me on 6700K, can you confirm it works on Ryzen? Edit: ok I found 2 more bugs, one a run time that would break the hash. 17c17 < #if defined __SHA__ --- > #if defined (SHA_NI) 188c188 < SHA256_CTX ctxf_sha256; --- > SHA256_CTX ctx_fsha256; 273c273 < SHA256_Update( &ctxf_sha256, bdata, bytes ); --- > SHA256_Update( &ctxf_sha256, bdata_p64, bytes );
Do you still get rejects with these fixed?
|
|
|
|
coinbutter
Newbie
Offline
Activity: 25
Merit: 0
|
|
April 16, 2017, 07:56:52 PM Last edit: April 16, 2017, 08:10:26 PM by coinbutter |
|
It's hard to make sense of your pull request. This is the only error I found: - SHA256_CTX ctx_fsha256; + SHA256_CTX ctxf_sha256;
The non-SHA code works for me on 6700K, can you confirm it works on Ryzen? Yes, all the others I've tried so far (except sha256t) work on Ryzen. The changes I made are here: https://github.com/JayDDee/cpuminer-opt/pull/8/filesEdit: I still get the rejects after those changes. I haven't really dug into it outside of getting it to compile but those changes should have gotten it to work.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 16, 2017, 08:20:31 PM |
|
I guess I wasn't reading it correctly. Anyways I found another algo I forgot about, skein. It also uses SHA but it doesn't work in 3.6.2. I think You misunderstood my question I want to know if a non-SHA compile works on Ryzen mining m7m, assuming the SHA build still fails. I reviewed the code again and I don't see any difference in the SHA code vs the non-SHA code after making the changes in the edit of my previous post. Here is the fix for algo/skein/skein.c 9c9 < #if defined __SHA__ --- > #if defined (SHA_NI) 17c17 < #if defined __SHA__ --- > #if defined (SHA_NI) 29c29 < #if defined __SHA__ --- > #if defined (SHA_NI) 45c45 < #if defined __SHA__ --- > #if defined (SHA_NI)
|
|
|
|
coinbutter
Newbie
Offline
Activity: 25
Merit: 0
|
|
April 16, 2017, 08:23:44 PM |
|
Yes, non-sha compiles perfectly.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 16, 2017, 08:54:55 PM |
|
Yes, non-sha compiles perfectly.
So the SHA code works on some algos but not on m7m, this is going to be a lot of work but I'm stuck without a Ryzen of my own to test with.
|
|
|
|
coinbutter
Newbie
Offline
Activity: 25
Merit: 0
|
|
April 16, 2017, 09:02:57 PM |
|
You could remove the __SHA__ check and compile it with openssl sha256 instead of sph_256. It'll still run on other hardware just not accelerated.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 16, 2017, 11:28:23 PM |
|
You could remove the __SHA__ check and compile it with openssl sha256 instead of sph_256. It'll still run on other hardware just not accelerated.
I should have done that before releasing. M7m fails for me using openssl. I have something to work with now.
|
|
|
|
Elder III
|
|
April 16, 2017, 11:49:01 PM |
|
I was able to mine with a Ryzen 1700X using v3.6.1 on the Xevan algorithm. It worked quite well based on my limited experience with CPU mining. I ran it for 13 1/2 hours and had only 1 rejected share out of 2003 total.
|
|
|
|
neguinho
|
|
April 17, 2017, 12:02:57 AM |
|
Qual é a melhor configuração para o Core i7 2630QM
|
|
|
|
coinbutter
Newbie
Offline
Activity: 25
Merit: 0
|
|
April 17, 2017, 12:07:01 AM |
|
I was able to mine with a Ryzen 1700X using v3.6.1 on the Xevan algorithm. It worked quite well based on my limited experience with CPU mining. I ran it for 13 1/2 hours and had only 1 rejected share out of 2003 total.
Did you build it from source? I should have done that before releasing. M7m fails for me using openssl. I have something to work with now.
Excellent! I'm afraid figuring that one out might be far beyond my knowledge.
|
|
|
|
Elder III
|
|
April 17, 2017, 12:44:11 AM |
|
I was able to mine with a Ryzen 1700X using v3.6.1 on the Xevan algorithm. It worked quite well based on my limited experience with CPU mining. I ran it for 13 1/2 hours and had only 1 rejected share out of 2003 total.
Did you build it from source? I should have done that before releasing. M7m fails for me using openssl. I have something to work with now.
Excellent! I'm afraid figuring that one out might be far beyond my knowledge. No I have not been able to figure out how to compile it myself, I used a pre-compiled version from a helpful person via youtube. https://www.youtube.com/watch?v=TA-dvvumwGU^ the download link is in the video description
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 17, 2017, 01:05:28 AM |
|
No I have not been able to figure out how to compile it myself, I used a pre-compiled version from a helpful person via youtube. https://www.youtube.com/watch?v=TA-dvvumwGU^ the download link is in the video description There are no issues with xevan on Ryzen. The only issues are with algos that use sha256 when compiled with SHA support. The prebuilt binaries referred to in the video are mine. There is no binary compiled with SHA support.
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 17, 2017, 03:51:25 PM |
|
I believe I have found the root cause of the problems with m7m and SHA. The sph final function re-initializes the context while the openssl version does not. The code sph in m7m took advantage of this silent init while openssl was left with stale data.
I have also found that sha256t works at suprnova, but not at yiimp. This looks like a pool issue.
All issues with SHA should be fixed in the next release.
|
|
|
|
ZenFr
Legendary
Offline
Activity: 1260
Merit: 1046
|
|
April 17, 2017, 05:39:49 PM |
|
I believe I have found the root cause of the problems with m7m and SHA. The sph final function re-initializes the context while the openssl version does not. The code sph in m7m took advantage of this silent init while openssl was left with stale data.
I have also found that sha256t works at suprnova, but not at yiimp. This looks like a pool issue.
All issues with SHA should be fixed in the next release.
Congratulation : good work :-).
|
|
|
|
|
coinbutter
Newbie
Offline
Activity: 25
Merit: 0
|
|
April 18, 2017, 12:17:32 AM |
|
joblo, everything working as expected for me! Great update!
|
|
|
|
|
dasgardo87
|
|
April 18, 2017, 06:59:18 PM |
|
hello when i try to running i get error Illegal instruction (core dumped)
i try to implement wolf answer to disable aes ni Configure with --disable-aes-ni but it seems cpuminer-opt dont have that option so my question are 1. How i solve this problem "Illegal instruction (core dumped)"? Or 2. How to disable aes ni in cpuminer-opt ? Thank you guys
|
|
|
|
joblo (OP)
Legendary
Offline
Activity: 1470
Merit: 1114
|
|
April 18, 2017, 07:07:43 PM |
|
hello when i try to running i get error Illegal instruction (core dumped)
i try to implement wolf answer to disable aes ni Configure with --disable-aes-ni but it seems cpuminer-opt dont have that option so my question are 1. How i solve this problem "Illegal instruction (core dumped)"? Or 2. How to disable aes ni in cpuminer-opt ? Thank you guys If you're using the Windows binarires choose one that doesnt' have AES. If you're using Linux I need a lot more info.
|
|
|
|
Elder III
|
|
April 18, 2017, 07:35:55 PM |
|
No I have not been able to figure out how to compile it myself, I used a pre-compiled version from a helpful person via youtube. https://www.youtube.com/watch?v=TA-dvvumwGU^ the download link is in the video description There are no issues with xevan on Ryzen. The only issues are with algos that use sha256 when compiled with SHA support. The prebuilt binaries referred to in the video are mine. There is no binary compiled with SHA support. Does the miner support more than 8 threads? If I edit the batch file to 16,15, or 14 threads it stops mining after a few minutes and locks up the pc (no display or mouse/keyboard but case fans etc still run) until I reset it. I have not tried it with anything between 8 and 14 threads at this point. Just curious to see if I should keep experimenting with thread count. Thanks!
|
|
|
|
|