Bitcoin Forum
May 04, 2024, 08:56:59 PM *
News: Latest Bitcoin Core release: 27.0 [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 ... 197 »
  Print  
Author Topic: [LOCKED] cpuminer-opt v3.12.3, open source optimized multi-algo CPU miner  (Read 443972 times)
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


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

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?

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
1714856219
Hero Member
*
Offline Offline

Posts: 1714856219

View Profile Personal Message (Offline)

Ignore
1714856219
Reply with quote  #2

1714856219
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714856219
Hero Member
*
Offline Offline

Posts: 1714856219

View Profile Personal Message (Offline)

Ignore
1714856219
Reply with quote  #2

1714856219
Report to moderator
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
 #2462

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 (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


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

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)

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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

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

Activity: 1470
Merit: 1114


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

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.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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

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 Offline

Activity: 1470
Merit: 1114


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

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.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Elder III
Sr. Member
****
Offline Offline

Activity: 1246
Merit: 274


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

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: 561
Merit: 500


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

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
 #2470

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: 1246
Merit: 274


View Profile
April 17, 2017, 12:44:11 AM
 #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.

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 Offline

Activity: 1470
Merit: 1114


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

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.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


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

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.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ZenFr
Legendary
*
Offline Offline

Activity: 1260
Merit: 1046



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

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 (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


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

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.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
coinbutter
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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

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

Activity: 1470
Merit: 1114


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

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

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

Google drive will be phased out.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
dasgardo87
Full Member
***
Offline Offline

Activity: 235
Merit: 100


View Profile
April 18, 2017, 06:59:18 PM
 #2478

hello when i try to running i get error

Code:
Illegal instruction (core dumped)

i try to implement wolf answer to disable aes ni

Quote
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 Smiley
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
April 18, 2017, 07:07:43 PM
 #2479

hello when i try to running i get error

Code:
Illegal instruction (core dumped)

i try to implement wolf answer to disable aes ni

Quote
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 Smiley

If you're using the Windows binarires choose one that doesnt' have AES.
If you're using Linux I need a lot more info.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Elder III
Sr. Member
****
Offline Offline

Activity: 1246
Merit: 274


View Profile
April 18, 2017, 07:35:55 PM
 #2480

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!
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 ... 197 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!