ccminer is a NVIDIA-CUDA GPU miner, based on the old CudaMiner which allegedly was discontinued in 2014.
ccminer has support for pretty much all of the popular hashing algorithms, except ethash as far as I can tell, so you can mine not only Bitcoin, but also pretty much any other coin.
I found a few guides out there, but none were complete in the sense that if I simply followed them to the point I could compile ccminer. This here is a sort of compilation of the resources that I used to get ccminer by tpruvot to work, with a bit of explanation in steps. You should probably be a little familiar with the terminal because it's not 100% accurate in terms of the commands to write.
Please keep in mind that GPU mining is not really profitable unless you have free electricity, or you mine a coin that is favored by GPU (and it hasn't become popular yet).
Step 1: install the newest NVIDIA driver in Additional Drivers
Step 2: Install CUDA Toolkit using run-file downloaded from NVIDIA newbsite
sudo chmod +x ./Downloads/cuda_*.run
Don't install the driver as we just installed it in Additional Drivers, but accept everything else (samples, toolkit..)
It might warn that you are running on an unsupported platform, but it worked fine for me, so just say yes.
Here 6.5 is used because that's what tpruvot specified in ccminer, but you can try newer versions. Older no. I couldn't get it to work with 9.1.
According to NVIDIA it should work: https://devtalk.nvidia.com/default/topic/1027578/cuda-setup-and-installation/does-later-versions-of-cuda-support-older-gpus-/post/5226822/#5226822
add -override compiler if it complains
add cuda to environment variables:
Add the following to the end of the document – “
then either close and reopen the terminal, or write "source .bashrc".
write echo $PATH to make sure it contains the cuda directory.
Step 3: install ccminer https://github.com/tpruvot/ccminer/blob/linux/INSTALL
ccminer is based on CudaMiner
TL;DR install ccminer
git clone https://github.com/tpruvot/ccminer.git
sudo apt-get install libcurl4-openssl-dev libssl-dev libjansson-dev automake autotools-dev build-essential
Around line 85 find this.
nvcc_ARCH = -gencode=arch=compute_50,code=\"sm_50,compute_50\"
nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
#nvcc_ARCH += -gencode=arch=compute_61,code=\"sm_61,compute_61\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"
#nvcc_ARCH += -gencode=arch=compute_20,code=\"sm_21,compute_20\"
If you only have one graphics card, comment each line with # except the one corresponding to your GPU. Find out which one is for you here: https://github.com/tpruvot/ccminer/wiki/Compatibility
Make sure it doesn't say +=, but = after nvcc_ARCH at your first instance of the line. Only the equals sign.
now sign up at multipool.us or anywhere else and do something like:
./ccminer -o stratum+tcp://us.multipool.us:3334 -a scrypt -u simernes.1 -p myPassword
where simernes is the login to the site, and 1 is the worker name. So basically the entered username is the worker to use. This varies from pool to pool how it's done, and some pools don't even require registration -- and maybe the password is your bitcoin address.
Installing CUDA Toolkit:
Hello! i have same problem and decide theese next decisions:
unfortunately try export PERL5LIB and see in log whatever installer not seem file InstallUtils.pm
1. unpack .run file ./cuda*.run --tar mxvf
2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
3. export $PERL5LIB
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50