Cpu miner opt linux

Cpuminer-Opt 3.18.0 (Multi) Скачать, Настройка

3 мин на чтение

В этом руководстве вы узнаете, как настроить и использовать программное обеспечение для майнинга Cpuminer-Opt для майнинга майнинга криптовалют.

Скачать для Windows/Linux

Что такое CpuMiner

CpuMiner — это программа для добычи криптовалют на процессоре. Программа поддерживает более 90 алгоритмов для майнинга.

ЦпуМайнер — это программа с открытым исходным кодом. Это означает, что каждый может посмотреть что она делает в системе, а так же внести свой вклад в разработку.

Этот софт разрабатывали несколько разработчиков: «TPruvot», «JayDDee» и «Rplant». Однако изначально придумали эту программу пользователи с никами «Lucasjones» и «Pooler».

Как настроить CpuMiner

Шаг 1 — Скачайте майнер

Первым шагом вам необходимо загрузить программное обеспечение по этой ссылке. Здесь представлен релиз для Windows. Если вы ищите версию для Linux — вернитесь вверх статьи и откройте других авторов программы.

Шаг 2 — Настройте батник для Dogecoin

Вторым шагом будет настройка бат файла для майинга определенной криптовалюты.

Вот пример .bat-файла CpuMiner для пула tbdice:

Шаг 3 — Запустите CpuMiner

Третьим шагом будет двойной клик по созданному или отредактированному бат файлу. Тем самым мы запустим программу.

Видео Гид (включите субтитры)

Майните на процессоре? Читайте про настройку Xmrig майнера и SRBMiner.

Пример настройки для Dogecoin

STRATUM: stratum+tcp://dogeminingpool.com
PORT: 3009
Username (wallet): DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo
Password: x

Так будет выглядеть готовый батник CpuMiner Doge на пуле dogeminingpool:

Просто замените DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo на адрес вашего собственного Dogecoin кошелька.

cpuminer-sse2.exe -a scrypt -o stratum+tcp://dogeminingpool.com:3009 -u DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo.0 pause

Если вы хотите понять как настроить все с нуля, то вам нужно поочередно ввести 5 команд:

  1. cpuminer-sse2.exe — имя запускаемой нами программы
  2. scrypt — алгоритм для майнинга
  3. dogeminingpool.com — адрес пула
  4. 3009 — порт пула
  5. DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo — адрес кошелька для майнинга на бирже.

Чтобы настроить батник для соло майнинга нам нужно запустить кошелек в режиме сервера с портом 9999 и ввести другие команды:

Здесь мы добавили —coinbase-addr — используется для соло майнинга.

Вы можете попробовать добавить разрешающий IP-адрес rpc для создания .conf . файла Чтобы разрешить соединения только из вашей локальной сети, вы можете указать свою подсеть в параметре rpcconnect. Вам также необходимо указать внутренний IP-адрес машины, к которой вы подключаете майнер, в rpcconnect. Затем запустите кошелек в режиме сервера и используйте IP-адрес кошелька, rpcuser, rpcpassword и rpcport в файле конфигурации майнера.

Источник

Cpu miner opt linux

JayDDee released this Sep 29, 2021

Complete rewrite of Scrypt code, optimized for large N factor (scryptn2):

  • AVX512 & SHA support for SHA256, AVX512 has priority,
  • up to 50% increase in hashrate,
  • memory requirements reduced 30-60% depending on CPU architecture,
  • memory usage displayed at startup,
  • scrypt, default N=1024 (LTC), will likely perform slower.

Improved stale share detection and handling for Scrypt with large N factor:

  • abort and discard partially computed hash when new work is detected,
  • quicker response to new job, less time wasted mining stale job.

Improved stale share handling for all algorithms:

  • report possible stale share when new work received with a previously submitted share still pending,
  • when new work is detected report the submission of an already completed, otherwise valid, but likely stale, share,
  • fixed incorrect block height in stale share log.

Small performance improvements to sha, bmw, cube & hamsi for AVX512 & AVX2.

When stratum disconnects miner threads go to idle until reconnected.

Colour changes to some logs.

Some low level function name changes for clarity and consistency.

The reference hashrate in the summary log and the benchmark total hashrate are now the mean hashrate for the session.

Update errata:

The changes to scrypt have reduced scryptn2 performance on AVX CPUs significantly, SSE2 also likely. This occurs with the
same number of threads. Memory usage reductions in v3.18.1 may allow more cores to run mitigating the slow down. Owners
with these CPUs who haven’t previously been able to run all cores may want to compare performance and may want to continue
using v3.17.1 until the problem is resolved. CPUs with AVX512 or AVX2 are not affected. The problem is under investigation.

Читайте также:  Zune не видит windows phone

Ryzen users will find better performance on scryptn2 using the AVX2 build instead of the native zen or zen3 build with SHA.
The default will be changed in the next release to use AVX2 for scryptn2 when SHA is also available. AVX512 is already the
default when it is available.

Источник

Cpu miner opt linux

Optimized multi algo CPU miner

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

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.

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.

  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.

Older CPUs are supported by cpuminer-multi by TPruvot but at reduced performance.

ARM and Aarch64 CPUs are not supported.

  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. 64 bit Windows OS is supported with mingw_w64 and msys or pre-built binaries.

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.

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»

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.

Читайте также:  Remote desktop client ��� mac os

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

Benchmark testing does not work for x11evo.

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

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.

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

Источник

Cpu miner opt linux

Copy raw contents

This project is forked by Jay D Dee.

Updated for v3.3.2 Windows support.

Building on linux prerequisites:

It is assumed users know how to install packages on their system and be able to compile standard source packages. This is basic Linux and beyond the scope of cpuminer-opt.

Make sure you have the basic development packages installed. Here is a good start:

Install any additional dependencies needed by cpuminer-opt. The list below are some of the ones that may not be in the default install and need to be installed manually. There may be others, read the error messages they will give a clue as to the missing package.

The folliwing command should install everything you need on Debian based packages:

sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake

Building on Linux, see below for Windows.

build-essential (for Ubuntu, Development Tools package group on Fedora) automake libjansson-dev libgmp-dev libcurl4-openssl-dev libssl-dev pthreads zlib

tar xvzf [file.tar.gz] cd [file]

Run build.sh to build on Linux or execute the following commands.

./autogen.sh CFLAGS=»-O3 -march=native -Wall» CXXFLAGS=»$CFLAGS -std=gnu++11″ ./configure —with-curl make

./cpuminer -a algo .

Building on Windows prerequisites:

msys mingw_w64 Visual C++ redistributable 2008 X64 openssl, not sure about this

Install msys and mingw_w64, only needed once.

Unpack msys into C:\msys or your preferred directory.

Install mingw__w64 from win-builds. Follow instructions, check «msys or cygwin» and «x86_64» and accept default existing msys instalation.

Open a msys shell by double clicking on msys.bat. Note that msys shell uses linux syntax for file specifications, «C:» is mounted at «/c/».

Add mingw bin directory to PATH variable PATH=»/c/msys/opt/windows_64/bin/:$PATH»

Instalation complete, compile cpuminer-opt

Unpack cpuminer-opt source files using tar from msys shell, or using 7zip or similar Windows program.

In msys shell cd to miner directory. cd /c/path/to/cpuminer-opt

Run winbuild.sh to build on Windows or execute the following commands.

./autogen.sh CFLAGS=»-O3 -march=native -Wall» CXXFLAGS=»$CFLAGS -std=gnu++11 -fpermissive» ./configure —with-curl make

The following tips may be useful for older AMD CPUs.

Some users with AMD CPUs without AES_NI have reported problems compiling with build.sh or «-march=native». Problems have included compile errors and poor performance. These users are recommended to compile manually specifying «-march=btver1» on the configure command line.

Support for even older x86_64 without AES_NI or SSE2 is not availble. cpuminer-multi by TPruvot supports this architecture.

The rest of this file is taken from cpuminer-multi.

This is a multi-threaded CPU miner, fork of pooler’s cpuminer (see AUTHORS for list of contributors).

Table of contents

  • scrypt (Litecoin, Dogecoin, Feathercoin, . )
  • scrypt:N
  • sha256d (Bitcoin, Freicoin, Peercoin/PPCoin, Terracoin, . )
  • axiom (Axiom Shabal-256 based MemoHash)
  • blake (Saffron [SFR] Blake-256)
  • bmw (Midnight [MDT] BMW-256)
  • cryptonight (Bytecoin [BCN], Monero)
  • cryptonight-light (Aeon)
  • dmd-gr (Diamond-Groestl)
  • fresh (FreshCoin)
  • groestl (Groestlcoin)
  • lyra2RE (Lyrabar, Cryptocoin)
  • lyra2REv2 (VertCoin [VTC])
  • myr-gr (Myriad-Groestl)
  • neoscrypt (Feathercoin)
  • nist5 (MistCoin [MIC], TalkCoin [TAC], . )
  • pentablake (Joincoin)
  • pluck (Supcoin [SUP])
  • quark (Quarkcoin)
  • qubit (MyriadCoin [MYR])
  • skein (Skeincoin, Myriadcoin, Xedoscoin, . )
  • skein2 (Woodcoin)
  • s3 (OneCoin)
  • x11 (Darkcoin [DRK], Hirocoin, Limecoin, . )
  • x13 (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], . )
  • x14 (X14, Webcoin [WEB])
  • x15 (RadianceCoin [RCE])
  • zr5 (Ziftrcoin [ZRC])

Implemented, but untested

Читайте также:  Disable windows login password windows 10

  • ? blake2s
  • ? hefty1 (Heavycoin)
  • ? keccak (Maxcoin HelixCoin, CryptoMeth, Galleon, 365coin, Slothcoin, BitcointalkCoin)
  • ? luffa (Joincoin, Doomcoin)
  • ? shavite3 (INKcoin)
  • ? sib X11 + gost (SibCoin)

Planned support for

  • scrypt-jane (YaCoin, CopperBars, Pennies, Tickets, etc..)
  • libcurl http://curl.haxx.se/libcurl/
  • jansson http://www.digip.org/jansson/ (jansson source is included in-tree)
  • openssl libcrypto https://www.openssl.org/
  • pthreads
  • zlib (for curl/ssl)
  • Windows releases: https://github.com/tpruvot/cpuminer-multi/releases
  • Git tree: https://github.com/tpruvot/cpuminer-multi
    • Clone with git clone https://github.com/tpruvot/cpuminer-multi

Basic *nix build instructions:

  • just use ./build.sh OR
  • ./autogen.sh # only needed if building from git repo
  • ./nomacro.pl # only needed if building on Mac OS X or with Clang
  • ./configure CFLAGS=»-O3 -march=native» —with-crypto —with-curl

    Use -march=native if building for a single machine

    Notes for AIX users:

    • To build a 64-bit binary, export OBJECT_MODE=64
    • GNU-style long options are not supported, but are accessible via configuration file

    Basic Windows build with Visual Studio 2013

    • All the required .lib files are now included in tree (windows only)
    • AVX enabled by default for x64 platform (AVX2 and XOP could also be used)

    Basic Windows build instructions, using MinGW64:

    • Install MinGW64 and the MSYS Developer Tool Kit (http://www.mingw.org/)
      • Make sure you have mstcpip.h in MinGW\include
    • install pthreads-w64
    • Install libcurl devel (http://curl.haxx.se/download.html)
      • Make sure you have libcurl.m4 in MinGW\share\aclocal
      • Make sure you have curl-config in MinGW\bin
    • Install openssl devel (https://www.openssl.org/related/binaries.html)
    • In the MSYS shell, run:
      • for 64bit, you can use ./mingw64.sh else : ./autogen.sh # only needed if building from git repo
      • LIBCURL=»-lcurldll» ./configure CFLAGS=»-march=native»
        • Use -march=native if building for a single machine

          Windows build steps:

          install in order:

          GNUstep Cairo, ProjectCenter, Gorm are probably not needed but install them anyways.

          Intsall Win-builds 1.5.0 and choose and choose Cygwin or MYSY, and select x86_64 set path to /c/bin/GNUstep/msys/ (Or the path you have installed GNUstep). Clone github repo https://github.com/nicehash/cpuminer-opt. Open C:\bin\GNUstep\msys\1.0\msys.bat and cd to cloned repo path. Run the following commands:

          • PATH=»/c/bin/GNUstep/msys/opt/windows_64/bin/:$PATH» (or the path you have installed GNUstep) to add opt/windows_64 to path.
          • run ./autogen
          • use one of the scripts mingw64.sh (build native extension for CPU), mingw64aes.sh for AES support, mingw64sse2.sh for SSE2 support, mingw64avx(+aes).sh for AVX(_AES) support and mingw64avx2(+aes).sh for AVX2(_AES) support
          • the built cpuminer.exe binary requires libraries (copy them from or set PATH to C:\bin\GNUstep\msys\opt\windows_64\bin when running):
            • libcrypto.dll
            • libcrypto-1.0.0.dll
            • libcurl-4.dll
            • libgcc_s_dw2-1.dll
            • libgcc_s_seh-1.dll
            • libgmp-10.dll
            • libgmpxx-4.dll
            • libjansson-4.dll
            • libjson-c-2.dll
            • libsasl.dll
            • libsigc-2.0-0.dll
            • libssl.dll
            • libssl-1.0.0.dll
            • libstdc++-6.dll
            • libwinpthread-1.dll
            • libz-1.dll
          • ARM:
            • No runtime CPU detection. The miner can take advantage of some instructions specific to ARMv5E and later processors, but the decision whether to use them is made at compile time, based on compiler-defined macros.
            • To use NEON instructions, add «-mfpu=neon» to CFLAGS.
          • x86:
            • The miner checks for SSE2 instructions support at runtime, and uses them if they are available.
          • x86-64:
            • The miner can take advantage of AVX, AVX2 and XOP instructions, but only if both the CPU and the operating system support them.
              • Linux supports AVX starting from kernel version 2.6.30.
              • FreeBSD supports AVX starting with 9.1-RELEASE.
              • Mac OS X added AVX support in the 10.6.8 update.
              • Windows supports AVX starting from Windows 7 SP1 and Windows Server 2008 R2 SP1.
            • The configure script outputs a warning if the assembler doesn’t support some instruction sets. In that case, the miner can still be built, but unavailable optimizations are left off.

          Run «cpuminer —help» to see options.

          Connecting through a proxy

          Use the —proxy option.

          To use a SOCKS proxy, add a socks4:// or socks5:// prefix to the proxy host
          Protocols socks4a and socks5h, allowing remote name resolving, are also available since libcurl 7.18.0.

          If no protocol is specified, the proxy is assumed to be a HTTP proxy.
          When the —proxy option is not used, the program honors the http_proxy and all_proxy environment variables.

          Donations for the work done in this fork are accepted :

          • BTC: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd
          • ZRC: ZX6LmrCwphNgitxvDnf8TX6Tsegfxpeozx
          • MRO: 472haywQKoxFzf7asaQ4XKBc2foAY4ezk8HiN63ifW4iAbJiLnfmJfhHSR9XmVKw2WYPnszJV9MEHj9Z5WMK9VCNHaGLDmJ
          • BTC: 139QWoktddChHsZMWZFxmBva4FM96X2dhE

          CPUMiner-multi was forked from pooler’s CPUMiner, and has been started by Lucas Jones.

          • tpruvot added all the recent features and newer algorythmns
          • Wolf9466 helped with Intel AES-NI support for CryptoNight

          Источник

Оцените статью