Giter VIP home page Giter VIP logo

zelhash-reference-miner's Introduction

ZelCash ZelHash (Based on Equihash 125/4) OpenCL Miner

Usage

One Liner Examples

Linux: ./zelhash-opencl-miner --server <hostName>:<portNumer> --user <walletAddr or userName> --devices <deviceList>
Windows: ./zelhash-opencl-miner.exe --server <hostName>:<portNumer> --user <walletAddr or userName>  --devices <deviceList>

Parameters

--server

Passes the address and port of the pool the miner will mine on to the miner. The pool address can be an IP or any other valid server address.

--user

This parameter is used to pass the wallet to mine on or the pool user name to the miner.

--pass (Optional)

If the pool requires a password to the username, this can be used to pass it to the miner.

--devices (Optional)

Selects the devices to mine on. If not specified the miner will run on all devices found on the system. For example to mine on GPUs 0,1 and 3 but not number 2 use --devices 0,1,3 To list all devices that are present in the system and get their order start the miner with --devices -2 . Then all devices will be listed, but none selected for mining. The miner closes when no devices were selected for mining or all selected miner fail in the compatibility check.

How to build

Windows

  1. Install Visual Studio >= 2017 with CMake support.
  2. Download and install Boost prebuilt binaries https://sourceforge.net/projects/boost/files/boost-binaries/1.68.0/boost_1_68_0-msvc-14.1-64.exe, also add BOOST_ROOT to the Environment Variables.
  3. Download and install CUDA Toolkit https://developer.nvidia.com/cuda-downloads
  4. Add .../boost_1_68_0/lib64-msvc-14.1 to the System Path.
  5. Open project folder in Visual Studio, select your target (Release-x64 for example, if you downloaded 64bit Boost and OpenSSL) and select CMake -> Build All.
  6. Go to CMake -> Cache -> Open Cache Folder -> zel-opencl-miner (you'll find zel-opencl-miner.exe).

Linux (Ubuntu 16.04)

  1. Install gcc7 boost packages.
  sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  sudo apt update
  sudo apt install g++-7 libboost-all-dev -y
  1. Set it up so the symbolic links gcc, g++ point to the newer version:
  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
                           --slave /usr/bin/g++ g++ /usr/bin/g++-7 
  sudo update-alternatives --config gcc
  gcc --version
  g++ --version
  1. Install OpenCL
  sudo apt install ocl-icd-* opencl-headers
  1. Install latest CMake
  wget "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh"
  sudo sh cmake-3.12.0-Linux-x86_64.sh --skip-license --prefix=/usr
  1. Go to zel-opencl-miner project folder and call cmake -DCMAKE_BUILD_TYPE=Release . && make -j4.
  2. You'll find zel-opencl-miner binary in bin folder.

zelhash-reference-miner's People

Contributors

lolliedieb avatar milesmanley 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.