Compiling 'cudaminer' on Arch & Debian
Jul 16, 2015

Arch Linux I originally tried using the AUR package but it had similar problems.

  1. Move to your home folder cd ~

  2. Install git and cuda pacman -S git cuda

  3. Clone the cudaminer repository git clone https://github.com/cbuchner1/CudaMiner.git

  4. Move to the cloned repistories folder cd CudaMiner

  5. Configure
    export LD_LIBRARY_PATH=/opt/cuda/lib64
    export PATH=$PATH:/opt/cuda/bin
    ./configure LIBS=-L/opt/cuda/lib64
    
  6. Edit salsa_kernel.cu and comment out every reference to TestKernel();

nano salsa_kernel.cu case 'X': *kernel = new TestKernel(); break;

and

else if ((device_config[thr_id] != NULL && device_config[thr_id][0] == 'X'))
kernel = new TestKernel();
  1. Compile make -j4

  2. ./cudaminer

Debian 7 (Wheezy)

  1. Download the latest CUDA toolkit https://developer.nvidia.com/cuda-downloads

  2. Extract the toolkit
    chmod +x cuda*
    ./cuda* --extract=/root
    
  3. Install the toolkit and when it asks you for the install path enter ‘/opt/cuda’
    chmod +x cuda-linux64-*.run
    ./cuda-linux64-*.run
    
  4. Follow steps 3 -> 7 of the Arch guide and come back here

  5. ldconfig /opt/cuda/lib
    ldconfig /opt/cuda/lib64
    
  6. ./cudaminer
    [2013-11-26 19:21:02] Stratum detected new block
    [2013-11-26 19:21:02] GPU #0: GeForce GTX 770, 1122304 hashes, 219.23 khash/s
    [2013-11-26 19:21:03] GPU #0: GeForce GTX 770, 212992 hashes, 212.47 khash/s
    [2013-11-26 19:21:03] accepted: 598/616 (97.08%), 212.47 khash/s (yay!!!)
    [2013-11-26 19:21:18] GPU #0: GeForce GTX 770, 3350528 hashes, 220.26 khash/s
    [2013-11-26 19:21:18] accepted: 599/617 (97.08%), 220.26 khash/s (yay!!!)
    [2013-11-26 19:21:18] GPU #0: GeForce GTX 770, 131072 hashes, 207.94 khash/s
    [2013-11-26 19:21:18] accepted: 600/618 (97.09%), 207.94 khash/s (yay!!!)
    [2013-11-26 19:21:38] GPU #0: GeForce GTX 770, 4227072 hashes, 220.37 khash/s
    [2013-11-26 19:21:38] accepted: 601/619 (97.09%), 220.37 khash/s (yay!!!)
    [2013-11-26 19:22:02] GPU #0: GeForce GTX 770, 5414912 hashes, 220.46 khash/s
    [2013-11-26 19:22:07] accepted: 602/620 (97.10%), 220.46 khash/s (yay!!!)
    
Comments