Bitcoin Forum
March 26, 2019, 09:28:24 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 [124] 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 ... 191 »
  Print  
Author Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner  (Read 419120 times)
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 01:14:43 AM
 #2461

Thanks for the testing.

I found another issue, I forgot to implement SHA for m7m. Will do that and the changes in my previous post
and release 3.6.2.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
1553592504
Hero Member
*
Offline Offline

Posts: 1553592504

View Profile Personal Message (Offline)

Ignore
1553592504
Reply with quote  #2

1553592504
Report to moderator
1553592504
Hero Member
*
Offline Offline

Posts: 1553592504

View Profile Personal Message (Offline)

Ignore
1553592504
Reply with quote  #2

1553592504
Report to moderator
100% New Software
PC, Mac, Android, & HTML5 Clients
Krill Rakeback
Low Rake
Bitcoin Poker 3.0
Bad Beat Jackpot
SwC Poker Relaunch
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1553592504
Hero Member
*
Offline Offline

Posts: 1553592504

View Profile Personal Message (Offline)

Ignore
1553592504
Reply with quote  #2

1553592504
Report to moderator
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 05:13:42 PM
 #2462

cpuminer-opt-3.6.2 is released.

SHA accceleration is now supported on AMD Ryzen CPUs when compiled from source,
  Windows binaries not yet available.
Fixed groestl algo.
Fixed dmd-gr (Diamond) algo.
Fixed lbry compile error on Ryzen.
Added SHA support to m7m algo.
Hodl support for CPUs without AES has been removed, use legacy version.

See RELEASE_NOTES for new compile instructions for Ryzen.

Source code:

git: https://github.com/JayDDee/cpuminer-opt

tarball: https://drive.google.com/file/d/0B0lVSGQYLJIZV01jaFV5enpKcWs/view?usp=sharing

Windows binaries

https://drive.google.com/file/d/0B0lVSGQYLJIZZUdkVGcwdkUyUjg/view?usp=sharing


cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 16, 2017, 07:28:45 PM
Last edit: April 16, 2017, 07:53:41 PM by coinbutter
 #2463

joblo, submitted a couple of pull requests to get it to compile on Ryzen. m7m is rejecting shares when built for Ryzen.

Code:
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

Edit: groestl, dmd-gr, deep, cryptonight, lbry working on Ryzen.

sha256t not working.
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 07:46:40 PM
Last edit: April 16, 2017, 07:57:57 PM by joblo
 #2464

joblo, submitted a couple of pull requests to get it to compile on Ryzen. m7m is rejecting shares when built for Ryzen.

Code:
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:

Code:
-    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.

Code:
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?

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 16, 2017, 07:56:52 PM
Last edit: April 16, 2017, 08:10:26 PM by coinbutter
 #2465

It's hard to make sense of your pull request. This is the only error I found:

Code:
-    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/files

Edit: 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
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 08:20:31 PM
 #2466

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

Code:
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)

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 16, 2017, 08:23:44 PM
 #2467

Yes, non-sha compiles perfectly.
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 08:54:55 PM
 #2468

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.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 16, 2017, 09:02:57 PM
 #2469

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
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 16, 2017, 11:28:23 PM
 #2470

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.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
Elder III
Sr. Member
****
Offline Offline

Activity: 854
Merit: 270


View Profile
April 16, 2017, 11:49:01 PM
 #2471

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
Hero Member
*****
Offline Offline

Activity: 562
Merit: 500


View Profile WWW
April 17, 2017, 12:02:57 AM
 #2472

Qual é a melhor configuração para o Core i7 2630QM

coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 17, 2017, 12:07:01 AM
 #2473

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
Sr. Member
****
Offline Offline

Activity: 854
Merit: 270


View Profile
April 17, 2017, 12:44:11 AM
 #2474

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
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 17, 2017, 01:05:28 AM
 #2475

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.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 17, 2017, 03:51:25 PM
 #2476

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.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
ZenFr
Legendary
*
Offline Offline

Activity: 1260
Merit: 1043



View Profile
April 17, 2017, 05:39:49 PM
 #2477

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 :-).
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 17, 2017, 06:25:12 PM
Last edit: April 18, 2017, 03:50:24 AM by joblo
 #2478

cpuminer-opt-3.6.3 released

git: https://github.com/JayDDee/cpuminer-opt

tarball: https://drive.google.com/file/d/0B0lVSGQYLJIZaXBWbS1xeXBKYkk/view?usp=sharing

Windows binaries: https://drive.google.com/file/d/0B0lVSGQYLJIZRFUtb2p1V3FCbzQ/view?usp=sharing

Fixed all known issues with SHA support on AMD Ryzen CPUs, still no Windows binaries.

SHA support on AMD Ryzen CPUs requires gcc version 5 or higher and openssl 1.1
or higher. Additional compile options may also be required such as "-march=znver1" or "-msha".

SHA support only improves algos that use sha256. The following algos have SHA support:
m7m, lbry, sha256t, myr-gr, skein.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 18, 2017, 12:17:32 AM
 #2479

joblo, everything working as expected for me! Great update!
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
April 18, 2017, 06:40:06 PM
 #2480

I've just added a link to download releases from github.

https://github.com/JayDDee/cpuminer-opt/releases

Google drive will be phased out.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
Pages: « 1 ... 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 [124] 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 ... 191 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!