Difference between revisions of "ZCash Miner: nheqminer CUDA"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
nheqminer sebaiknya di jalankan di arsitektur 64bit. | nheqminer sebaiknya di jalankan di arsitektur 64bit. | ||
+ | |||
+ | ==Install Driver NVidia 340== | ||
+ | |||
+ | sudo apt-get install nvidia-340 nvidia-cuda-toolkit nvidia-340* nvidia-cuda* | ||
+ | sudo modprobe nvidia_340 | ||
+ | |||
+ | Cara ini berhasil mendetect Tesla c1060, tapi akan gagal saat compile | ||
==Install CUDA== | ==Install CUDA== | ||
+ | |||
+ | '''WARNING: Experimental''' - gagal untuk nvidia 340 | ||
sudo su | sudo su | ||
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb | wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb | ||
− | dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb | + | dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb |
apt update | apt update | ||
apt install cuda | apt install cuda | ||
apt install nvidia-cuda-toolkit | apt install nvidia-cuda-toolkit | ||
− | apt install nvidia-340 # untuk Tesla c1060 | + | # apt install nvidia-340 # untuk Tesla c1060 |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64/stubs" | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64/stubs" | ||
Line 18: | Line 27: | ||
==Install Aplikasi Pendukung== | ==Install Aplikasi Pendukung== | ||
− | sudo apt update | + | sudo su |
− | + | apt update | |
− | + | apt install qt5-default | |
+ | apt install cmake build-essential libboost-all-dev git | ||
==Download Source Code== | ==Download Source Code== | ||
Line 26: | Line 36: | ||
cd /usr/local/src | cd /usr/local/src | ||
git clone https://github.com/nicehash/nheqminer.git | git clone https://github.com/nicehash/nheqminer.git | ||
+ | chmod -Rf 777 nheqminer/ | ||
==Compile Assembler== | ==Compile Assembler== | ||
cd /usr/local/src | cd /usr/local/src | ||
+ | chmod -Rf 777 nheqminer/ | ||
cd nheqminer/cpu_xenoncat/asm_linux/ | cd nheqminer/cpu_xenoncat/asm_linux/ | ||
sh assemble.sh | sh assemble.sh | ||
Line 35: | Line 47: | ||
==Compile nheqminer== | ==Compile nheqminer== | ||
+ | export CUDA_CUDART_LIBRARY="/usr/local/cuda/lib64/libcudart.so" | ||
cd /usr/local/src | cd /usr/local/src | ||
− | + | chmod -Rf 777 nheqminer/ | |
+ | cd nheqminer | ||
mkdir build | mkdir build | ||
cd build | cd build | ||
− | cmake .. | + | cmake -DCUDA_CUDART_LIBRARY=CUDA_CUDART_LIBRARY .. |
make | make | ||
Line 46: | Line 60: | ||
Contoh menjalankan | Contoh menjalankan | ||
− | /usr/local/src | + | /usr/local/src/nheqminer/build/nheqminer -l zec.slushpool.com:4444 -u username.worker -p password |
− | /usr/local/src | + | /usr/local/src/nheqminer/build/nheqminer -l zec.slushpool.com:4444 -u username.worker -p password -t 2 (utk 2 thread) |
Latest revision as of 20:24, 26 September 2017
nheqminer sebaiknya di jalankan di arsitektur 64bit.
Install Driver NVidia 340
sudo apt-get install nvidia-340 nvidia-cuda-toolkit nvidia-340* nvidia-cuda* sudo modprobe nvidia_340
Cara ini berhasil mendetect Tesla c1060, tapi akan gagal saat compile
Install CUDA
WARNING: Experimental - gagal untuk nvidia 340
sudo su wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb apt update apt install cuda apt install nvidia-cuda-toolkit # apt install nvidia-340 # untuk Tesla c1060
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64/stubs" PATH="$PATH:/usr/local/cuda-8.0/" PATH="$PATH:/usr/local/cuda-8.0/bin"
Install Aplikasi Pendukung
sudo su apt update apt install qt5-default apt install cmake build-essential libboost-all-dev git
Download Source Code
cd /usr/local/src git clone https://github.com/nicehash/nheqminer.git chmod -Rf 777 nheqminer/
Compile Assembler
cd /usr/local/src chmod -Rf 777 nheqminer/ cd nheqminer/cpu_xenoncat/asm_linux/ sh assemble.sh
Compile nheqminer
export CUDA_CUDART_LIBRARY="/usr/local/cuda/lib64/libcudart.so" cd /usr/local/src chmod -Rf 777 nheqminer/ cd nheqminer
mkdir build cd build cmake -DCUDA_CUDART_LIBRARY=CUDA_CUDART_LIBRARY .. make
Contoh menjalankan
/usr/local/src/nheqminer/build/nheqminer -l zec.slushpool.com:4444 -u username.worker -p password /usr/local/src/nheqminer/build/nheqminer -l zec.slushpool.com:4444 -u username.worker -p password -t 2 (utk 2 thread)