Compiling 'cudaminer' on Arch & Debian
Jul 16, 2015
Arch Linux I originally tried using the AUR package but it had similar problems.
-
Move to your home folder
cd ~
-
Install git and cuda
pacman -S git cuda
-
Clone the cudaminer repository
git clone https://github.com/cbuchner1/CudaMiner.git
-
Move to the cloned repistories folder
cd CudaMiner
- Configure
export LD_LIBRARY_PATH=/opt/cuda/lib64 export PATH=$PATH:/opt/cuda/bin ./configure LIBS=-L/opt/cuda/lib64
- 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();
-
Compile
make -j4
-
./cudaminer
Debian 7 (Wheezy)
-
Download the latest CUDA toolkit https://developer.nvidia.com/cuda-downloads
- Extract the toolkit
chmod +x cuda* ./cuda* --extract=/root
- Install the toolkit and when it asks you for the install path enter ‘/opt/cuda’
chmod +x cuda-linux64-*.run ./cuda-linux64-*.run
-
Follow steps 3 -> 7 of the Arch guide and come back here
-
ldconfig /opt/cuda/lib ldconfig /opt/cuda/lib64
./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!!!)