Install and run nheqminer-0.5c on Ubuntu Server 16.04

 

  • Declare 4 lines of Path in .profile
    • $ sudo nano .profile
    • Add these:
      • 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”
      • CUDA_CUDART_LIBRARY=”/usr/local/cuda-8.0/lib64/libcudart.so”

 

  • Install nheqminer:
    • $ git clone https://github.com/nicehash/nheqminer.git
    • $ cd nheqminer/cpu_xenoncat/asm_linux/
    • $ sh assemble.sh
    • (if permission denied: $ sudo chmod +x * to set permission)
    • $ mkdir build
    • $ cd build
    • $ cmake -DCUDA_CUDART_LIBRARY=CUDA_CUDART_LIBRARY ../nheqminer
    • $ make -j $(nproc)

 

  • Test nheqminer in benmark mode with CPU:
    • $ cd build (go to app folder if needed)
    • $ ./nheqminer -b

 

  • Run with CPU (example with 8 cores: from 0-7)
    • $ ~/build$ ./nheqminer -l us.zec.slushpool.com:4444 -u user.worker -t 8

 

  • Run with GPU (example with 1 core: from 0):
    • ~/build$ ./nheqminer -l us.zec.slushpool.com:4444 -u user.worker -cd 0

 

Notes:

  • $ before above commands denote start of line, do not keep it ($) when copying commands to terminal windows)
  • Error while running nheqminer: CUDA error ‘an illegal memory access was encountered’ in func ‘solve’ at line xxxx. Possible reason: Old graphic cards don’t support CUDA 8.0
  • Error in installing nheqminer: Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY). Solution: add CUDA_CUDART_LIBRARY in environment as shown above.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s