mine doge

How to mine bitcoin with NVIDIA card and Ubuntu 16.04 using ccminer

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
sudo ./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:
gedit ~/.bashrc
Add the following to the end of the document ā€“ ā€œ
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-6.5/lib64:/lib ā€œ


then either close and reopen the terminal, or write "source .bashrc".
write echo $PATH to make sure it contains the cuda directory.

mine doge

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

gedit Makefile.am
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.

./ccminer --version

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


compiling ccminer
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

If you feel like it please donate with Bitcoin, I would really appreciate it.


8 thoughts on “How to mine bitcoin with NVIDIA card and Ubuntu 16.04 using ccminer”

  1. Hey excellent website! Does running a blog like this take a massive amount work? I have virtually no understanding of programming but I was hoping to start my own blog in the near future. Anyways, if you have any recommendations or tips for new blog owners please share. I know this is off subject however I just wanted to ask. Cheers!

  2. Hello my loved one! I want to say that this post is amazing, great written and include almost all significant infos. Iā€™d like to peer extra posts like this .

  3. I think other website proprietors should take this website as an model, very clean and great user genial style and design, let alone the content. You are an expert in this topic!

  4. I feel that is one of the such a lot important information for me. And i’m happy studying your article. But should commentary on few basic things, The web site style is ideal, the articles is in point of fact great : D. Just right activity, cheers

Comments are closed.