Giter VIP home page Giter VIP logo

cpuminer-opt's Introduction

cpuminer-opt is a fork of cpuminer-multi by TPruvot with optimizations imported from other miners developped by lucas Jones, djm34, Wolf0, pooler, Jeff garzik, ig0tik3d, elmad, palmd, and Optiminer, with additional optimizations by Jay D Dee.

All of the code is believed to be open and free. If anyone has a claim to any of it post your case in the cpuminer-opt Bitcoin Talk forum or by email.

Miner programs are often flagged as malware by antivirus programs. This is a false positive, they are flagged simply because they are cryptocurrency miners. The source code is open for anyone to inspect. If you don't trust the software, don't use it.

New thread:

https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575

Old thread:

https://bitcointalk.org/index.php?topic=1326803.0

mailto://[email protected]

This note is to confirm that bitcointalk users JayDDee and joblo are the same person.

I created a new BCT user JayDDee to match my github user id. The old thread has been locked but still contains useful information for reading.

See file RELEASE_NOTES for change log and INSTALL_LINUX or INSTALL_WINDOWS for compile instructions.

Requirements

  1. A x86_64 architecture CPU with a minimum of SSE2 support. This includes Intel Core2 and newer and AMD equivalents. Further optimizations are available on some algoritms for CPUs with AES, AVX, AVX2, SHA, AVX512 and VAES.

32 bit CPUs are not supported. Other CPU architectures such as ARM, Raspberry Pi, RISC-V, Xeon Phi, etc, are not supported.

Mobile CPUs like laptop computers are not recommended because they aren't designed for extreme heat of operating at full load for extended periods of time.

Older CPUs and ARM architecture may be supported by cpuminer-multi by TPruvot.

  1. 64 bit Linux or Windows OS. Ubuntu and Fedora based distributions, including Mint and Centos, are known to work and have all dependencies in their repositories. Others may work but may require more effort. Older versions such as Centos 6 don't work due to missing features.

Windows 7 or newer is supported with mingw_w64 and msys or using the pre-built binaries. WindowsXP 64 bit is YMMV.

FreeBSD is not actively tested but should work, YMMV. MacOS, OSx and Android are not supported.

  1. Stratum pool supporting stratum+tcp:// or stratum+ssl:// protocols or RPC getwork using http:// or https://. GBT is YMMV.

Supported Algorithms

                      allium        Garlicoin
                      anime         Animecoin
                      argon2        Argon2 coin (AR2)
                      argon2d250    argon2d-crds, Credits (CRDS)
                      argon2d500    argon2d-dyn,  Dynamic (DYN)
                      argon2d4096   argon2d-uis, Unitus, (UIS)
                      blake         Blake-256
                      blake2b       Blake2-512
                      blake2s       Blake2-256
                      blakecoin     blake256r8
                      bmw           BMW 256
                      bmw512        BMW 512
                      c11           
                      decred
                      deep          Deepcoin (DCN)
                      dmd-gr        Diamond-Groestl
                      groestl       Groestl coin
                      hex           x16r-hex
                      hmq1725       
                      jha           Jackpotcoin
                      keccak        Maxcoin
                      keccakc       Creative coin
                      lbry          LBC, LBRY Credits
                      lyra2h        
                      lyra2re       lyra2
                      lyra2rev2     lyra2v2
                      lyra2rev3     lyrav2v3
                      lyra2z        
                      lyra2z330     
                      m7m           
                      minotaur 
                      minotaurx
                      myr-gr        Myriad-Groestl
                      neoscrypt     NeoScrypt(128, 2, 1)
                      nist5         Nist5
                      pentablake    Pentablake
                      phi1612       phi
                      phi2          
                      polytimos     Ninja
                      power2b       MicroBitcoin (MBC)
                      quark         Quark
                      qubit         Qubit
                      scrypt        scrypt(1024, 1, 1) (default)
                      scrypt:N      scrypt(N, 1, 1)
                      scryptn2      scrypt(1048576, 1, 1)
                      sha256d       Double SHA-256
                      sha256dt
                      sha256q       Quad SHA-256
                      sha256t       Triple SHA-256
                      sha3d         Double keccak256 (BSHA3)
                      sha512256d
                      skein         Skein+Sha (Skeincoin)
                      skein2        Double Skein (Woodcoin)
                      skunk         Signatum (SIGT)
                      sonoa         Sono
                      timetravel    Machinecoin (MAC)
                      timetravel10  Bitcore
                      tribus        Denarius (DNR)
                      vanilla       blake256r8vnl (VCash)
                      veltor        (VLT)
                      verthash      Vertcoin
                      whirlpool
                      whirlpoolx
                      x11           Dash
                      x11evo        Revolvercoin
                      x11gost       sib (SibCoin)
                      x12           
                      x13           
                      x13bcd        bcd
                      x13sm3        hsr (Hshare)
                      x14           
                      x15           
                      x16r          
                      x16rv2        
                      x16rt         
                      x16rt-veil    veil
                      x16s          
                      x17
                      x20r
                      x21s
                      x22i
                      x25x
                      xevan         Bitsend (BSD)
                      yescrypt      Globalboost-Y (BSTY)
                      yescryptr8    BitZeny (ZNY)
                      yescryptr8g   Koto (KOTO)
                      yescryptr16   Eli
                      yescryptr32   WAVI
                      yespower      Cryply
                      yespowerr16   Yenten (YTN)
                      yespower-b2b  generic yespower + blake2b
                      zr5           Ziftr

Many variations of scrypt based algos can be mine by specifying their parameters:

scryptn2: --algo scrypt --param-n 1048576

cpupower: --algo yespower --param-key "CPUpower: The number of CPU working or available for proof-of-work mining"

power2b: --algo yespower-b2b --param-n 2048 --param-r 32 --param-key "Now I am become Death, the destroyer of worlds"

sugarchain: --algo yespower --param-n 2048 -param-r 32 --param-key "Satoshi Nakamoto 31/Oct/2008 Proof-of-work is essentially one-CPU-one-vote"

yespoweriots: --algo yespower --param-n 2048 --param-key "Iots is committed to the development of IOT"

yespowerlitb: --algo yespower --param-n 2048 --param-r 32 --param-key "LITBpower: The number of LITB working or available for proof-of-work mini"

yespoweric: --algo yespower --param-n 2048 --param-r 32 --param-key "IsotopeC"

yespowerurx: --algo yespower --param-n 2048 --param-r 32 --param-key "UraniumX"

yespowerltncg: --algo yespower --param-n 2048 --param-r 32 --param-key "LTNCGYES"

Errata

Old algorithms that are no longer used frequently will not have the latest optimizations.

Cryptonight and variants are no longer supported, use another miner.

Neoscrypt crashes on Windows, use legacy version.

AMD CPUs older than Piledriver, including Athlon x2 and Phenom II x4, are not supported by cpuminer-opt due to an incompatible implementation of SSE2 on these CPUs. Some algos may crash the miner with an invalid instruction. Users are recommended to use an unoptimized miner such as cpuminer-multi.

cpuminer-opt does not work mining Decred algo at Nicehash and produces only "invalid extranonce2 size" rejects.

Benchmark testing does not work for x11evo.

Bugs

Users are encouraged to post their bug reports using git issues or on the Bitcoin Talk forum or opening an issue in git:

https://bitcointalk.org/index.php?topic=1326803.0

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

All problem reports must be accompanied by a proper problem definition. This should include how the problem occurred, the command line and output from the miner showing the startup messages and any errors. A history is also useful, ie did it work before.

Donations

cpuminer-opt has no fees of any kind but donations are accepted.

BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

Happy mining!

cpuminer-opt's People

Contributors

jayddee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpuminer-opt's Issues

Can't compile in OpenSuse AArch64

I'm trying to compile it using OpenSuse AArch64 with a Raspberry Pi 3.
The architecture seems not to be predicted, and it is trying some default architecture maybe?

The gcc seems ok, and at some point when compiling it returns:

Checking weather the C compiler works ... No

set threads?

how do I set the number of threads to use? there isn't a list of command line arguments so I don't know. thanks in advance

Windows: Ten Thread Limit

Try as I might, I've not been able to get cpuminer-opt to compile successfully in either MSYS or MSYS2. I was hoping that I could recompile and get past the ten thread limit that is part of the Windows binary (Linux has no limitation).

Max temp option for windows

In the help menu, there is a note that says linux next to the description of the option of limiting the miner based on a max temperature. Why is this not supported for Windows and is there a chance it will be in the future?

Library build - switch to cmake?

I'd like to use cpuminer-opt as a library in a Go program. This would require the following:

  • cpu-miner needs to be split in executable and "library" files
  • The build system needs to be updated to produce a library than is then statically linked into the executable

It seems that there are both automake and VS solution files. Did you ever consider switching to cmake? It is compiler-agnostic and can output both makefiles and VS solutions. According to the comments on this SO question, cmake seems to have much better Windows support in general, along with many other advantages. Personally I don't have a clue, I barely know C.

But I'd like to make this happen, and since this would require redoing much of the build, it seems to make sense to unify the build tools as well.

Thoughts?

Better documentation - how to compile on Linux

I am looking for how to compile it on Ubuntu as your release does not offer Linux binary. There is no guide, dependencies needed for it. (Planning to dockerize it as well.)

Can you add basic steps in README.md to show us how to build this miner on Linux?

algo timetravel10 something the matter

cpuminer-opt 3.6.7 use timetravel10 algo
cpuminer-aes-avx2.exe has stopped working and a problem has occurred causing the program to stop working.
What's the problem, please? How can it be solved?

raspberry pi 2/3 support?

is there any planned raspberry pi 2 or 3 support?

When I run the build script on an RPI using Jaspbian it gets pretty far and then fails at

mv -f algo/heavy/.deps/cpuminer-heavy.Tpo algo/heavy/.deps/cpuminer-heavy.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -Iyes/include -fno-strict-aliasing  -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -O3 -march=native -Wall  -Iyes/include -MT algo/cpuminer-lbry.o -MD -MP -MF algo/.deps/cpuminer-lbry.Tpo -c -o algo/cpuminer-lbry.o `test -f 'algo/lbry.c' || echo './'`algo/lbry.c
Makefile:2559: recipe for target 'algo/heavy/cpuminer-bastion.o' failed
make[2]: *** [algo/heavy/cpuminer-bastion.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f algo/jh/.deps/cpuminer-jha.Tpo algo/jh/.deps/cpuminer-jha.Po
Makefile:2573: recipe for target 'algo/cpuminer-hmq1725.o' failed
make[2]: *** [algo/cpuminer-hmq1725.o] Error 1
mv -f algo/.deps/cpuminer-lbry.Tpo algo/.deps/cpuminer-lbry.Po
make[2]: Leaving directory '/root/cpuminer-opt'
Makefile:3436: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/cpuminer-opt'
Makefile:651: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file
root@blueberry-yum-yum:~/cpuminer-opt#

sudo apt-get -y install build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev libssl-dev libgmp-dev
git clone https://github.com/JayDDee/cpuminer-opt
cd cpuminer-opt
./autogen.sh
./build.sh

--max-temp has no effect

Just getting into trying this out. Works great for the most part, but running the miner with the --max-temp option and argument has no effect at all. The CPU will overheat to the point that it shuts my laptop down which is a good thing, instead of having it catch on fire.

This is running on an Intel I5 M560. I tried the upstream cpuminer-multi project, compiled with identical build options, and that does does respect the --max-temp option.

Compiling under MacOS

Hi guys, I'm trying to run the miner under MacOS, but it won't compile with the following errors:
In file included from algo/timetravel.c:7: ./avxdefs.h:234:25: error: index for __builtin_shufflevector must be a constant integer return _mm_or_si128( _mm_srli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2891:12: note: expanded from macro '_mm_srli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel.c:7: ./avxdefs.h:235:25: error: index for __builtin_shufflevector must be a constant integer _mm_slli_si128( s1, 16 - (n<<2) ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2656:12: note: expanded from macro '_mm_slli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel.c:7: ./avxdefs.h:234:25: error: passing 'void' to parameter of incompatible type '__m128i' (vector of 2 'long long' values) return _mm_or_si128( _mm_srli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2890:32: note: expanded from macro '_mm_srli_si128' #define _mm_srli_si128(a, imm) __extension__ ({ \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2615:22: note: passing argument to parameter '__a' here _mm_or_si128(__m128i __a, __m128i __b) ^ In file included from algo/timetravel.c:7: ./avxdefs.h:240:25: error: index for __builtin_shufflevector must be a constant integer return _mm_or_si128( _mm_slli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2656:12: note: expanded from macro '_mm_slli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel.c:7: ./avxdefs.h:241:25: error: index for __builtin_shufflevector must be a constant integer _mm_srli_si128( s1, 16 - (n<<2) ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2891:12: note: expanded from macro '_mm_srli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel.c:7: ./avxdefs.h:240:25: error: passing 'void' to parameter of incompatible type '__m128i' (vector of 2 'long long' values) return _mm_or_si128( _mm_slli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2655:32: note: expanded from macro '_mm_slli_si128' #define _mm_slli_si128(a, imm) __extension__ ({ \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2615:22: note: passing argument to parameter '__a' here _mm_or_si128(__m128i __a, __m128i __b) ^ 6 errorsmv -f algo/.deps/cpuminer-pluck.Tpo algo/.deps/cpuminer-pluck.Po generated. make[2]: *** [algo/cpuminer-timetravel.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from algo/timetravel10.c:7: ./avxdefs.h:234:25: error: index for __builtin_shufflevector must be a constant integer return _mm_or_si128( _mm_srli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2891:12: note: expanded from macro '_mm_srli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel10.c:7: ./avxdefs.h:235:25: error: index for __builtin_shufflevector must be a constant integer _mm_slli_si128( s1, 16 - (n<<2) ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2656:12: note: expanded from macro '_mm_slli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel10.c:7: ./avxdefs.h:234:25: error: passing 'void' to parameter of incompatible type '__m128i' (vector of 2 'long long' values) return _mm_or_si128( _mm_srli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2890:32: note: expanded from macro '_mm_srli_si128' #define _mm_srli_si128(a, imm) __extension__ ({ \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2615:22: note: passing argument to parameter '__a' here _mm_or_si128(__m128i __a, __m128i __b) ^ In file included from algo/timetravel10.c:7: ./avxdefs.h:240:25: error: index for __builtin_shufflevector must be a constant integer return _mm_or_si128( _mm_slli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2656:12: note: expanded from macro '_mm_slli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel10.c:7: ./avxdefs.h:241:25: error: index for __builtin_shufflevector must be a constant integer _mm_srli_si128( s1, 16 - (n<<2) ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2891:12: note: expanded from macro '_mm_srli_si128' (__m128i)__builtin_shufflevector( \ ^ In file included from algo/timetravel10.c:7: ./avxdefs.h:240:25: error: passing 'void' to parameter of incompatible type '__m128i' (vector of 2 'long long' values) return _mm_or_si128( _mm_slli_si128( s0, n<<2 ), ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2655:32: note: expanded from macro '_mm_slli_si128' #define _mm_slli_si128(a, imm) __extension__ ({ \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/emmintrin.h:2615:22: note: passing argument to parameter '__a' here _mm_or_si128(__m128i __a, __m128i __b)

Could you please help me with resolving these? I can investigate the problem if you point me in the right direction.
I've installed all the dependencies with macports and brew, what am I missing?

"Reject reason: low difficulty share". lyra2z || cpuminer-4way.exe || ryzen 1600 cpu

I'm using your cpuminer-4way.exe via MultiPoolMiner on my ryzen 1600 cpu.

Here is the introductory text it give me.

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

[2018-01-01 00:17:59] Algo lyra2z has not been tested using 4way. It may not
[2018-01-01 00:17:59] work or may be slower. Please report your results.
CPU: AMD Ryzen 5 1600 Six-Core Processor            .
SW built on Dec  8 2017 with GCC 4.8.3.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2 4WAY.
Algo features: AVX AVX2 4WAY.
Start mining with AVX2 4WAY.

It starts up on all 12 threads, and seems to run well enough, but it constantly rejects my work, and then reduces the factory by 1/3:

found 2
[2018-01-01 00:34:23] 4 WAY hash 1 nonce submitted
[2018-01-01 00:35:07] Rejected 4/4 (100.0%), 29.49 MH, 526.00 kH/s
[2018-01-01 00:35:07] reject reason: low difficulty share of 7.605096806103971e-8
[2018-01-01 00:35:07] factor reduced to : 0.20

Mostly, I'm wondering who to talk to to get things sorted out. I guess these are my questions :

  • Should I just be using a different .exe? MultiPoolMiner decided this one had the highest hash rate, but if the work is all invalid, then it's clearly not the best option.
  • Is it a problem with the compilation flags with this being an AMD chip (I wasn't sure about the CPU/SW features not matching up)?
  • Is this a problem with the miner giving invalid work? the 100% rejection rate makes it feel like it is not doing the right thing.
  • Is there a argument I could pass in for the starting factor to < .20 if that is the real problem? (I wonder if that is just a symptom?)
  • Is this more of a problem with me talking to the server (stratum+tcp://us-east.lyra2z-hub.miningpoolhub.com:20581)
  • You mentioned that the lyra2 algo hasn't been tested with the 4-way. How would you like me to report my results?
  • Would updating to 3.7.8 help at all?
  • Is there any other information that I could provide you to help?

Error compiling OSx Sierra.

./build.sh
make: *** No rule to make target distclean'. Stop. clean configure.ac:15: installing './compile' configure.ac:4: installing './config.guess' configure.ac:4: installing './config.sub' configure.ac:9: installing './install-sh' configure.ac:9: installing './missing' Makefile.am: installing './depcomp' checking build system type... x86_64-apple-darwin16.6.0 checking host system type... x86_64-apple-darwin16.6.0 checking target system type... x86_64-apple-darwin16.6.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether gcc needs -traditional... no checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking whether le16dec is declared... no checking whether le16enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking whether we can compile AVX code... yes checking whether we can compile XOP code... yes checking whether we can compile AVX2 code... yes checking for json_loads in -ljansson... no checking for pthread_create in -lpthread... yes checking whether __uint128_t is supported... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating cpuminer-config.h config.status: executing depfiles commands /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in compat Making all in jansson depbase=echo dump.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT dump.o -MD -MP -MF $depbase.Tpo -c -o dump.o dump.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo error.o | sed 's|[^/]$|.deps/&amp;|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT error.o -MD -MP -MF $depbase.Tpo -c -o error.o error.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo hashtable.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT hashtable.o -MD -MP -MF $depbase.Tpo -c -o hashtable.o hashtable.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo load.o | sed 's|[^/]$|.deps/&amp;|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT load.o -MD -MP -MF $depbase.Tpo -c -o load.o load.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo memory.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT memory.o -MD -MP -MF $depbase.Tpo -c -o memory.o memory.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo pack_unpack.o | sed 's|[^/]$|.deps/&amp;|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT pack_unpack.o -MD -MP -MF $depbase.Tpo -c -o pack_unpack.o pack_unpack.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo strbuffer.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT strbuffer.o -MD -MP -MF $depbase.Tpo -c -o strbuffer.o strbuffer.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo strconv.o | sed 's|[^/]$|.deps/&amp;|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT strconv.o -MD -MP -MF $depbase.Tpo -c -o strconv.o strconv.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo utf.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT utf.o -MD -MP -MF $depbase.Tpo -c -o utf.o utf.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo value.o | sed 's|[^/]$|.deps/&amp;|;s|.o$||';\ gcc -DHAVE_CONFIG_H -I. -I../.. -Iyes/include -O3 -march=native -Wall -Iyes/include -MT value.o -MD -MP -MF $depbase.Tpo -c -o value.o value.c &&\ mv -f $depbase.Tpo $depbase.Po rm -f libjansson.a ar cru libjansson.a dump.o error.o hashtable.o load.o memory.o pack_unpack.o strbuffer.o strconv.o utf.o value.o ranlib libjansson.a make[3]: Nothing to be done for all-am'.
gcc -DHAVE_CONFIG_H -I. -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast -O3 -march=native -Wall -Iyes/include -MT cpuminer-cpu-miner.o -MD -MP -MF .deps/cpuminer-cpu-miner.Tpo -c -o cpuminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c
gcc -DHAVE_CONFIG_H -I. -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast -O3 -march=native -Wall -Iyes/include -MT cpuminer-util.o -MD -MP -MF .deps/cpuminer-util.Tpo -c -o cpuminer-util.o test -f 'util.c' || echo './'util.c
g++ -DHAVE_CONFIG_H -I. -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -std=gnu++11 -MT cpuminer-uint256.o -MD -MP -MF .deps/cpuminer-uint256.Tpo -c -o cpuminer-uint256.o test -f 'uint256.cpp' || echo './'uint256.cpp
gcc -DHAVE_CONFIG_H -I. -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast -O3 -march=native -Wall -Iyes/include -MT cpuminer-api.o -MD -MP -MF .deps/cpuminer-api.Tpo -c -o cpuminer-api.o test -f 'api.c' || echo './'api.c
cpu-miner.c:40:10: fatal error: 'openssl/sha.h' file not found
#include <openssl/sha.h>
^
1 error generated.
util.c:107:4: warning: implicit declaration of function 'syslog' is invalid in
C99 [-Wimplicit-function-declaration]
syslog(prio, "%s", buf);
^
util.c:406:6: warning: unused variable 'tcp_keepidle' [-Wunused-variable]
int tcp_keepidle = 50;
^
util.c:1901:2: warning: implicit declaration of function 'cpu_bestfeature' is
invalid in C99 [-Wimplicit-function-declaration]
cpu_bestfeature(arch, 16);
^
make[2]: *** [cpuminer-cpu-miner.o] Error 1
make[2]: *** Waiting for unfinished jobs....
api.c:30:10: fatal error: 'openssl/sha.h' file not found
#include <openssl/sha.h>
^
1 error generated.
make[2]: *** [cpuminer-api.o] Error 1
3 warnings generated.
mv -f .deps/cpuminer-util.Tpo .deps/cpuminer-util.Po
mv -f .deps/cpuminer-uint256.Tpo .deps/cpuminer-uint256.Po
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open: cpuminer (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: no files specified

No confirmation of shares submitted

Hi, not sure if this is an issue or anything, but I'm using this on an Ubuntu setup and it's not giving me the "yay" signal for anything as something being submitted. Is this going on in the background or did I perhaps not set something up right? I could really use some help if so. Thanks.

Ubuntu 16.04 got segment fault.

cpuminer-opt git/master*  13s
❯ ./cpuminer -a lyra2z -o stratum+tcp://xzc-cn.suprnova.cc:1598 -u myuser.myworker -p mypasswd

         **********  cpuminer-opt 3.6.5  ***********
     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 Xeon E312xx (Sandy Bridge)
CPU features: SSE2 AES AVX
SW built on Jun 17 2017 with GCC 5.4.0
SW features: SSE2 AES AVX
Algo features: SSE2 AES AVX AVX2
Start mining with SSE2 AES AVX

[2017-06-17 21:42:55] Starting Stratum on stratum+tcp://xzc-cn.suprnova.cc:1598
[1]    7008 segmentation fault (core dumped)  ./cpuminer -a lyra2z -o stratum+tcp://xzc-cn.suprnova.cc:1598 -u myuser.myworker

gdb coredump file

cpuminer-opt git/master*
❯ gdb cpuminer /tmp/core-cpuminer-5650-upm22-1497706771                               ubuntu@upm22
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from cpuminer...(no debugging symbols found)...done.
[New LWP 5652]
[New LWP 5650]
[New LWP 5651]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./cpuminer -a lyra2z -o stratum+tcp://xzc-cn.suprnova.cc:1598 -u Akagi201.ak01'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f76c1c7ba30 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
[Current thread is 1 (Thread 0x7f76bb327700 (LWP 5652))]
(gdb) bt
#0  0x00007f76c1c7ba30 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#1  0x00007f76c1c7cffa in curl_maprintf () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#2  0x00007f76c1ca1976 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#3  0x00007f76c1c7a014 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#4  0x00007f76c1c8b073 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#5  0x00007f76c1c8ba96 in curl_multi_perform () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#6  0x00007f76c1c8275b in curl_easy_perform () from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
#7  0x000000000040f9f7 in ?? ()
#8  0x0000000000406595 in ?? ()
#9  0x00007f76c18336ba in start_thread (arg=0x7f76bb327700) at pthread_create.c:333
#10 0x00007f76c081a82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

attach file is my coredump file and cpuminer binary file.

Archive.zip

ubuntu on nicehash stratum_recv_line failed

This repo used to work on ubuntu on nicehash

Recently started receiving the following

[2017-05-23 21:47:31] stratum_recv_line failed
[2017-05-23 21:47:31] Stratum connection interrupted

Any ideas? I also opened a case with nicehash

CPU limit

Hi, how to limit the load on all processors 50-75%?

stratum_recv_line failed

When I do GPU mining it does not this, only CPU:

[2017-10-22 18:07:58] stratum_recv_line failed
[2017-10-22 18:07:58] Stratum connection interrupted

[2017-10-22 18:07:58] Stratum difficulty set to 512
[2017-10-22 18:07:58] Stratum difficulty set to 128 (1.00000)
[2017-10-22 18:07:58] Stratum difficulty set to 512 (4.00000)
[2017-10-22 18:10:58] Stratum difficulty set to 256
[2017-10-22 18:12:21] Accepted 1/1 (100%), 185.89 MH, 7259.75 kH/s
[2017-10-22 18:13:58] Stratum difficulty set to 128
[2017-10-22 18:18:38] Accepted 2/2 (100%), 64.78 MH, 7270.72 kH/s
[2017-10-22 18:20:19] Stratum difficulty set to 128
[2017-10-22 18:22:19] Stratum difficulty set to 128
[2017-10-22 18:25:01] Stratum difficulty set to 128
[2017-10-22 18:27:58] stratum_recv_line failed
[2017-10-22 18:27:58] Stratum connection interrupted
[2017-10-22 18:27:59] Stratum difficulty set to 512
[2017-10-22 18:27:59] Stratum difficulty set to 128 (1.00000)
[2017-10-22 18:27:59] Stratum difficulty set to 512 (4.00000)
[2017-10-22 18:28:00] Stratum difficulty set to 512
[2017-10-22 18:30:58] Stratum difficulty set to 256
[2017-10-22 18:33:58] Stratum difficulty set to 128
[2017-10-22 18:37:58] stratum_recv_line failed
[2017-10-22 18:37:58] Stratum connection interrupted

[2017-10-22 18:37:59] Stratum difficulty set to 512
[2017-10-22 18:37:59] Stratum difficulty set to 128 (1.00000)
[2017-10-22 18:37:59] Stratum difficulty set to 512 (4.00000)
[2017-10-22 18:40:59] Stratum difficulty set to 256
[2017-10-22 18:43:59] Stratum difficulty set to 128
[2017-10-22 18:47:40] Accepted 3/3 (100%), 416.93 MH, 7260.40 kH/s
[2017-10-22 18:50:33] Stratum difficulty set to 128
[2017-10-22 18:51:10] Stratum difficulty set to 128
[2017-10-22 18:55:24] Stratum difficulty set to 128
[2017-10-22 18:57:59] stratum_recv_line failed
[2017-10-22 18:57:59] Stratum connection interrupted

[2017-10-22 18:57:59] Stratum difficulty set to 512
[2017-10-22 18:57:59] Stratum difficulty set to 128 (1.00000)
[2017-10-22 18:57:59] Stratum difficulty set to 512 (4.00000)
[2017-10-22 19:00:59] Stratum difficulty set to 256
[2017-10-22 19:03:59] Stratum difficulty set to 128
[2017-10-22 19:07:59] stratum_recv_line failed
[2017-10-22 19:07:59] Stratum connection interrupted

[2017-10-22 19:07:59] Stratum difficulty set to 512
[2017-10-22 19:07:59] Stratum difficulty set to 128 (1.00000)
[2017-10-22 19:07:59] Stratum difficulty set to 512 (4.00000)
[2017-10-22 19:10:59] Stratum difficulty set to 256
[2017-10-22 19:13:59] Stratum difficulty set to 128
[2017-10-22 19:15:42] Accepted 4/4 (100%), 292.09 MH, 7263.02 kH/s
[2017-10-22 19:21:38] Accepted 5/5 (100%), 227.37 MH, 7264.20 kH/s
[2017-10-22 19:37:59] stratum_recv_line failed
[2017-10-22 19:37:59] Stratum connection interrupted

[2017-10-22 19:38:00] Stratum difficulty set to 512
[2017-10-22 19:38:00] Stratum difficulty set to 128 (1.00000)
[2017-10-22 19:38:00] Stratum difficulty set to 512 (4.00000)
[2017-10-22 19:38:18] Stratum difficulty set to 512
[2017-10-22 19:39:32] Accepted 6/6 (100%), 164.64 MH, 7259.54 kH/s
[2017-10-22 19:40:59] Stratum difficulty set to 256
[2017-10-22 19:43:59] Stratum difficulty set to 128
[2017-10-22 19:44:06] Stratum difficulty set to 128****

Mining via RPC

The RPC support to solo mine to a local node appears to be broken. No amount of command switches will make it work, including --no-stratum. Other miners work fine out of the box.

algo/m7m.c:4:17: fatal error: gmp.h: No such file or directory

Hello People,

I found the following when I tried to build it:

gcc -DHAVE_CONFIG_H -I.  -Iyes/include -fno-strict-aliasing  -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -O3 -march=native -Wall  -Iyes/include -MT algo/cpuminer-nist5.o -MD -MP -MF algo/.deps/cpuminer-nist5.Tpo -c -o algo/cpuminer-nist5.o `test -f 'algo/nist5.c' || echo './'`algo/nist5.c
algo/m7m.c:4:17: fatal error: gmp.h: No such file or directory
compilation terminated.
Makefile:2854: recipe for target 'algo/cpuminer-m7m.o' failed
make[2]: *** [algo/cpuminer-m7m.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from algo/nist5.c:15:0:
./algo/keccak/sse2/keccak.c:780:2: warning: multi-line comment [-Wcomment]
  //kekDECL_STATE \
  ^
mv -f algo/heavy/.deps/cpuminer-bastion.Tpo algo/heavy/.deps/cpuminer-bastion.Po
In file included from algo/nist5.c:17:0:
algo/nist5.c: In function ‘nist5hash’:
./algo/jh/sse2/jh_sse2_opt64.h:342:33: warning: right shift count >= width of type [-Wshift-count-overflow]
         jhSbuffer[56] = ((64*8) >> 56) & 0xff, \
                                 ^
algo/nist5.c:69:6: note: in expansion of macro ‘JH_H’
      JH_H;
      ^
./algo/jh/sse2/jh_sse2_opt64.h:343:33: warning: right shift count >= width of type [-Wshift-count-overflow]
         jhSbuffer[57] = ((64*8) >> 48) & 0xff, \
                                 ^
algo/nist5.c:69:6: note: in expansion of macro ‘JH_H’
      JH_H;
      ^
./algo/jh/sse2/jh_sse2_opt64.h:344:33: warning: right shift count >= width of type [-Wshift-count-overflow]
         jhSbuffer[58] = ((64*8) >> 40) & 0xff, \
                                 ^
algo/nist5.c:69:6: note: in expansion of macro ‘JH_H’
      JH_H;
      ^
./algo/jh/sse2/jh_sse2_opt64.h:345:33: warning: right shift count >= width of type [-Wshift-count-overflow]
         jhSbuffer[59] = ((64*8) >> 32) & 0xff, \
                                 ^
algo/nist5.c:69:6: note: in expansion of macro ‘JH_H’
      JH_H;
      ^
mv -f algo/.deps/cpuminer-neoscrypt.Tpo algo/.deps/cpuminer-neoscrypt.Po
mv -f algo/.deps/cpuminer-nist5.Tpo algo/.deps/cpuminer-nist5.Po
make[2]: Leaving directory '/home/imaginarypay/cpuminer-opt'
Makefile:3507: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/imaginarypay/cpuminer-opt'
Makefile:666: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file

Please kindly look into the issue.

Thanks

Yescrypt - share is above target

Hello!

Im getting error
[2017-12-25 19:58:55] Rejected 3/3 (100.0%), 155.07 kH, 2905.06 H/s, 0C
[2017-12-25 19:58:55] reject reason: Share is above target

What i can do for fix it?

Performance "Slow" on more then 60 cores

Hi,
I'm using cpuminer-opt on 4 sockets machine (4x E7-4870). It's a total of 80 cores.
When I use -t 60 (60 threads), I'm getting 1400H/s (cryptonight). When I rise the number to 80, I'm getting 1200H/s and the CPU only uses 80% of their capacity.
Thx
Fred

How about instructions on how to use this?

Found out about this CPU miner on Reddit. No documentation anywhere. The README is basically useless. Would be nice to at least get a sample batch or a link to instructions on how to use it.

Compiling Issue

I am running into an error compiling cpuminer-opt on a CentOS 7.
I got passed a previous error related to curl by added -lcurl to the make file but this one has me stumped.

algo/luffa/sse2/cpuminer-luffa_for_sse2.o: In function update_luffa': luffa_for_sse2.c:(.text+0x1d5): undefined reference to mm_byteswap_epi32'
luffa_for_sse2.c:(.text+0x1eb): undefined reference to mm_byteswap_epi32' luffa_for_sse2.c:(.text+0x230): undefined reference to mm_byteswap_epi32'
algo/luffa/sse2/cpuminer-luffa_for_sse2.o: In function update_and_final_luffa': luffa_for_sse2.c:(.text+0x533): undefined reference to mm_byteswap_epi32'
luffa_for_sse2.c:(.text+0x54c): undefined reference to mm_byteswap_epi32' algo/luffa/sse2/cpuminer-luffa_for_sse2.o:luffa_for_sse2.c:(.text+0x590): more undefined references to mm_byteswap_epi32' follow
algo/luffa/sse2/cpuminer-luffa_for_sse2.o: In function finalization512': luffa_for_sse2.c:(.text+0x14f57): undefined reference to mm256_byteswap_epi32'
luffa_for_sse2.c:(.text+0x1510a): undefined reference to mm256_byteswap_epi32' algo/lyra2/cpuminer-lyra2.o: In function LYRA2RE':
lyra2.c:(.text+0xcce): undefined reference to memset_zero_m256i' algo/lyra2/cpuminer-sponge.o: In function squeeze':
sponge.c:(.text+0x1dc): undefined reference to memcpy_m256i' sponge.c:(.text+0xf0f): undefined reference to memcpy_m256i'
algo/lyra2/cpuminer-lyra2rev2.o: In function lyra2rev2_thread_init': lyra2rev2.c:(.text+0x962): undefined reference to memset_zero_m256i'
algo/lyra2/cpuminer-zcoin.o: In function zcoin_thread_init': zcoin.c:(.text+0x61b): undefined reference to memset_zero_m256i'
algo/lyra2/cpuminer-lyra2z330.o: In function lyra2z330_thread_init': lyra2z330.c:(.text+0x4a8): undefined reference to memset_zero_m256i'
algo/cpuminer-m7m.o: In function swit2_': m7m.c:(.text+0x18e): undefined reference to exp_n'
m7m.c:(.text+0x1b5): undefined reference to exp_n' algo/cpuminer-timetravel.o: In function next_permutation':
timetravel.c:(.text+0x172): undefined reference to tt_swap' timetravel.c:(.text+0x185): undefined reference to reverse'
timetravel.c:(.text+0x1a4): undefined reference to reverse' algo/cpuminer-timetravel10.o: In function next_permutation':
timetravel10.c:(.text+0x172): undefined reference to tt10_swap' timetravel10.c:(.text+0x185): undefined reference to reverse'
timetravel10.c:(.text+0x1a4): undefined reference to reverse' collect2: error: ld returned 1 exit status make[2]: *** [cpuminer] Error 1 make[2]: Leaving directory /root/cpuminer-opt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt'
make: *** [all] Error 2

Ryzen 1600x

app closes with no error
-D = no errors closes

  • bench... =closes

API returns nothing

Hello,

I see there's a built in API but it does not seem to work ("Empty reply from server").

./cpuminer --no-color -a yescrypt -o stratum+tcp://stratum.eu.miners-pool.eu:8428 -u mykey -t 4 --api-bind 0.0.0.0:5544
curl --verbose -L 127.0.0.1:5544
* Rebuilt URL to: 127.0.0.1:5544/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 5544 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:5544
> User-Agent: curl/7.52.1
> Accept: */*
> 
* Curl_http_done: called premature == 0
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server

Thanks in advance,

Adam.

Low performance

Hi, I'm running cpuminer-opt with command ./cpuminer --algo=cryptonight --url=stratum+tcp://cryptonight.eu.nicehash.com:3355 --userpass=XXXX:x -t 31 on a machine with around 450 H/s. But with another pool and xmr-stak-cpu I got 750H/s as expected.

Why is my hashrate lower than it is with xmr-stak-cpu?

Regards

Better hash/s on less threads

Mining with "cpuminer-opt-3.6.4" - cpuminer-aes-avx2.exe on Windows 10.

The lower threads im using, the better the hash/s I get with a i7-5600U 2,60 Ghz

Eg, using all threads (4) gives me 200-250 h/s
Using ONE thread gives me 320 h/s

I have seen similar results on my i5 processors.

--
This is on lyra2zoin algo

Tested with i7-3770k, on this cpu I get best hash/s on 4 threads instead of all the 8

Always removed by windows defender

I understand it may be false-positive. But do you know why this software is always removed by windows defender? I don't want to exclude any threats in defender.

undefined reference to curl_easy_setopt

I'm using SLES 11 with GCC 4.8 compiler. When I trying to compile cpuminer-opt, I have got undefined reference to curl_easy_init and undefined reference to curl_easy_setopt errors. I attach a full build log.

cpuminer-opt-trunk-build-log.zip

First time it was libcurl 7.19 then I had upgraded it to 7.37. After that I had removed source code and unpack it again. An error is still present.

Segfault on gentoo Linux

Hey, tried to run your cpuminer on a Ryzen 1700 running unstable gentoo with gcc 7.2.0, Glibc 2-25-r9, kernel 4.14.8-gentoo-r1.
Thecompile works like a dream, but when starting it i get a segfault with following error, which seems to lead to glibc, any ideas?
` ********** 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 21 2017 with GCC 7.2.0.
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.

[New Thread 0x155552cc4700 (LWP 8522)]
[New Thread 0x1555526bb700 (LWP 8523)]
[2017-12-21 11:56:34] Starting Stratum on stratum+tcp://pool.mineproject.ru:6033

Thread 3 "cpuminer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x1555526bb700 (LWP 8523)]
0x00001555550e34b8 in ?? () from /usr/lib64/libcurl.so.4
(gdb) bt
#0 0x00001555550e34b8 in ?? () from /usr/lib64/libcurl.so.4
#1 0x00001555550e4a25 in curl_mvsnprintf () from /usr/lib64/libcurl.so.4
#2 0x00001555550e3467 in curl_msnprintf () from /usr/lib64/libcurl.so.4
#3 0x0000155555104cf8 in ?? () from /usr/lib64/libcurl.so.4
#4 0x00001555550e2041 in ?? () from /usr/lib64/libcurl.so.4
#5 0x00001555550f24d3 in ?? () from /usr/lib64/libcurl.so.4
#6 0x00001555550f3554 in curl_multi_perform () from /usr/lib64/libcurl.so.4
#7 0x00001555550ea844 in curl_easy_perform () from /usr/lib64/libcurl.so.4
#8 0x00005555555668bf in ?? ()
#9 0x000055555555ce7b in ?? ()
#10 0x0000155554a83967 in start_thread () from /lib64/libpthread.so.0
#11 0x00001555535ce31f in clone () from /lib64/libc.so.6
'

How to use on a Mac?

What's the (best) way to use this on a Mac with MPH or HashRefinery? I can't figure it out ^^

scrypt-n avx no improvement

I tested on two machines with AVX and AVX2, AVX uses double memory, but does not see much improvement.
Instead for lyra2z330, avx2 has great improvement, why is that?

Releases

Why can't you upload the binaries to GitHub; nobody else seems to have this issue?

I would like to be able to link to the binaries in MultiPoolMiner.

Now in Gentoo, add to documentation

cpuminer-opt is now in Gentoo so users can simply emerge net-p2p/cpuminer-opt to install it.

Could you please add that information to your documentation?

getwork mining not correct for m7m

I know getwork is pretty much unused nowadays, but with XMG it actually still makes sense.

The submit of the getwork is wrong for magid, it expects uint32_t[32] (128 bytes) as big endian hex encoded, but cpu-miner is providing algo_gate.work_data_size (80 bytes) as little endian hex encoded.

I have changed the 2 issues statically for m7m as a debug effort and with sending 128 bytes big endian hex encoded I can successfully submit blocks to magid, and a quick comparison of test data + nonces does show me the exact same result for cpuminer vs m-minerd (on very low difficulties) but when mining for real all submitted blocks from cpuminer get rejected, the exact reason I'm still debugging (it sucks to have to wait days for a nonce to hit)

I'll continue to debug this but just wanted to put it out there in case someone knows what is going on already :)

Hide console?

How could I hide the console? If this is not possible, Do you could compile a version with this function?

algo gate

Hello,

only few algo work

[2016-12-05 00:48:09] FAIL: algo_gate registration failed, unknown algo axiom.
[2016-12-05 00:48:09] FAIL: algo_gate registration failed, unknown algo bastion.
[2016-12-05 00:48:09] FAIL: algo_gate registration failed, unknown algo blake.
[2016-12-05 00:48:10] FAIL: algo_gate registration failed, unknown algo blakecoin.
[2016-12-05 00:48:10] FAIL: algo_gate registration failed, unknown algo blake2s.
[2016-12-05 00:48:10] FAIL: algo_gate registration failed, unknown algo bmw.
[2016-12-05 00:48:10] FAIL: algo_gate registration failed, unknown algo c11.
[2016-12-05 00:48:10] FAIL: algo_gate registration failed, unknown algo cryptolight.
[2016-12-05 00:48:17] FAIL: algo_gate registration failed, unknown algo decred.
[2016-12-05 00:48:17] FAIL: algo_gate registration failed, unknown algo drop.
[2016-12-05 00:48:17] FAIL: algo_gate registration failed, unknown algo fresh.
[2016-12-05 00:48:17] FAIL: algo_gate registration failed, unknown algo groestl.
[2016-12-05 00:48:18] FAIL: algo_gate registration failed, unknown algo heavy.
[2016-12-05 00:48:18] FAIL: algo_gate registration failed, unknown algo hmq1725.
[2016-12-05 00:48:23] FAIL: algo_gate registration failed, unknown algo keccak.
[2016-12-05 00:48:23] FAIL: algo_gate registration failed, unknown algo lbry.
[2016-12-05 00:48:23] FAIL: algo_gate registration failed, unknown algo luffa.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo lyra2rev2.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo m7m.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo myr-gr.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo neoscrypt.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo nist5.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo pluck.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo pentablake.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo quark.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo qubit.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo scrypt.
[2016-12-05 00:48:27] FAIL: algo_gate registration failed, unknown algo scryptjane.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo sha256d.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo shavite3.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo skein.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo skein2.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo s3.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo vanilla.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo veltor.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo whirlpool.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo whirlpoolx.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo x11.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo x11evo.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo x11gost.
[2016-12-05 00:48:28] FAIL: algo_gate registration failed, unknown algo x13.
[2016-12-05 00:48:29] FAIL: algo_gate registration failed, unknown algo x14.
[2016-12-05 00:48:29] FAIL: algo_gate registration failed, unknown algo x15.
[2016-12-05 00:48:29] FAIL: algo_gate registration failed, unknown algo x17.
[2016-12-05 00:48:29] FAIL: algo_gate registration failed, unknown algo yescrypt.
[2016-12-05 00:48:29] FAIL: algo_gate registration failed, unknown algo zr5.`

aes isnt used even its availabe

 ;) Tars ~/cpuminer-opt $ ./cpuminer -a cryptonight -o stratum+tcp://bcn.pool.minergate.com:45550 -u mymail -p x -t48 -q

         **********  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: Genuine Intel(R) CPU 0000 @ 2.10GHz.
SW built on Dec 24 2017 with GCC 7.2.1.
CPU features: SSE2 AES AVX AVX2.
SW features: SSE2.
Algo features: SSE2 AES.
Start mining with SSE2.

as you can see, cpu and algo are featuring aes. but it starts with sse2? what iam doin wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.