Bitcoin Forum
April 24, 2019, 05:14:41 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 »
  Print  
Author Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner  (Read 419411 times)
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 17, 2017, 08:26:01 PM
 #3041

Tribus 4way 8 threads:
Code:
[2017-12-17 15:45:48][2017-12-17 15:49:10] [2017-12-17 17:05:32] tribus block 449483, diff 735.578
[2017-12-17 17:05:32] CPU #7: 461.65 kH, 398.07 kH/s
[2017-12-17 17:05:32] CPU #6: 460.63 kH, 398.21 kH/s
[2017-12-17 17:05:32] CPU #5: 460.43 kH, 397.70 kH/s
[2017-12-17 17:05:32] CPU #2: 460.88 kH, 397.74 kH/s
[2017-12-17 17:05:32] CPU #4: 460.51 kH, 397.76 kH/s
[2017-12-17 17:05:32] CPU #3: 460.82 kH, 398.03 kH/s
[2017-12-17 17:05:32] CPU #0: 454.80 kH, 393.86 kH/s
[2017-12-17 17:05:32] CPU #1: 463.35 kH, 399.53 kH/s

Apparently Tribus 4way likes SMT/HT here.

It's interesting that the thread rate didn't increase with fewer threads. Were the threads spread over
all 8 cores? You can try "-t 8 --cpu-affinity 0x5555" to select alternate vcores.

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

Posts: 1556126081

View Profile Personal Message (Offline)

Ignore
1556126081
Reply with quote  #2

1556126081
Report to moderator
1556126081
Hero Member
*
Offline Offline

Posts: 1556126081

View Profile Personal Message (Offline)

Ignore
1556126081
Reply with quote  #2

1556126081
Report to moderator
1556126081
Hero Member
*
Offline Offline

Posts: 1556126081

View Profile Personal Message (Offline)

Ignore
1556126081
Reply with quote  #2

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

Posts: 1556126081

View Profile Personal Message (Offline)

Ignore
1556126081
Reply with quote  #2

1556126081
Report to moderator
Larvitar
Jr. Member
*
Offline Offline

Activity: 198
Merit: 1


View Profile
December 17, 2017, 08:38:13 PM
 #3042

Tribus 4way 8 threads:
Code:
[2017-12-17 15:45:48][2017-12-17 15:49:10] [2017-12-17 17:05:32] tribus block 449483, diff 735.578
[2017-12-17 17:05:32] CPU #7: 461.65 kH, 398.07 kH/s
[2017-12-17 17:05:32] CPU #6: 460.63 kH, 398.21 kH/s
[2017-12-17 17:05:32] CPU #5: 460.43 kH, 397.70 kH/s
[2017-12-17 17:05:32] CPU #2: 460.88 kH, 397.74 kH/s
[2017-12-17 17:05:32] CPU #4: 460.51 kH, 397.76 kH/s
[2017-12-17 17:05:32] CPU #3: 460.82 kH, 398.03 kH/s
[2017-12-17 17:05:32] CPU #0: 454.80 kH, 393.86 kH/s
[2017-12-17 17:05:32] CPU #1: 463.35 kH, 399.53 kH/s

Apparently Tribus 4way likes SMT/HT here.

It's interesting that the thread rate didn't increase with fewer threads. Were the threads spread over
all 8 cores? You can try "-t 8 --cpu-affinity 0x5555" to select alternate vcores.

Code:
[2017-12-17 17:34:59] [2017-12-17 17:36:25] tribus block 449526, diff 130.915
[2017-12-17 17:36:25] CPU #6: 5670.24 kH, 753.19 kH/s
[2017-12-17 17:36:25] CPU #5: 5840.23 kH, 775.66 kH/s
[2017-12-17 17:36:25] CPU #0: 69.55 kH, 763.09 kH/s
[2017-12-17 17:36:25] CPU #7: 5672.16 kH, 753.14 kH/s
[2017-12-17 17:36:25] CPU #4: 5766.59 kH, 765.78 kH/s
[2017-12-17 17:36:25] CPU #2: 5597.96 kH, 743.19 kH/s
[2017-12-17 17:36:25] CPU #3: 5665.52 kH, 752.36 kH/s
[2017-12-17 17:36:25] CPU #1: 5690.77 kH, 755.51 kH/s
[2017-12-17 17:36:26] Accepted 2/2 (100%), 39.97 MH, 6061.92 kH/s

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 17, 2017, 08:58:34 PM
 #3043

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

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

Activity: 198
Merit: 1


View Profile
December 17, 2017, 11:18:59 PM
 #3044

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

In fact. Joblo, is there an updated algo list that receive boost from SHA hardware acceleration? I found a little list some pages before:

Quote
sha256t, lbry, skein, myr-groestl, m7m.

Are there more algos?
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 17, 2017, 11:29:10 PM
 #3045

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

In fact. Joblo, is there an updated algo list that receive boost from SHA hardware acceleration? I found a little list some pages before:

Quote
sha256t, lbry, skein, myr-groestl, m7m.

Are there more algos?

I converted all of them at the time and I don't recall any new algos that can use it.

What about nist5? Can you try that again? I'd like to understand what's going on there.
I get good performance on my Intel.

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

Activity: 243
Merit: 100


View Profile
December 17, 2017, 11:58:21 PM
 #3046

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

In fact. Joblo, is there an updated algo list that receive boost from SHA hardware acceleration? I found a little list some pages before:

Quote
sha256t, lbry, skein, myr-groestl, m7m.

Are there more algos?

I converted all of them at the time and I don't recall any new algos that can use it.

What about nist5? Can you try that again? I'd like to understand what's going on there.
I get good performance on my Intel.

what do you need?

I'm better with code than with words-SatoshiNakamoto
Espers [ESP]SiteOnBlockchain
Larvitar
Jr. Member
*
Offline Offline

Activity: 198
Merit: 1


View Profile
December 18, 2017, 12:01:25 AM
 #3047

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

In fact. Joblo, is there an updated algo list that receive boost from SHA hardware acceleration? I found a little list some pages before:

Quote
sha256t, lbry, skein, myr-groestl, m7m.

Are there more algos?

I converted all of them at the time and I don't recall any new algos that can use it.

What about nist5? Can you try that again? I'd like to understand what's going on there.
I get good performance on my Intel.

I reduced overclock (to keep everything cold). New results with NIST5:

NIST5 4way 8 threads with --cpu-affinity 0x5555
Code:
[2017-12-17 20:33:17] nist5 block 14635, diff 14699.054
[2017-12-17 20:33:27] CPU #6: 2097.15 kH, 209.42 kH/s
[2017-12-17 20:33:27] CPU #2: 2097.15 kH, 207.48 kH/s
[2017-12-17 20:33:27] CPU #5: 2097.15 kH, 205.79 kH/s
[2017-12-17 20:33:27] CPU #7: 2097.15 kH, 205.61 kH/s
[2017-12-17 20:33:27] CPU #4: 2097.15 kH, 204.96 kH/s
[2017-12-17 20:33:27] CPU #1: 2097.15 kH, 204.46 kH/s
[2017-12-17 20:33:27] CPU #0: 2097.15 kH, 204.01 kH/s
[2017-12-17 20:33:27] CPU #3: 2097.15 kH, 199.72 kH/s

NIST5 16 threads
Code:
[2017-12-17 20:47:55] nist5 block 14649, diff 22837.326
[2017-12-17 20:47:55] CPU #2: 667.71 kH, 121.83 kH/s
[2017-12-17 20:47:55] CPU #3: 672.92 kH, 122.76 kH/s
[2017-12-17 20:47:55] CPU #0: 454.52 kH, 83.08 kH/s
[2017-12-17 20:47:55] CPU #1: 653.82 kH, 119.54 kH/s
[2017-12-17 20:47:55] CPU #14: 647.14 kH, 118.14 kH/s
[2017-12-17 20:47:55] CPU #7: 657.04 kH, 119.95 kH/s
[2017-12-17 20:47:55] CPU #6: 635.59 kH, 116.06 kH/s
[2017-12-17 20:47:55] CPU #11: 681.85 kH, 124.55 kH/s
[2017-12-17 20:47:55] CPU #5: 682.78 kH, 124.85 kH/s
[2017-12-17 20:47:55] CPU #4: 570.23 kH, 104.24 kH/s
[2017-12-17 20:47:55] CPU #12: 565.09 kH, 103.26 kH/s
[2017-12-17 20:47:55] CPU #10: 681.59 kH, 124.53 kH/s
[2017-12-17 20:47:55] CPU #8: 617.07 kH, 112.53 kH/s
[2017-12-17 20:47:55] CPU #9: 684.27 kH, 124.89 kH/s
[2017-12-17 20:47:55] CPU #15: 669.73 kH, 122.23 kH/s
[2017-12-17 20:47:55] CPU #13: 642.05 kH, 117.12 kH/s

NIST5 AES-AVX2 8 threads with --cpu-affinity 0x5555
Code:
[2017-12-17 20:59:30] nist5 block 14655, diff 22762.164
[2017-12-17 20:59:36] CPU #4: 2097.15 kH, 369.94 kH/s
[2017-12-17 20:59:36] CPU #5: 2097.15 kH, 365.38 kH/s
[2017-12-17 20:59:36] CPU #7: 2097.15 kH, 365.42 kH/s
[2017-12-17 20:59:36] CPU #6: 2097.15 kH, 365.26 kH/s
[2017-12-17 20:59:36] CPU #3: 2097.15 kH, 365.13 kH/s
[2017-12-17 20:59:36] CPU #0: 2097.15 kH, 359.60 kH/s
[2017-12-17 20:59:36] CPU #1: 2097.15 kH, 359.14 kH/s
[2017-12-17 20:59:36] CPU #2: 2097.15 kH, 356.60 kH/s

EDIT1:
NIST5 AES-AVX 8 threads with --cpu-affinity 0x5555
Code:
[2017-12-17 21:02:19] nist5 block 14657, diff 22797.808
[2017-12-17 21:02:26] CPU #6: 2097.15 kH, 374.14 kH/s
[2017-12-17 21:02:26] CPU #5: 2097.15 kH, 373.53 kH/s
[2017-12-17 21:02:26] CPU #2: 2097.15 kH, 370.56 kH/s
[2017-12-17 21:02:26] CPU #7: 2097.15 kH, 369.28 kH/s
[2017-12-17 21:02:26] CPU #4: 2097.15 kH, 367.82 kH/s
[2017-12-17 21:02:26] CPU #0: 2097.15 kH, 367.53 kH/s
[2017-12-17 21:02:26] CPU #1: 2097.15 kH, 365.98 kH/s
[2017-12-17 21:02:26] CPU #3: 2097.15 kH, 365.38 kH/s

EDIT2:
Quote from: My9bot
what do you need?

Wich algos are affected by SHA acceleration?
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 18, 2017, 01:20:35 AM
 #3048

The results for nist5 on Ryzen are baffling. I get much better performance with i7-6700K
using 4way and all threads. It's even more baffling that the tribus results on Ryzen are
consistent with Intel. They share a lot of code.

4way 8 threads: 2720
4way 4 threads: 2205
1way 8 threads: 2055
1way 4 threads: 1850

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

Activity: 15
Merit: 0


View Profile
December 18, 2017, 04:07:27 AM
Last edit: December 18, 2017, 04:18:57 AM by Bitcope
 #3049

I have i7-7800X CPU @ 3.50GHz

Trying to see which CPU miner is best for lyra2z... anyone know...? I tried 4way and AES-avx2. they seem to get the same KH and KH/s.
For aes-sse42, it seems i get lower.

From personal test, it seems like aes-avx2 is way to go. can anyone confirm? also, what would be safe CPU temperature for CPU mining?

guytechie
Hero Member
*****
Offline Offline

Activity: 645
Merit: 500


View Profile
December 18, 2017, 04:27:18 AM
 #3050


cpuminer-opt-3.7.7-sha win

https://ufile.io/mkuq4


Thanks for that. Do you have a howto guide? I need to file it for when I finally upgrade my build environment

With your permission I will add your link to the OP.

Oh please let this happen!  Been waiting for SHA optimization for Windows since it was available for Linux.

While I understand the link is to the SHA enabled Win EXE, I'm a little weary about using it because it's not from the dev themselves though.

Put something in my tip jar if I made your day. Smiley
BTC:
1MkmBHDjonAFXui6JEx9ZmEemfMtUo9Cmu
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 18, 2017, 04:33:23 AM
 #3051

I have i7-7800X CPU @ 3.50GHz

Trying to see which CPU miner is best for lyra2z... anyone know...? I tried 4way and AES-avx2. they seem to get the same KH and KH/s.
For aes-sse42, it seems i get lower.

From personal test, it seems like aes-avx2 is way to go. can anyone confirm? also, what would be safe CPU temperature for CPU mining?

AVX2 is the way to go, 4 way does nothing for lyra2. You can also try reducing the number of threads, it might improve cache
performance. The cooler the CPU the better. Make sure the fan is at 100%, it's cheaper to replace a worn out fan than a burned out CPU.

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

Activity: 193
Merit: 100

Cryptocurrency enthusiast


View Profile
December 18, 2017, 06:58:40 AM
 #3052

The cooler the CPU the better. Make sure the fan is at 100%, it's cheaper to replace a worn out fan than a burned out CPU.

Hi guys. For using AVX/AVX2 in mining safely on latest Intel CPUs with full thread/core count, use Z170/Z270/Z370 chipset with "avx offset" bios setting. So, e.g. your 4GHz cpu will be running at 3.6-3.8GHz while mining with avx/avx2/4-way on all cores/threads.

To (partly) avoid speed degradation, lock turbo boost speed (if you do not want to overclock, of course) in bios - set max performance plan, disable c-states, disable speed-step. This is supported on non-overclocking chipsets as well (e.g. H270, B250).

Simple benchs for i5-7600 (non-k) for lyra2z330 AVX2 with -t 2:

1) Stock settings (base clock 3.5GHz, goes to 4.0GHz for 2 busy cores) - ~812-824H/s
2) Stock settings + speed-step OFF (base clock 3.6GHz, turbo boost on, goes to 4.0GHz for 2 busy cores) - ~829-836H/s
3) Performance bios profile + speed-step OFF + c-states OFF (base clock 3.9GHz @ all cores, turbo boost on, but it does not go to 4.0GHz) - ~844-861H/s

I may note that this CPU goes to 98C (2C to Tj Tongue) under lyra* with -t 4 and avx2/4-way under 150W TDP tower cooler, so avx offset helps to keep it @80-81C at 3.5-3.6GHz.

So, this just shows that turbo boost reacts slowly, and should be locked for a mining PC. I've tested for cryptonote as well, but the diff is much less - ~0.5% (as there's perfectly stable cores utilization there - no jumping load at all).
4ward
Member
**
Offline Offline

Activity: 456
Merit: 17


View Profile
December 18, 2017, 07:17:38 AM
 #3053


cpuminer-opt-3.7.7-sha win

https://ufile.io/mkuq4


Thanks for that. Do you have a howto guide? I need to file it for when I finally upgrade my build environment

With your permission I will add your link to the OP.

I'm cross compiling cpuminer-opt for my own usage for some time (since I posted the instructions here)
You can link to my github
https://github.com/yuzi-co/miners/releases/download/1/cpuminer-opt-3.7.7-4ward.7z

It includes all the windows versions you release (compiled with openssl 1.1) + sha + all necessary dlls

One thing I couldn't resolve is that neoscrypt always fails to run (same in My9bot's version)

lncm
Member
**
Online Online

Activity: 298
Merit: 11


View Profile
December 18, 2017, 01:39:23 PM
 #3054

Ya, the default affinity was choosing virtual threads instead physical ones. Damn! 6MH/s!

All Ryzen users should take note. Intel chooses one thread per core before using HT.

I confirm major performance increase with Ryzen in scrypt adding --cpu-affinity 0x5555

From 22 H/s to 29 H/s with 8 threads and from 28 to 35 H/s with 15 threads!
My9bot
Full Member
***
Offline Offline

Activity: 243
Merit: 100


View Profile
December 18, 2017, 02:27:14 PM
 #3055


cpuminer-opt-3.7.7-sha win

https://ufile.io/mkuq4


Thanks for that. Do you have a howto guide? I need to file it for when I finally upgrade my build environment

With your permission I will add your link to the OP.

Oh please let this happen!  Been waiting for SHA optimization for Windows since it was available for Linux.

While I understand the link is to the SHA enabled Win EXE, I'm a little weary about using it because it's not from the dev themselves though.

dont use it its ok for me

I'm better with code than with words-SatoshiNakamoto
Espers [ESP]SiteOnBlockchain
Bitcope
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 18, 2017, 02:48:23 PM
 #3056

I have i7-7800X CPU @ 3.50GHz

Trying to see which CPU miner is best for lyra2z... anyone know...? I tried 4way and AES-avx2. they seem to get the same KH and KH/s.
For aes-sse42, it seems i get lower.

From personal test, it seems like aes-avx2 is way to go. can anyone confirm? also, what would be safe CPU temperature for CPU mining?

AVX2 is the way to go, 4 way does nothing for lyra2. You can also try reducing the number of threads, it might improve cache
performance. The cooler the CPU the better. Make sure the fan is at 100%, it's cheaper to replace a worn out fan than a burned out CPU.

I see. Do I have to modify my bat file to run less threads? sorry this is my first time using cpuminer so wanted to see what I need to try to see if I can get the maximum performance.
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
December 18, 2017, 03:25:48 PM
 #3057


cpuminer-opt-3.7.7-sha win

https://ufile.io/mkuq4


Thanks for that. Do you have a howto guide? I need to file it for when I finally upgrade my build environment

With your permission I will add your link to the OP.

I'm cross compiling cpuminer-opt for my own usage for some time (since I posted the instructions here)
You can link to my github
https://github.com/yuzi-co/miners/releases/download/1/cpuminer-opt-3.7.7-4ward.7z

It includes all the windows versions you release (compiled with openssl 1.1) + sha + all necessary dlls

One thing I couldn't resolve is that neoscrypt always fails to run (same in My9bot's version)


I found the cross-compile instructions

https://bitcointalk.org/index.php?topic=1326803.msg23580581#msg23580581

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
December 18, 2017, 03:28:16 PM
 #3058

I have i7-7800X CPU @ 3.50GHz

Trying to see which CPU miner is best for lyra2z... anyone know...? I tried 4way and AES-avx2. they seem to get the same KH and KH/s.
For aes-sse42, it seems i get lower.

From personal test, it seems like aes-avx2 is way to go. can anyone confirm? also, what would be safe CPU temperature for CPU mining?

AVX2 is the way to go, 4 way does nothing for lyra2. You can also try reducing the number of threads, it might improve cache
performance. The cooler the CPU the better. Make sure the fan is at 100%, it's cheaper to replace a worn out fan than a burned out CPU.

I see. Do I have to modify my bat file to run less threads? sorry this is my first time using cpuminer so wanted to see what I need to try to see if I can get the maximum performance.

The option needs to be on the cpuminer command line or in the config file if you use one. If you run cpuminer from a bat
file then yes, you need to add the option to the comand line in the bat file.

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

Activity: 456
Merit: 17


View Profile
December 18, 2017, 03:51:53 PM
 #3059


since then i compiled it all to a script:
Code:
#!/bin/bash
OPENSSL_VER='1.1.0g'
CURL_VER='7.56.1'
GMP_VER='6.1.2'
DIR=$(pwd)
CORES=$(grep -c ^processor /proc/cpuinfo)

sudo apt-get install build-essential libz-mingw-w64-dev libz-mingw-w64 git autoconf -y

[[ -f openssl-${OPENSSL_VER}.tar.gz ]] || wget https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz
[[ -d openssl-${OPENSSL_VER} ]] || tar xvfz openssl-${OPENSSL_VER}.tar.gz
cd openssl-${OPENSSL_VER}
./Configure mingw64 shared --cross-compile-prefix=x86_64-w64-mingw32- || exit 1
make -j ${CORES} || exit 1

cd ${DIR}
[[ -f curl-${CURL_VER}.tar.bz2 ]] || wget https://curl.haxx.se/download/curl-${CURL_VER}.tar.bz2
[[ -d curl-${CURL_VER} ]] || tar xvfj curl-${CURL_VER}.tar.bz2
cd curl-${CURL_VER}
./configure --with-winssl --with-winidn --host=x86_64-w64-mingw32 || exit 1
make -j ${CORES} || exit 1

cd ${DIR}
[[ -f gmp-${GMP_VER}.tar.bz2 ]] || wget https://gmplib.org/download/gmp/gmp-${GMP_VER}.tar.bz2
[[ -d gmp-${GMP_VER} ]] || tar xvfj gmp-${GMP_VER}.tar.bz2
cd gmp-${GMP_VER}
./configure --host=x86_64-w64-mingw32 || exit 1
make -j ${CORES} || exit 1

cd ${DIR}
[[ -d cpuminer-opt ]] || git clone https://github.com/JayDDee/cpuminer-opt.git
cd cpuminer-opt
ln -s ../gmp-${GMP_VER}/gmp.h

cat > winbuild-cross.sh << EOF
#!/bin/bash

export LDFLAGS="-L${DIR}/curl-${CURL_VER}/lib/.libs -L${DIR}/gmp-${GMP_VER}/.libs -L${DIR}/openssl-${OPENSSL_VER}"
F="--with-curl=${DIR}/curl-${CURL_VER} --with-crypto=${DIR}/openssl-${OPENSSL_VER} --host=x86_64-w64-mingw32"

sed -i 's/"-lpthread"/"-lpthreadGC2"/g' configure.ac


mkdir release
cp /usr/x86_64-w64-mingw32/lib/zlib1.dll release/
cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll release/
cp /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++-6.dll release/
cp /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libgcc_s_seh-1.dll release/
cp ${DIR}/openssl-${OPENSSL_VER}/libcrypto-1_1-x64.dll release/
cp ${DIR}/curl-${CURL_VER}/lib/.libs/libcurl-4.dll release/


make distclean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=core-avx2 -Wall -DFOUR_WAY" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-4way.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=core-avx2 -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-aes-avx2.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=znver1 -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-aes-sha.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=corei7-avx -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-aes-avx.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -maes -msse4.2 -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-aes-sse42.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=corei7 -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-sse42.exe

make clean || echo clean
rm -f config.status
./autogen.sh || echo done
CFLAGS="-O3 -march=core2 -Wall" ./configure \$F
make -j ${CORES}
strip -s cpuminer.exe
mv cpuminer.exe release/cpuminer-sse2.exe

EOF

chmod a+x winbuild-cross.sh
./winbuild-cross.sh

Larvitar
Jr. Member
*
Offline Offline

Activity: 198
Merit: 1


View Profile
December 18, 2017, 05:38:31 PM
 #3060


cpuminer-opt-3.7.7-sha win

https://ufile.io/mkuq4


Thanks for that. Do you have a howto guide? I need to file it for when I finally upgrade my build environment

With your permission I will add your link to the OP.

I'm cross compiling cpuminer-opt for my own usage for some time (since I posted the instructions here)
You can link to my github
https://github.com/yuzi-co/miners/releases/download/1/cpuminer-opt-3.7.7-4ward.7z

It includes all the windows versions you release (compiled with openssl 1.1) + sha + all necessary dlls

One thing I couldn't resolve is that neoscrypt always fails to run (same in My9bot's version)


Thank you!

I did some benchmarks (Ryzen 7 1700 at 3.7GHz) with your package

SHA256T - SHA 16 THREADS
Code:
[2017-12-18 14:20:40] 16 miner threads started, using 'sha256t' algorithm.
[2017-12-18 14:20:40] Total: 1572.86 kH, 22.62 MH/s
[2017-12-18 14:20:45] Total: 278.74 MH, 58.72 MH/s
[2017-12-18 14:20:50] Total: 243.37 MH, 58.17 MH/s
[2017-12-18 14:20:55] Total: 276.47 MH, 58.41 MH/s
[2017-12-18 14:21:00] Total: 284.05 MH, 58.46 MH/s
[2017-12-18 14:21:05] Total: 279.11 MH, 59.02 MH/s
[2017-12-18 14:21:10] Total: 266.39 MH, 59.40 MH/s
[2017-12-18 14:21:15] Total: 292.94 MH, 59.38 MH/s

SHA256T - SHA 8 THREADS
Code:
[2017-12-18 14:23:25] 8 miner threads started, using 'sha256t' algorithm.
[2017-12-18 14:23:25] Total: 1048.58 kH, 20.97 MH/s
[2017-12-18 14:23:30] Total: 176.50 MH, 41.74 MH/s
[2017-12-18 14:23:35] Total: 188.22 MH, 41.66 MH/s
[2017-12-18 14:23:40] Total: 187.26 MH, 41.78 MH/s
[2017-12-18 14:23:45] Total: 203.56 MH, 41.76 MH/s
[2017-12-18 14:23:50] Total: 208.79 MH, 41.86 MH/s


SKEIN - SHA 16 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 SHA.
Start mining with SSE2 SHA.

[2017-12-18 14:24:40] 16 miner threads started, using 'skein' algorithm.
[2017-12-18 14:24:41] Total: 524.29 kH, 1483.29 kH/s
[2017-12-18 14:24:45] Total: 61.07 MH, 23.24 MH/s
[2017-12-18 14:24:50] Total: 111.79 MH, 23.29 MH/s
[2017-12-18 14:24:55] Total: 116.39 MH, 23.27 MH/s
[2017-12-18 14:25:00] Total: 115.93 MH, 23.33 MH/s
[2017-12-18 14:25:05] Total: 115.96 MH, 23.22 MH/s

SKEIN - SHA 8 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 SHA.
Start mining with SSE2 SHA.

[2017-12-18 14:25:38] 8 miner threads started, using 'skein' algorithm.
[2017-12-18 14:25:38] Total: 1572.86 kH, 6930.61 kH/s
[2017-12-18 14:25:43] Total: 79.42 MH, 18.37 MH/s
[2017-12-18 14:25:48] Total: 82.68 MH, 18.31 MH/s
[2017-12-18 14:25:53] Total: 89.29 MH, 18.31 MH/s
[2017-12-18 14:25:58] Total: 82.48 MH, 18.30 MH/s

M7M - SHA 16 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AES AVX AVX2 SHA.
Start mining with AES AVX2 SHA.

[2017-12-18 14:26:51] 16 miner threads started, using 'm7m' algorithm.
[2017-12-18 14:26:58] Total: 1048.58 kH, 153.21 kH/s
[2017-12-18 14:27:03] Total: 1475.41 kH, 298.13 kH/s
[2017-12-18 14:27:08] Total: 1462.74 kH, 299.35 kH/s
[2017-12-18 14:27:13] Total: 1473.17 kH, 293.62 kH/s
[2017-12-18 14:27:19] Total: 1470.94 kH, 292.78 kH/s
[2017-12-18 14:27:22] Total: 1446.18 kH, 287.93 kH/s
[2017-12-18 14:27:23] Total: 1314.45 kH, 293.83 kH/s

M7M - SHA 8 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AES AVX AVX2 SHA.
Start mining with AES AVX2 SHA.

[2017-12-18 14:27:44] 8 miner threads started, using 'm7m' algorithm.
[2017-12-18 14:27:48] Total: 393.22 kH, 87.37 kH/s
[2017-12-18 14:27:49] Total: 742.73 kH, 226.83 kH/s
[2017-12-18 14:27:54] Total: 453.60 kH, 229.37 kH/s
[2017-12-18 14:27:59] Total: 1144.11 kH, 228.59 kH/s
[2017-12-18 14:28:04] Total: 1099.87 kH, 224.53 kH/s
[2017-12-18 14:28:09] Total: 1091.55 kH, 222.76 kH/s

LBRY - SHA 16 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AVX AVX2 SHA.
Start mining with AVX2 SHA.

[2017-12-18 14:29:03] 16 miner threads started, using 'lbry' algorithm.
[2017-12-18 14:29:03] Total: 393.22 kH, 1994.04 kH/s
[2017-12-18 14:29:08] Total: 28.31 MH, 10.36 MH/s
[2017-12-18 14:29:13] Total: 46.71 MH, 10.34 MH/s
[2017-12-18 14:29:18] Total: 49.09 MH, 10.32 MH/s
[2017-12-18 14:29:23] Total: 51.59 MH, 10.33 MH/s
[2017-12-18 14:29:28] Total: 51.65 MH, 10.29 MH/s
[2017-12-18 14:29:33] Total: 50.62 MH, 10.32 MH/s

LBRY - SHA 8 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AVX AVX2 SHA.
Start mining with AVX2 SHA.

[2017-12-18 14:29:54] 8 miner threads started, using 'lbry' algorithm.
[2017-12-18 14:29:54] Total: 655.36 kH, 4567.30 kH/s
[2017-12-18 14:29:59] Total: 18.29 MH, 7300.38 kH/s
[2017-12-18 14:30:04] Total: 36.52 MH, 7297.99 kH/s
[2017-12-18 14:30:09] Total: 36.49 MH, 7293.69 kH/s
[2017-12-18 14:30:14] Total: 36.46 MH, 7234.66 kH/s
[2017-12-18 14:30:19] Total: 36.17 MH, 7211.15 kH/s

MYR-GR - SHA 16 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AES AVX AVX2 SHA.
Start mining with AES AVX2 SHA.

[2017-12-18 14:31:08] 16 miner threads started, using 'myr-gr' algorithm.
[2017-12-18 14:31:08] Total: 3145.73 kH, 8517.45 kH/s
[2017-12-18 14:31:13] Total: 22.12 MH, 11.17 MH/s
[2017-12-18 14:31:18] Total: 47.95 MH, 11.11 MH/s
[2017-12-18 14:31:23] Total: 44.93 MH, 11.17 MH/s
[2017-12-18 14:31:26] Total: 44.12 MH, 11.06 MH/s

MYR-GR - SHA 8 THREADS
Code:
         **********  cpuminer-opt 3.7.7  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1700 Eight-Core Processor          .
SW built on Dec 17 2017 with GCC 6.2.1.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 SHA.
Algo features: SSE2 AES AVX AVX2 SHA.
Start mining with AES AVX2 SHA.

[2017-12-18 14:32:04] 8 miner threads started, using 'myr-gr' algorithm.
[2017-12-18 14:32:04] Total: 1107.11 kH, 5887.11 kH/s
[2017-12-18 14:32:09] Total: 31.06 MH, 9538.90 kH/s
[2017-12-18 14:32:14] Total: 34.63 MH, 9553.20 kH/s
[2017-12-18 14:32:19] Total: 37.34 MH, 9566.10 kH/s
[2017-12-18 14:32:24] Total: 31.56 MH, 9568.59 kH/s

Is there a possibility to make a SHA version with AES-AVX/AES-AVX2/4WAY to improve the tests?
Pages: « 1 ... 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 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!