Bitcoin Forum
February 16, 2019, 10:58:42 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 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 418570 times)
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 19, 2017, 07:00:50 PM
 #2861

Gosh, I'm so lost with all this. I think I need a dummy's guide, I have no technical skills whatsoever.

Me too. a quick manual will surely help

A manual for what? cpuminer-opt works like any other fork of minerd, cpuminer or ccminer.
The only difference is you need to know your CPU archietcture and its capabilities. Use google for that.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550314722
Hero Member
*
Offline Offline

Posts: 1550314722

View Profile Personal Message (Offline)

Ignore
1550314722
Reply with quote  #2

1550314722
Report to moderator
1550314722
Hero Member
*
Offline Offline

Posts: 1550314722

View Profile Personal Message (Offline)

Ignore
1550314722
Reply with quote  #2

1550314722
Report to moderator
comchay
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 20, 2017, 01:19:09 AM
 #2862

how to config multi cpu thead. I have 8 cpu core but i want miner 4 core.
Elder III
Sr. Member
****
Offline Offline

Activity: 826
Merit: 270


View Profile
November 20, 2017, 01:36:09 AM
 #2863

how to config multi cpu thead. I have 8 cpu core but i want miner 4 core.

All you have to do is add "-t 4" at the end of your .bat file and it will use 4 threads. If you leave it blank it will use all your CPU has. You can specify anything from 1 to 8 threads this way.

*If you have an 8 core CPU with hyperthreading (or whatever AMD calls it these days) then you actually have 16 threads (AMD Ryzen 7 series for example).
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 20, 2017, 05:08:48 PM
 #2864

A little teaser of what I'm working on. It's only the beginning.

Code:
cpuminer-opt/3.7.3 d=4 keccak 4 27 MH/s

Code:
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU features: SSE2 AES AVX AVX2
SW built on Nov 20 2017 with GCC 4.8.4
SW features: SSE2 AES AVX AVX2
Algo features: SSE2 AVX2
Start mining with SSE2 AVX2

[2017-11-20 11:58:16] Starting Stratum on stratum+tcp://keccak.mine.zpool.ca:5133
[2017-11-20 11:58:16] 8 miner threads started, using 'keccak' algorithm.
[2017-11-20 11:58:16] Stratum difficulty set to 4
 1 nonces submitted
[2017-11-20 11:58:31] Accepted 1/1 (100%), 24.21 MH, 23.45 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:34] Accepted 2/2 (100%), 52.09 MH, 23.61 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:39] Accepted 3/3 (100%), 235.98 MH, 24.21 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:39] Accepted 4/4 (100%), 200.89 MH, 24.21 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:41] Accepted 5/5 (100%), 199.70 MH, 24.19 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:42] Accepted 6/6 (100%), 202.41 MH, 24.19 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:48] Accepted 7/7 (100%), 45.96 MH, 24.20 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:48] Accepted 8/8 (100%), 43.01 MH, 24.21 MH/s, 63C

Code:
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU features: SSE2 AES AVX AVX2
SW built on Nov  4 2017 with GCC 4.8.4
SW features: SSE2 AES AVX AVX2
Algo features: SSE2
Start mining with SSE2

[2017-11-20 11:56:35] Starting Stratum on stratum+tcp://keccak.mine.zpool.ca:5133
[2017-11-20 11:56:35] 8 miner threads started, using 'keccak' algorithm.
[2017-11-20 11:56:35] Stratum difficulty set to 4
[2017-11-20 11:56:54] Accepted 1/1 (100%), 26.41 MH, 7735.68 kH/s, 62C
[2017-11-20 11:57:02] Accepted 2/2 (100%), 44.40 MH, 7736.24 kH/s, 62C
[2017-11-20 11:57:29] Accepted 3/3 (100%), 199.67 MH, 7745.76 kH/s, 62C
[2017-11-20 11:57:36] Accepted 4/4 (100%), 194.64 MH, 7737.53 kH/s, 62C
[2017-11-20 11:58:00] Accepted 5/5 (100%), 220.11 MH, 7741.79 kH/s, 63C
[2017-11-20 11:58:02] Accepted 6/6 (100%), 222.54 MH, 7745.23 kH/s, 63C

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

Activity: 421
Merit: 17


View Profile
November 20, 2017, 09:45:22 PM
 #2865

A little teaser of what I'm working on. It's only the beginning.

Code:
cpuminer-opt/3.7.3 d=4 keccak 4 27 MH/s

Code:
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU features: SSE2 AES AVX AVX2
SW built on Nov 20 2017 with GCC 4.8.4
SW features: SSE2 AES AVX AVX2
Algo features: SSE2 AVX2
Start mining with SSE2 AVX2

[2017-11-20 11:58:16] Starting Stratum on stratum+tcp://keccak.mine.zpool.ca:5133
[2017-11-20 11:58:16] 8 miner threads started, using 'keccak' algorithm.
[2017-11-20 11:58:16] Stratum difficulty set to 4
 1 nonces submitted
[2017-11-20 11:58:31] Accepted 1/1 (100%), 24.21 MH, 23.45 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:34] Accepted 2/2 (100%), 52.09 MH, 23.61 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:39] Accepted 3/3 (100%), 235.98 MH, 24.21 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:39] Accepted 4/4 (100%), 200.89 MH, 24.21 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:41] Accepted 5/5 (100%), 199.70 MH, 24.19 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:42] Accepted 6/6 (100%), 202.41 MH, 24.19 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:48] Accepted 7/7 (100%), 45.96 MH, 24.20 MH/s, 63C
 1 nonces submitted
[2017-11-20 11:58:48] Accepted 8/8 (100%), 43.01 MH, 24.21 MH/s, 63C

Code:
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU features: SSE2 AES AVX AVX2
SW built on Nov  4 2017 with GCC 4.8.4
SW features: SSE2 AES AVX AVX2
Algo features: SSE2
Start mining with SSE2

[2017-11-20 11:56:35] Starting Stratum on stratum+tcp://keccak.mine.zpool.ca:5133
[2017-11-20 11:56:35] 8 miner threads started, using 'keccak' algorithm.
[2017-11-20 11:56:35] Stratum difficulty set to 4
[2017-11-20 11:56:54] Accepted 1/1 (100%), 26.41 MH, 7735.68 kH/s, 62C
[2017-11-20 11:57:02] Accepted 2/2 (100%), 44.40 MH, 7736.24 kH/s, 62C
[2017-11-20 11:57:29] Accepted 3/3 (100%), 199.67 MH, 7745.76 kH/s, 62C
[2017-11-20 11:57:36] Accepted 4/4 (100%), 194.64 MH, 7737.53 kH/s, 62C
[2017-11-20 11:58:00] Accepted 5/5 (100%), 220.11 MH, 7741.79 kH/s, 63C
[2017-11-20 11:58:02] Accepted 6/6 (100%), 222.54 MH, 7745.23 kH/s, 63C

thats a VERY nice improvement!
Can't wait... Smiley

By the way, please consider releasing cross-compiled binaries for windows, they give much better performance that mingw on windows.
I have described the process earlier in the post, but sadly I have could not make neoscrypt work in that build (just crashes every time), probably something in the compile flags or algo settings.
If something is missing in what I posted and you want full instructions for the cross build, just say )

filoozom
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 20, 2017, 09:49:13 PM
 #2866

A pull request has been received to change the dockerfile.

There are 2 changes, one to address an issue with line continuation, but also a change that claims to
reduce the image size.

Since I know very little about docker I defer to the community for review of the change. If there are any
concerns with the change, please raise them. If there are no objections the changes will be included in
the next release.

https://github.com/JayDDee/cpuminer-opt/pull/41
The Docker image could be smaller by using Alpine Linux as the base. Alpine uses libressl by default but also have openssl-1.0.2 in its repo so I'm not sure about any impact on performance.

Yes, it could, but didn't quite manage to compile it on alpine yet. If you have more info, please share!
I just tried compiling but got the error

Code:
In file included from algo/echo/aes_ni/hash.c:21:0:
algo/echo/aes_ni/vperm.h:53:7: note: called from here
  x  = _mm_shuffle_epi8(*((__m128i*)table + 0), x);\
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
algo/echo/aes_ni/hash.c:385:4: note: in expansion of macro 'TRANSFORM'
    TRANSFORM(_state[i][j], _k_opt, t1, t2);
    ^~~~~~~~~
In file included from algo/echo/aes_ni/vperm.h:20:0,
                 from algo/echo/aes_ni/hash.c:21:
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '_mm_shuffle_epi8': target specific option mismatch
 _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
 ^~~~~~~~~~~~~~~~
In file included from algo/echo/aes_ni/hash.c:21:0:
algo/echo/aes_ni/vperm.h:52:5: note: called from here
  t1 = _mm_shuffle_epi8(*((__m128i*)table + 1), t1);\

algo/echo/aes_ni/hash.c:385:4: note: in expansion of macro 'TRANSFORM'
    TRANSFORM(_state[i][j], _k_opt, t1, t2);
    ^~~~~~~~~
source='algo/hodl/aes.c' object='algo/hodl/cpuminer-aes.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I.  -Iyes/include -Iyes/include -fno-strict-aliasing  -I. -Iyes/include -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -g -O2  -Iyes/include -Iyes/include -c -o algo/hodl/cpuminer-aes.o `test -f 'algo/hodl/aes.c' || echo './'`algo/hodl/aes.c
make[2]: *** [Makefile:2491: algo/echo/aes_ni/cpuminer-hash.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/cpuminer-opt'
make[1]: *** [Makefile:3506: all-recursive] Error 1
make[1]: Leaving directory '/cpuminer-opt'
make: *** [Makefile:665: all] Error 2


Got it to compile, you can try filoozom/cpuminer-opt:alpine.
It's quite a bit smaller but also a little bit slower. Also needs a fix in `algo/hodl/sha512_avx.c`.

More info: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-345828950
Help would be appreciated! Smiley
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 20, 2017, 11:28:48 PM
 #2867

Got it to compile, you can try filoozom/cpuminer-opt:alpine.
It's quite a bit smaller but also a little bit slower. Also needs a fix in `algo/hodl/sha512_avx.c`.

More info: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-345828950
Help would be appreciated! Smiley

Endian issues with hodl, I've seen this movie before. I had to write a custom one for Windows.

Can you show me the hodl error? I'd like to see it as it might help find a solution, if there is one.
If it's an Alpine only issue it may be hard to select.

I have a release ready to go, I can include a fix if one is quickly found. It will include the new docker file
regardless.

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
November 20, 2017, 11:44:20 PM
 #2868

thats a VERY nice improvement!
Can't wait... Smiley

By the way, please consider releasing cross-compiled binaries for windows, they give much better performance that mingw on windows.
I have described the process earlier in the post, but sadly I have could not make neoscrypt work in that build (just crashes every time), probably something in the compile flags or algo settings.
If something is missing in what I posted and you want full instructions for the cross build, just say )

I tried a mingw cross compile a few weks ago but had problems. I gave up easily so it must have been serious,
possibly the fact that I have an old build env and was missing some packages or package versions.

However, I'm all in with the 4-way feature and it's going to be a massive amount of work. Keccak is only one of
around 20 functions I need to rewrite. And the keccac algo only needs the keccak hash function. Imagine x17
or xevan.

I will revisit the mingw cross compile but probably not until I upgrade my build system, probably buy a new PC with Ryzen.
In the meantime, if you're up for it, you could manage the Windows binaries. You can build them and host them yourself
or I could put your builds up on my gdrive. I'll certainly use them on my Windows PC.

Neoscrypt has some ASM options but I haven't dug into it. It would be nice to fix it but it's generally a poor performer
so it's not a priority for me.

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
November 21, 2017, 03:01:10 AM
Last edit: November 21, 2017, 02:34:29 PM by joblo
 #2869

cpuminer-opt-3.7.3 is released.

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

tarball: https://drive.google.com/file/d/1Nw-kHZ1bnkEjtuKlOdf3XSh-LNZReH4E/view?usp=sharing

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

New in 3.7.3:

Added polytimos algo

Updated dockerfile

Introducing 4-way AVX2 optimization giving up to 4x performance inprovement
on many compute bound algos. First supported algos: skein, skein2, blake &
keccak. This feature is only available when compiled from source. See
RELEASE_NOTES for instructions how to enable 4-way during compilation
and which algos are currently supported.

Edit: It should be noted that not all algos have been fully tested using 4way.
Skein and keccak have both been tested but I couldn't find a pool for skein2 or blake.

For devs and geeks:

What is 4-way AVX2?

4-way AVX2 uses AVX2 instructions to hash 4 nonces in parallel per CPU thread instead of
just one yielding a theorectical 4x increase. The realized improvement will be lower due
to AVX2 operating at reduced clock speed and some overhead. 4-way AVX2 optimization
uses vertical vectoring similar to GPU miners instead of the existing horizontal vectoring
of some algos. Horizontal vectoring uses AVX2 instructions to hash one nonce faster.

Only CPUs with AVX2 will support 4-way.

Which algos can benefit?

This is the bad news. 4-way will help compute bound algos that use SPH functions the most,
the same algos that already have very efficient GPU miners available, or even ASICS.
They include the entire x11 family as well as more recent algos like hsr and polytimos.

Typical CPU algos will see little benefit as they don't usually rely on SPH or it is only a small
part of the algo.

Hashing 4 nonces in parallel creates the possbility of submitting multiple nonces per scan,
though I haven't seen this in my testing. It will likely be rare but is supported.

What overhead can reduce the gain?

As previously mentioned AVX2 code runs at a reduced CPU clock rate but there is also coding overhead
and workarounds that will affect some algos more than others.

Algos that are pure SPH chains will improve the most. The only overhead is to inlerleave the input data
then deinterleave the vectorized hash.

Some SPH functions work on 32 bit data for their 256 bit versions while other work on 64 bit data for both 512
bit and 256 bit versions. If an algo has a mix of 32 bit and 64 bit data extra interleaving/deinterleaving will be
required. This is not expected to have a significant impact.

Algos that use HW acceleration (AES or SHA) have additional challenges to implement vertical vectoring
and it may be very difficult or possible to implement vertical vectoring on these functions. These
functions will have to be run 4 times serially completely nullifying the benefits of 4-way for those
functions. Oher parts of such algos can use 4-way with intermediate interleaving/deinterleaving.

Algos that already use horizontal vectoring when rewritten for vertical vectoring are not likely to see
any further improvement.

What's the implementation plan?

Around 20 SPH functions need to be rewritten for 4-way but algos only become supported when the entire
function chain is optimized. The shorter chains will be implemented first and the longer ones last. There
is some flexibility in some instances and I can be convinced to modify my initial plan with some motivation.

The pure SPH algos will be done first as they receive the biggest gains. Algos with existing SIMD code or
HW acceleration will be done next with the existing optimizations run serially.

Next are algos that have a portion use SPH. Since SPH is only used for part of the algo the gains will be
limited.

Then I will try to rewrite the functions that use AES_NI to see if they can be improved with 4way.
SHA looks too daunting as it means rewriting openssl.

I may eventually look at rewriting the exiting SIMD optimized functions to work with 4-way. The gains
will be limited due to losing the existing optimizations. It's a matter of hashing 4 nonces in parallel using
vertical vectoring vs hashing 4 nonces serially using horizontal vectoring.

What about the future?

All of the functions that will support 4-way with AVX2 can easilly be extended to 8-way with AVX-512.

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

Activity: 26
Merit: 0


View Profile
November 21, 2017, 06:26:20 AM
 #2870

My super big mining machine ))):
         **********  cpuminer-opt 3.7.3  ***********
     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 Athlon(tm) II X2 260 Processor
CPU features: SSE2
SW built on Nov 21 2017 with GCC 7.2.0
SW features: SSE2
Algo features: SSE2 AES AVX AVX2 SHA
Start mining with SSE2

[2017-11-21 09:11:31] Starting Stratum on stratum+tcp://mine.zpool.ca:6033
[2017-11-21 09:11:32] 2 miner threads started, using 'm7m' algorithm.
[2017-11-21 09:11:33] Stratum difficulty set to 2
[2017-11-21 09:11:36] Accepted 1/1 (100%), 23.84 kH, 12.00 kH/s, 43C
[2017-11-21 09:11:50] Accepted 2/2 (100%), 196.15 kH, 24.75 kH/s, 43C
[2017-11-21 09:11:51] Accepted 3/3 (100%), 126.72 kH, 24.71 kH/s, 43C
[2017-11-21 09:11:52] Accepted 4/4 (100%), 145.40 kH, 25.07 kH/s, 43C
[2017-11-21 09:11:53] Accepted 5/5 (100%), 33.15 kH, 24.74 kH/s, 43C
[2017-11-21 09:11:59] Accepted 6/6 (100%), 99.35 kH, 24.86 kH/s, 43C
[2017-11-21 09:12:03] Accepted 7/7 (100%), 222.69 kH, 25.16 kH/s, 43C

./autogen.sh && CFLAGS="-O3 -march=btver1" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl && make -j2 && strip cpuminer
Manjaro Archlinux
Linux impulse-pc 4.13.14-2-MANJARO #1 SMP PREEMPT Sat Nov 18 14:25:40 UTC 2017 x86_64 GNU/Linux
filoozom
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 21, 2017, 08:05:07 AM
 #2871

Got it to compile, you can try filoozom/cpuminer-opt:alpine.
It's quite a bit smaller but also a little bit slower. Also needs a fix in `algo/hodl/sha512_avx.c`.

More info: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-345828950
Help would be appreciated! Smiley

Endian issues with hodl, I've seen this movie before. I had to write a custom one for Windows.

Can you show me the hodl error? I'd like to see it as it might help find a solution, if there is one.
If it's an Alpine only issue it may be hard to select.

I have a release ready to go, I can include a fix if one is quickly found. It will include the new docker file
regardless.


Posted it on GitHub, but guess you're more active here? By the way, this can easily be fixed by adding "#include <endian.h>", just need to know in which case ("#ifnfed") I need to include it.

Code:
algo/hodl/cpuminer-sha512_avx.o: In function `sha512Compute32b_parallel':
sha512_avx.c:(.text+0x369a): undefined reference to `htobe64'
sha512_avx.c:(.text+0x36c8): undefined reference to `htobe64'

Also:

Code:
/usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libssl.so.43, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../lib/libcurl.so, may conflict with libssl.so.1.0.0
/usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libcrypto.so.41, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../lib/libcurl.so, may conflict with libcrypto.so.1.0.0

But that's only a warning.
There are A LOT of warnings actually.
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 21, 2017, 02:31:38 PM
 #2872

Got it to compile, you can try filoozom/cpuminer-opt:alpine.
It's quite a bit smaller but also a little bit slower. Also needs a fix in `algo/hodl/sha512_avx.c`.

More info: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-345828950
Help would be appreciated! Smiley

Endian issues with hodl, I've seen this movie before. I had to write a custom one for Windows.

Can you show me the hodl error? I'd like to see it as it might help find a solution, if there is one.
If it's an Alpine only issue it may be hard to select.

I have a release ready to go, I can include a fix if one is quickly found. It will include the new docker file
regardless.


Posted it on GitHub, but guess you're more active here? By the way, this can easily be fixed by adding "#include <endian.h>", just need to know in which case ("#ifnfed") I need to include it.

Code:
algo/hodl/cpuminer-sha512_avx.o: In function `sha512Compute32b_parallel':
sha512_avx.c:(.text+0x369a): undefined reference to `htobe64'
sha512_avx.c:(.text+0x36c8): undefined reference to `htobe64'

Also:

Code:
/usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libssl.so.43, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../lib/libcurl.so, may conflict with libssl.so.1.0.0
/usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libcrypto.so.41, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.3.0/../../../../lib/libcurl.so, may conflict with libcrypto.so.1.0.0

But that's only a warning.
There are A LOT of warnings actually.

That hodl error is familiar. If <endian.h> works it may solve the issue that also required the custom version I wrote for Windows.
If Alpine is a special case I don't know how to test for it. I'll look into it for he next release.

The ssl warnings might be related to your old version of oenssl. My system has openssl-1.0.1. If you can you should upgrade to 1.1,
it will give better performance on algos that use sha256 even if it doesn't fix the warnings.

Yes there are a lot of warnings. Some are my own doing and I try to keep them under control. But there are also a bunch related to
 the hashing macros and i don't want to touch those macros. Fortunately 4way will make them obsolete and I will be able
to remove them.

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

Activity: 11
Merit: 0


View Profile
November 21, 2017, 04:22:48 PM
 #2873

Maybe this could be useful: https://gist.github.com/panzi/6856583.
Also, any particular reason you don't merge PRs?

The openssl version on Alpine is actually 1.0.2m, not 1.0.0, no idea why there is a conflict with an old version.
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 21, 2017, 05:16:27 PM
 #2874

Maybe this could be useful: https://gist.github.com/panzi/6856583.
Also, any particular reason you don't merge PRs?

The openssl version on Alpine is actually 1.0.2m, not 1.0.0, no idea why there is a conflict with an old version.

Thanks I'll look into it.

I don't develop using git. I develop in my own confort zone and upload to git when ready fo release. If I merge
a PR it messes up MY development environment. It's easier for me to import the changes to my env.

Also most everything, git, autoconf, x86, even to some extent c, are all foreign to me and I just hack my way through.
I'm learning as I go. Even my vector processing knowledge is based on 1980's tech (Cray). I even knew about OO in
the 80s before it was called OO. It took me a while to make the connection when OO became popular.

So in a sense I'm working in a foreign country with unfamiliar culture and different language. It's a fascinating
experience, I just have to manage my frustration with the many stupid mistakes I make.

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

Activity: 11
Merit: 0


View Profile
November 21, 2017, 05:25:34 PM
 #2875

Maybe this could be useful: https://gist.github.com/panzi/6856583.
Also, any particular reason you don't merge PRs?

The openssl version on Alpine is actually 1.0.2m, not 1.0.0, no idea why there is a conflict with an old version.

Thanks I'll look into it.

I don't develop using git. I develop in my own confort zone and upload to git when ready fo release. If I merge
a PR it messes up MY development environment. It's easier for me to import the changes to my env.

Also most everything, git, autoconf, x86, even to some extent c, are all foreign to me and I just hack my way through.
I'm learning as I go. Even my vector processing knowledge is based on 1980's tech (Cray). I even knew about OO in
the 80s before it was called OO. It took me a while to make the connection when OO became popular.

So in a sense I'm working in a foreign country with unfamiliar culture and different language. It's a fascinating
experience, I just have to manage my frustration with the many stupid mistakes I make.


No problem. Hit me up if I can somehow help, I'm not that familiar with those technologies either but I'd like to help and learn Smiley
By the way, I posted a few benchmarks on GitHub to see from which algorithms the speed difference between Alpine and Ubuntu comes.

Just posting a link because I don't really want to re-create the table here: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-346017309
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 21, 2017, 08:17:48 PM
 #2876


No problem. Hit me up if I can somehow help, I'm not that familiar with those technologies either but I'd like to help and learn Smiley
By the way, I posted a few benchmarks on GitHub to see from which algorithms the speed difference between Alpine and Ubuntu comes.

Just posting a link because I don't really want to re-create the table here: https://github.com/JayDDee/cpuminer-opt/pull/41#issuecomment-346017309

I commented about the benchmarks.

I had wanted to give a try at cuda dev but the learning curve was steep and resources (ie documentation) are expensive.
CPU mining isn't very lucrative but I can better transfer my skills when I can google anything that stumps me.


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

Activity: 448
Merit: 4

MindMiner developer


View Profile WWW
November 21, 2017, 08:41:11 PM
 #2877

Hello!

Please, fix it:

         **********  cpuminer-opt 3.7.3  ***********
     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: Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
CPU features: SSE2 AES AVX AVX2
SW built on Nov 20 2017 with GCC 4.8.3
SW features: SSE2 AES AVX AVX2
Algo features: SSE2 AES AVX AVX2
Start mining with SSE2 AES AVX2

[2017-11-21 23:40:16] Starting Stratum on stratum+tcp://hodl.eu.nicehash.com:3352
[2017-11-21 23:40:16] 4 miner threads started, using 'hodl' algorithm.
[2017-11-21 23:40:16] stratum_recv_line failed
[2017-11-21 23:40:16] ...retry after 10 seconds
[2017-11-21 23:40:26] stratum_recv_line failed
[2017-11-21 23:40:27] ...retry after 10 seconds
[2017-11-21 23:40:37] stratum_recv_line failed
[2017-11-21 23:40:39] ...retry after 10 seconds





MindMiner - miner manager programm with autoswitch between Algos&Polls.
This isnt a fork based on MultiPoolMiner (Nemos, SniffDog, Mega, NPlus & etc)
spider703
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
November 21, 2017, 11:00:51 PM
 #2878

This is a problem for nacehash and not in the program
Этo пpoблeмa нaйca, a нe пpoгpaммы

BTC - 1ETPsixbwuDNJH5XvDb3kMrCr69ZFePSdK ETH - 0xDd48FE784Ac7d4e39C8cEE96BF0dB5269753b22E
LTC - LL5d4Nk5CuLy8vRRH2iD4sYq8eRdiamG7H  paypal.me/spider703 write to me https://t.me/spider703
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
November 22, 2017, 12:14:06 AM
 #2879

When there are no orders to mine Nicehash disconnects.

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

Activity: 448
Merit: 4

MindMiner developer


View Profile WWW
November 22, 2017, 06:43:42 AM
 #2880

thanks

MindMiner - miner manager programm with autoswitch between Algos&Polls.
This isnt a fork based on MultiPoolMiner (Nemos, SniffDog, Mega, NPlus & etc)
Pages: « 1 ... 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 »
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
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!