Ubuntu16.04编译xmr-stak小记
CUDA版
-
禁用
nouveau kernel driver
参考 How to disable Nouveau kernel driver
编辑:
sudo vi /etc/modprobe.d/blacklist-nouveau.conf
写入:
blacklist nouveau options nouveau modeset=0
Regenerate the kernel initramfs:
sudo update-initramfs -u
重启:
sudo reboot
-
下载 CUDA官方驱动
执行:
sudo sh cuda_10.0.130_410.48_linux.run
根据提示一路进行,可以不选择
samples
。导出路径:
export PATH=$PATH:/usr/loca/cuda-10.0/bin source ~/.profile export LC_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/loca/cuda-10.0/lib64 sudo ldconfig
-
根据
xmr-stak
文档 执行即可sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git clone https://github.com/fireice-uk/xmr-stak.git mkdir xmr-stak/build cd xmr-stak/build cmake .. make install