Bitcoin Forum
April 25, 2024, 01:55:05 AM *
News: Latest Bitcoin Core release: 27.0 [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 192 193 194 195 196 197 »
  Print  
Author Topic: [LOCKED] cpuminer-opt v3.12.3, open source optimized multi-algo CPU miner  (Read 443960 times)
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


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

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

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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
 #3042

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


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


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

Activity: 1470
Merit: 1114


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

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.

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

Activity: 187
Merit: 100

Cryptocurrency enthusiast


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

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: 473
Merit: 18


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


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

Activity: 388
Merit: 13


View Profile
December 18, 2017, 01:39:23 PM
 #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.

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: 239
Merit: 100


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


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

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

Activity: 1470
Merit: 1114


View Profile
December 18, 2017, 03:25:48 PM
 #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.

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

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

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.

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

Activity: 473
Merit: 18


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


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: 196
Merit: 1


View Profile
December 18, 2017, 05:38:31 PM
 #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)


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

Activity: 1470
Merit: 1114


View Profile
December 18, 2017, 06:05:53 PM
 #3054

Is there a possibility to make a SHA version with AES-AVX/AES-AVX2/4WAY to improve the tests?

There should be no problem adding 4way to the Ryzen build. 4way only needs AVX2 and all Ryzens
have it. Itcould become an issue in the future if some low-budget CPUs are built with SHA but not
AVX2.

Edit: At this time the only algo that can use both 4way and SHA is skein.

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

Activity: 15
Merit: 0


View Profile
December 18, 2017, 06:27:18 PM
 #3055

is CPU mining zcoin (lyra2z) still profitable? I have i7-7800X 3.5 GHz giving me about 950-971 kH/s where my 1080Ti gives me 3300 kH/s. I could not find easy resources to see if CPU is profitable
4ward
Member
**
Offline Offline

Activity: 473
Merit: 18


View Profile
December 18, 2017, 06:38:50 PM
 #3056

is CPU mining zcoin (lyra2z) still profitable? I have i7-7800X 3.5 GHz giving me about 950-971 kH/s where my 1080Ti gives me 3300 kH/s. I could not find easy resources to see if CPU is profitable
see for yourself on http://whattomine.com/coins/175-xzc-lyra2z
on my cpu, core i5 7600k it gives almost 500 khs, which is above 1$ per day (at current difficulty) after deducting power costs

joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
December 18, 2017, 07:31:45 PM
 #3057


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

This is perfect. It's exactly what I needed. Since 4way is somewhat stalled right now I tried it out in a Ubuntu-16.04 VM.
I ran the script manually, had to make adjustments for compiler version, and lack or "znver1" arch but I built a 4way with sha.
I just can't run it anywhere.

I just need to tweak a few things and the next release should have the full suite of binaries, with the addition of AVX2-SHA
and 4WAY-SHA.

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
December 18, 2017, 11:27:03 PM
Last edit: December 19, 2017, 01:04:27 AM by joblo
 #3058

I've uploaded a new windows binaries package of v3.7.7 to git with support for SHA. I also trimmed some
of the file names to remove redundancy.

4way includes avx2
avx2 includes avx
avx includes aes and sse4.2

It's avaiable on the releases page or this direct link:

https://github.com/JayDDee/cpuminer-opt/files/1569739/cpuminer-opt-3.7.7-windows-v2.zip

Be careful with sha, only the AMD Ryzen family supports it at this time.

Consider this a beta for the new Windows build system.


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
December 19, 2017, 02:46:36 AM
 #3059

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

I can look into this now.

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

Activity: 473
Merit: 18


View Profile
December 19, 2017, 07:09:08 AM
 #3060

I've uploaded a new windows binaries package of v3.7.7 to git with support for SHA. I also trimmed some
of the file names to remove redundancy.

4way includes avx2
avx2 includes avx
avx includes aes and sse4.2

It's avaiable on the releases page or this direct link:

https://github.com/JayDDee/cpuminer-opt/files/1569739/cpuminer-opt-3.7.7-windows-v2.zip

Be careful with sha, only the AMD Ryzen family supports it at this time.

Consider this a beta for the new Windows build system.



Great, now I don't need to compile it every time )
You version is even slightly faster that mine now, and much better than your old one

version2:
Code:
[2017-12-19 09:06:07] 4 miner threads started, using 'm7m' algorithm.
[2017-12-19 09:06:11] Total: 131.07 kH, 30.26 kH/s
[2017-12-19 09:06:17] Total: 543.27 kH, 116.68 kH/s
[2017-12-19 09:06:22] Total: 463.73 kH, 118.06 kH/s
[2017-12-19 09:06:27] Total: 588.01 kH, 118.16 kH/s
[2017-12-19 09:06:32] Total: 558.14 kH, 116.67 kH/s
[2017-12-19 09:06:37] Total: 463.77 kH, 118.15 kH/s
[2017-12-19 09:06:42] Total: 558.65 kH, 118.14 kH/s
[2017-12-19 09:06:47] Total: 559.65 kH, 117.80 kH/s

mine:
Code:
[2017-12-19 09:06:50] 4 miner threads started, using 'm7m' algorithm.
[2017-12-19 09:06:54] Total: 131.07 kH, 28.88 kH/s
[2017-12-19 09:06:55] Total: 422.10 kH, 112.21 kH/s
[2017-12-19 09:07:00] Total: 515.58 kH, 113.07 kH/s
[2017-12-19 09:07:05] Total: 457.03 kH, 113.83 kH/s
[2017-12-19 09:07:10] Total: 569.14 kH, 114.00 kH/s
[2017-12-19 09:07:15] Total: 570.00 kH, 114.54 kH/s
[2017-12-19 09:07:20] Total: 572.70 kH, 114.29 kH/s

old:
Code:
[2017-12-19 09:07:23] 4 miner threads started, using 'm7m' algorithm.
[2017-12-19 09:07:28] Total: 131.07 kH, 25.25 kH/s
[2017-12-19 09:07:33] Total: 439.86 kH, 101.17 kH/s
[2017-12-19 09:07:38] Total: 406.51 kH, 104.49 kH/s
[2017-12-19 09:07:43] Total: 522.45 kH, 104.94 kH/s
[2017-12-19 09:07:48] Total: 423.00 kH, 104.35 kH/s
[2017-12-19 09:07:53] Total: 521.77 kH, 105.34 kH/s
[2017-12-19 09:07:58] Total: 526.68 kH, 105.30 kH/s

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 192 193 194 195 196 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!