Giter Site home page Giter Site logo

xrpinals / xpsminer Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 4.0 43.84 MB

Xps mining tool of x17 algo

License: GNU General Public License v3.0

Cuda 14.99% Makefile 0.07% Batchfile 0.01% C++ 7.97% C 76.61% PHP 0.17% Perl 0.01% HTML 0.05% Shell 0.01% M4 0.11%
gpu-mining miner x17 xps xrpinals

xpsminer's Introduction

XPSMiner ("x17 algo")

Nvidia GPU Support Only

How to build (Windows)

  1. Install Visual Studio >= 2013 (suggest to use MSVC toolset v120)

  2. Install latest Nvidia Driver

  3. Download and Install CUDA 9.1 (https://developer.nvidia.com/cuda-91-download-archive)

  4. Fetch the xpsminer project

git clone https://github.com/xrpinals/XpsMiner
cd XpsMiner/compat
git clone https://github.com/xrpinals/curl-for-windows
cd curl-for-windows
git submodule update --init --recursive
cd ..
  1. cd XpsMiner

  2. Open project XpsMiner.vcxproj

  3. Start to build and wait to done

How to build (Ubuntu 18.04)

  1. Install build tools and dependencies
sudo apt-get update
sudo apt-get install build-essential autoconf git
sudo apt-get install libssl-dev
sudo apt-get install libcurl4-openssl-dev
  1. Install latest Nvidia Driver
# Blacklist Nvidia nouveau driver

sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

sudo update-initramfs -u
sudo reboot
sudo rm /etc/apt/sources.list.d/cuda*
sudo apt remove --autoremove nvidia-cuda-toolkit
sudo apt remove --autoremove nvidia-*

sudo apt update
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-driver-440
  1. Install CUDA for linux
sudo apt-key adv --fetch-keys  http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda_learn.list'

sudo apt update
sudo apt install cuda-10-1
sudo apt install nvidia-cuda-toolkit
  1. Add the following lines to your ~/.profile file for CUDA 10.1
if [ -d "/usr/local/cuda-10.1/bin/" ]; then
    export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
  1. Check NVIDIA Cuda Compiler with nvcc --version

  2. Check NVIDIA driver with nvidia-smi

  3. Fetch the xpsminer project

git clone https://github.com/xrpinals/XpsMiner
cd ..
  1. build
sh autogen.sh
sh configure.sh
make -j4

How to Use

  1. Before mining, you should make sure you have a miner with Nvidia GPU

  2. Install Nvidia GPU latest Driver

  3. Start to mine

  • windows

XpsMiner.exe --url=stratum+tcp://127.0.0.1:42123

  • linux

./XpsMiner --url=stratum+tcp://127.0.0.1:42123

for example:

  • windows

XpsMiner.exe --url=stratum+tcp://127.0.0.1:42123

  • linux

./XpsMiner --url=stratum+tcp://127.0.0.1:42123

xpsminer's People

Contributors

xrpinals avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

xpsminer's Issues

util.cpp:1883:1: error: jump to label 'out'

util.cpp: In function 'bool stratum_notify(stratum_ctx*, json_t*)':
util.cpp:1883:1: error: jump to label 'out'
1883 | out:
| ^~~
util.cpp:1819:30: note: from here
1819 | goto out;
| ^~~
util.cpp:1850:14: note: crosses initialization of 'int p'
1850 | int p = 0;
| ^
util.cpp:1849:14: note: crosses initialization of 'bool ret'
1849 | bool ret = false;
| ^~~
make[2]: *** [Makefile:1248: XpsMiner-util.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/XpsMiner-sysinfos.Tpo .deps/XpsMiner-sysinfos.Po
XpsMiner.cpp:198:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
198 | char rpc_url = "stratum+tcp://127.0.0.1:42123";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XpsMiner.cpp:200:27: warning: ISO C++ forbids converting a string constant to 'char
' [-Wwrite-strings]
200 | char default_user_name = "xpsminer001";
| ^~~~~~~~~~~~~
mv -f .deps/XpsMiner-stats.Tpo .deps/XpsMiner-stats.Po
XpsMiner.cpp: In function 'int share_result(int, int, double, const char
)':
XpsMiner.cpp:693:51: warning: '__builtin___sprintf_chk' writing a terminating nul past the end of the destination [-Wformat-overflow=]
693 | sprintf(solved, " solved %u blocks", p->solved_count);
| ^
In file included from /usr/include/stdio.h:894,
from XpsMiner.cpp:40:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 17 and 26 bytes into a destination of size 16
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
mv -f .deps/XpsMiner-XpsMiner.Tpo .deps/XpsMiner-XpsMiner.Po
make[2]: Leaving directory '/root/XpsMiner'
make[1]: *** [Makefile:1394: all-recursive] Error 1
make[1]: Leaving directory '/root/XpsMiner'
make: *** [Makefile:526: all] Error 2

XpsMiner.cpp:3329:28: error: expected unqualified-id before '->' token

XpsMiner.cpp:3329:28: error: expected unqualified-id before '->' token
3329 | break; work->data
| ^~
make[2]: *** [Makefile:1220: XpsMiner-XpsMiner.o] Error 1
mv -f .deps/XpsMiner-hashlog.Tpo .deps/XpsMiner-hashlog.Po
mv -f .deps/XpsMiner-nvml.Tpo .deps/XpsMiner-nvml.Po
make[2]: Leaving directory '/root/XpsMiner'
make[1]: *** [Makefile:1394: all-recursive] Error 1
make[1]: Leaving directory '/root/XpsMiner'
make: *** [Makefile:526: all] Error 2

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.