Coder Social home page Coder Social logo

dyn_miner's Introduction

DYNAMO miner

This repository contains reference implementations of DYNAMO miners on both GPU and CPU.

Linux

Build dependencies

CMake

Requires CMake version >= 3.12.

In order to install CMake 3.21.3 on Linux you can use following command:

wget https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-linux-x86_64.sh -O /tmp/cmake-install.sh && \
  chmod +x /tmp/cmake-install.sh && \
  /tmp/cmake-install.sh --skip-license --prefix=/usr

Clang

Clang is a preferred over GCC. Support of latest C++20 features are expected.

In order to install clang 13 on Ubuntu you can use following command:

apt-get update && apt-get install -qy lsb-release wget software-properties-common

add-apt-repository ppa:ubuntu-toolchain-r/test
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-13 main" >> /etc/apt/sources.list.d/llvm-toolchain.list && \
    echo "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-13 main" >> /etc/apt/sources.list.d/llvm-toolchain.list

apt-get update && apt-get install -qy clang-13 lldb-13 lld-13 libc++-13-dev libc++abi-13-dev

update-alternatives --install /usr/local/bin/clang clang $(which clang-13) 10
update-alternatives --install /usr/local/bin/clang++ clang++ $(which clang++-13) 10
update-alternatives --install /usr/local/bin/lld lld $(which lld-13) 10

Build from source

git clone -b pool-miner https://github.com/crackcomm/dyn_miner.git
cd dyn_miner
mkdir build
cd build
cmake .. -DGPU_MINER=ON 
make -j`nproc`

In order to generate binary for current machine enable NATIVE_BUILD.

cmake .. -DGPU_MINER=ON -DNATIVE_BUILD=ON

In order to specify C++ compiler use CMAKE_CXX_COMPILER.

cmake .. -DGPU_MINER=ON -DCMAKE_CXX_COMPILER="$(which clang++)"

Windows

This repo contains the Windows project files built in Visual Studio 2019.

To build, clone the repo and open the solution in Visual Studio.

The miner will display any OpenCL compatible platforms and will display all devices for any platform found.

It should be possible to build the miner using CMake.

cd dyn_miner
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019"
cmake --build . --config Release

Usage

Miner parameters are as follows:

./dyn_miner/dyn_miner pool.xyz 8333 username password CPU `nproc` 0
  • RPC Host
  • RPC Port
  • RPC Username
  • RPC Password
  • CPU or GPU
    • If CPU, the next parameter is the number of threads to create (should be less than number of cores on your system)
    • If GPU, the next parameter is the number of compute units - values between 1000 and 2000 seem to work well for modern cards
  • Number of threads or compute units, as noted above
  • The platform ID to use for GPU mining. Ignored for CPU.

dyn_miner's People

Contributors

adubry75 avatar catdsnny avatar crackcomm avatar dynamo-foundation avatar

Watchers

 avatar

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.