Skip to content

Instantly share code, notes, and snippets.

@pcdinh

pcdinh/grin-miner install

Last active Nov 2, 2018
Embed
What would you like to do?
apt-get --no-install-recommends --yes install clang libclang-dev llvm-dev libncurses5 libncursesw5 cmake git
ubuntu-drivers devices
sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-390
lsmod | grep nvidia
nvidia-smi
sudo apt install nvidia-cuda-toolkit
cargo build
# CUDA 9.0 unsupported gcc versions later than 6
ls -al /usr/bin/gcc*
lrwxrwxrwx 1 root root 5 Thg 9 17 14:07 /usr/bin/gcc -> gcc-7
-rwxr-xr-x 1 root root 907648 Thg 4 12 2018 /usr/bin/gcc-5
lrwxrwxrwx 1 root root 22 Thg 7 26 19:25 /usr/bin/gcc-7 -> x86_64-linux-gnu-gcc-7
lrwxrwxrwx 1 root root 8 Thg 9 17 14:07 /usr/bin/gcc-ar -> gcc-ar-7
-rwxr-xr-x 1 root root 31264 Thg 4 12 2018 /usr/bin/gcc-ar-5
lrwxrwxrwx 1 root root 25 Thg 7 26 19:25 /usr/bin/gcc-ar-7 -> x86_64-linux-gnu-gcc-ar-7
lrwxrwxrwx 1 root root 8 Thg 9 17 14:07 /usr/bin/gcc-nm -> gcc-nm-7
-rwxr-xr-x 1 root root 31264 Thg 4 12 2018 /usr/bin/gcc-nm-5
lrwxrwxrwx 1 root root 25 Thg 7 26 19:25 /usr/bin/gcc-nm-7 -> x86_64-linux-gnu-gcc-nm-7
lrwxrwxrwx 1 root root 12 Thg 9 17 14:07 /usr/bin/gcc-ranlib -> gcc-ranlib-7
-rwxr-xr-x 1 root root 31264 Thg 4 12 2018 /usr/bin/gcc-ranlib-5
lrwxrwxrwx 1 root root 29 Thg 7 26 19:25 /usr/bin/gcc-ranlib-7 -> x86_64-linux-gnu-gcc-ranlib-7
# Link default gcc to gcc5
sudo ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc
sudo ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++
OR
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
# Test
gcc --version
gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
git clone https://github.com/mimblewimble/grin-miner.git
cd grin-miner
git submodule update --init
cargo build
# Edit Cargo.toml
change:
cuckoo_miner = { path = "./cuckoo-miner" }
to:
cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins"]}
cargo build
cp grin-miner.toml target/debug/
# Edit grin-miner.toml
Remove comment
[[mining.miner_plugin_config]]
plugin_name = "cuckatoo_mean_cuda_29"
Comment out
[[mining.miner_plugin_config]]
plugin_name = "cuckatoo_mean_compat_cpu_29"
[mining.miner_plugin_config.parameters]
nthreads = 4
# Find config
/home/grintest/.grin/
grintest@grintest:~/grin/target/release$ ls -al /home/grintest/.grin/
total 12608
drwxr-xr-x 4 grintest grintest 4096 Thg 1 2 15:49 .
drwxr-xr-x 25 grintest grintest 4096 Thg 1 2 15:49 ..
-rw-r--r-- 1 grintest grintest 20 Thg 1 2 15:28 .api_secret
drwxr-xr-x 6 grintest grintest 4096 Thg 1 2 15:28 chain_data
-rw-r--r-- 1 grintest grintest 12868200 Thg 1 2 15:50 grin-server.log
-rw-r--r-- 1 grintest grintest 5942 Thg 1 2 15:28 grin-server.toml
-rw-rw-r-- 1 grintest grintest 2715 Thg 1 2 15:45 grin-wallet.log
-rw-rw-r-- 1 grintest grintest 2116 Thg 1 2 15:43 grin-wallet.toml
drwxrwxr-x 3 grintest grintest 4096 Thg 1 2 15:44 wallet_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.