CCminer X11 mining on NVidia cards

ROYALEwitCHEESE

New Member
Jul 9, 2014
16
5
3
Is there a guide anywhere as I don't know where to find the cpu miner for windows as I can only find linux guides on installing darkcoin-cpuminer-1.3-avx-aes-master is this the miner I want for windows as well?

downloaded the cpuminr 1.3 and I think I should be using minerd-core-avx-i but I don't know where the config file is to set it up.
 
Last edited by a moderator:

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
Is there a guide anywhere as I don't know where to find the cpu miner for windows as I can only find linux guides on installing darkcoin-cpuminer-1.3-avx-aes-master is this the miner I want for windows as well?

downloaded the cpuminr 1.3 and I think I should be using minerd-core-avx-i but I don't know where the config file is to set it up.
Actually i posted the link to windows ccminer in my last post :)
 

ROYALEwitCHEESE

New Member
Jul 9, 2014
16
5
3
All looks to be good getting ~2800 khash/s with my 680 and ~100 khash per core on my 3570k thanks for the help flare.
I'm actually getting an unstable hash rate on my gpu it's not staying at 2800 and dipping as low as 400 is that something to do with my setup potentially? edit: sorry I'm a complete newbie to mining.
 

ROYALEwitCHEESE

New Member
Jul 9, 2014
16
5
3
Nevermind I didn't have percision installed yet as this windows installation is fresh and once I set an aggressive fan curve and got the temps down my hash rate went back up.
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany

erikasas

New Member
Jul 18, 2014
2
0
1
Hello, So i am kinda new to mining, and decided to give it a go.

The problem is that my two gpu's (i know they are old) are giving me ridiculously high khash, but the other one gpu, is working properly. Can anybody help me fix this or tell me whats the problem ?
Also it is not giving me any real khash.

Here is what i did, reinstalled the drivers, and installed cuda.

Here is what the miner shows me:
Code:
[2014-07-18 18:35:35] Binding thread 1 to cpu 1
[2014-07-18 18:35:35] 3 miner threads started, using 'x11' algorithm.
[2014-07-18 18:35:35] Binding thread 0 to cpu 0
[2014-07-18 18:35:35] Binding thread 2 to cpu 2
[2014-07-18 18:35:36] GPU #1: GeForce 210, 9279 khash/s
[2014-07-18 18:35:36] GPU #2: GeForce 8500 GT, 7943 khash/s
[2014-07-18 18:35:36] GPU #0: GeForce GTX 660, 1413 khash/s
[2014-07-18 18:35:37] GPU #2: GeForce 8500 GT, 365015 khash/s
[2014-07-18 18:35:37] GPU #1: GeForce 210, 362475 khash/s
[2014-07-18 18:35:39] GPU #1: GeForce 210, 448174 khash/s
[2014-07-18 18:35:42] GPU #1: GeForce 210, 462750 khash/s
[2014-07-18 18:35:45] GPU #1: GeForce 210, 563015 khash/s
[2014-07-18 18:35:47] GPU #1: GeForce 210, 564347 khash/s
[2014-07-18 18:35:50] GPU #1: GeForce 210, 669042 khash/s
[2014-07-18 18:35:52] GPU #1: GeForce 210, 666860 khash/s
[2014-07-18 18:35:55] GPU #1: GeForce 210, 507173 khash/s
[2014-07-18 18:35:57] GPU #0: GeForce GTX 660, 1836 khash/s
[2014-07-18 18:35:57] accepted: 1/1 (100.00%), 874024 khash/s (yay!!!)
[2014-07-18 18:35:57] GPU #1: GeForce 210, 582960 khash/s
[2014-07-18 18:35:59] GPU #1: GeForce 210, 634078 khash/s
[2014-07-18 18:36:02] GPU #1: GeForce 210, 576853 khash/s
[2014-07-18 18:36:05] GPU #1: GeForce 210, 499389 khash/s
 
Last edited by a moderator:

ROYALEwitCHEESE

New Member
Jul 9, 2014
16
5
3
I'm not positive but I can tell you this happens to me when the card driver has crashed. The gpu usage goes down and the hash rate goes up to number like the ones that you listed. It could be a voltage/heat/driver issue IMO but I'm not sure.

Edit: Just realized some of your cards are probably too old as it it has to support at least Cuda 2.0 I believe and it probably makes sense then why only your 660 is making realistic numbers.
 
Last edited by a moderator:
  • Like
Reactions: erikasas and flare

ScioMind

Member
May 28, 2014
183
73
88
Hi all. I've recently purchased a pretty decent computer with an NVIDIA GTX 780 Ti graphics card...and hoping to mine the hell out of darkcoin! I've already installed Ubuntu 12.04 LTS and have been all over the 'net trying to wrap my head around the procedure for installing ccminer, a.k.a cuda miner.

It seems there are basically two large steps: the first is to install cuda-tools and the second is to install the miner itself.

For the first step, installing cuda-toos, I have seen a bunch of different tutorials of varying complexity...but I have also seen that I can simply install them by using the gui package manager, and installing the package "nvidia-cuda-toolkit." Is this correct? Is that really all I need to do, or am I mislead on this?

As for installing ccminer/cuda-miner, I am having much more difficulty finding a straight-forward tutorial. Can anyone please help with this?
By the way, once I have done this myself I will probably write up my own complete, step-by-step tutorial, to make the process as clear as possible for others, so by helping me hopefully you will be in turn helping others.

As always, thanks in advance!
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
Hi all. I've recently purchased a pretty decent computer with an NVIDIA GTX 780 Ti graphics card...and hoping to mine the hell out of darkcoin! I've already installed Ubuntu 12.04 LTS and have been all over the 'net trying to wrap my head around the procedure for installing ccminer, a.k.a cuda miner.

It seems there are basically two large steps: the first is to install cuda-tools and the second is to install the miner itself.

For the first step, installing cuda-toos, I have seen a bunch of different tutorials of varying complexity...but I have also seen that I can simply install them by using the gui package manager, and installing the package "nvidia-cuda-toolkit." Is this correct? Is that really all I need to do, or am I mislead on this?

As for installing ccminer/cuda-miner, I am having much more difficulty finding a straight-forward tutorial. Can anyone please help with this?
By the way, once I have done this myself I will probably write up my own complete, step-by-step tutorial, to make the process as clear as possible for others, so by helping me hopefully you will be in turn helping others.

As always, thanks in advance!
You are right about the two large steps:

1) Install CUDA Toolkit
2) Compile ccminer

Installing CUDA toolkit on Ubuntu 12.04 LTS 64bit worked for me like this

Code:
sudo apt-get update
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev gcc make -y
sudo apt-get install libcurl4-openssl-dev autoconf git screen libncurses5-dev -y
sudo apt-get install linux-headers-$(uname -r) -y
wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run
sudo sh cuda_5.5.22_linux_64.run -silent -driver -toolkit
Note: Have not tried CUDA 6 on Ubuntu 12.04 LTS, but it should be like above just with last two command replaced with

Code:
[...]
wget http://developer.download.nvidia.com/compute/cuda/6_0/rel/installers/cuda_6.0.37_linux_64.run
sudo sh cuda_6.0.37_linux_64.run -silent -driver -toolkit


After sucessful CUDA toolkit installation you should be able to compile your cuda-/ccminer with

Code:
./autogen.sh
./configure
PATH=/usr/local/cuda-5.5/bin:$PATH make
After sucessful compile run the miner with

Code:
LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64 ./ccminer {your_options}
HTH,
Holger
 
Last edited by a moderator:
  • Like
Reactions: ScioMind and vertoe

ScioMind

Member
May 28, 2014
183
73
88
Much appreciated!

One more question: I've seen the miner in various places online; where should I download it from, and where should I download it to on my system?
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
  • Like
Reactions: ScioMind

ScioMind

Member
May 28, 2014
183
73
88
All went smoothly until I executed this line:

PATH=/usr/local/cuda-5.5/bin:$PATH make

At first it seemed to be going well, but it ended with the following errors:

/bin/bash: nvcc: command not found
make[2]: *** [heavy/heavy.o] Error 127
make[2]: Leaving directory `/home/kflynn/ccminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kflynn/ccminer-master'
make: *** [all] Error 2

Any ideas? Did I miss something?
 

ScioMind

Member
May 28, 2014
183
73
88
I suspected that if I removed the "-silent" from the line...
sudo sh cuda_5.5.22_linux_64.run -silent -driver -toolkit
...I might get some clues...and I did. I needed to shut down my X server first...will try again later or probably tomorrow.
 
  • Like
Reactions: flare

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
I suspected that if I removed the "-silent" from the line...
sudo sh cuda_5.5.22_linux_64.run -silent -driver -toolkit
...I might get some clues...and I did. I needed to shut down my X server first...will try again later or probably tomorrow.
Actually i always installed this always on headless system without x server :)

Let me know if it works for you
 

ScioMind

Member
May 28, 2014
183
73
88
This is proving quite difficult...fortunately this machine is brand new and specifically intended for mining, and never used for anything else yet, so I am able to reinstall ubuntu every time things get too messed up. I am working a lot of hours for the next couple of weeks so I only have 2 or 3 hours in the evening to devote to this. I'm confident I'll work through this, however, and as stated, I will keep you posted as to how it's going. When I finally figure it out I'll post a good tutorial explaining exactly what I did.

Now...to reinstall...again LOL.
 

ScioMind

Member
May 28, 2014
183
73
88
Great news! I installed cuda-tools and even checked out a few of the samples...cool! I then proceeded to install ccminer, and the installation seemed to complete successfully.

My question at this point is: What are the suggested options for running ccminer? Or...how can I determine what my optimum options should be?
 

ScioMind

Member
May 28, 2014
183
73
88
And by the way, I installed cuda-tools 6.0, ccminer 1.2, and am running a single NVIDIA GTX 780 Ti graphics card...if that information helps.
 

bitcoin24

New Member
Jul 25, 2014
2
0
1
Hello Darkcoin community.
I want to start mining and i dont have an dedicated rig for this. I just have an pc with nvidia gt 430 videocard. Yes i know is weak but for experiment is okay.
So i try last two days to setup an GPU miner but with no positive results.
I've tested sgminer,phm-sgminer,cudaminer nothing to work just errors.
So far i found phm-sgminer 4.1.0 starting but it gives me errors too.
So can anyone make me a little guide on how to setup my GT430 mining darkcoins?
I've tryied to add an image and my .conf file to understand my problem better but forum policy don't allow me ...


Thank you.
 

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
I've tested sgminer,phm-sgminer,cudaminer nothing to work just errors.
So far i found phm-sgminer 4.1.0 starting but it gives me errors too.
So can anyone make me a little guide on how to setup my GT430 mining darkcoins?
Check out CCMiner 1.2, i moved your post to the apropriate thread.
 

bitcoin24

New Member
Jul 25, 2014
2
0
1
Check out CCMiner 1.2, i moved your post to the apropriate thread.
Ok. it starts but it shows me this for about 10 minutes...nothing else happening.
Also the hash rate is too big for this old card.

This is a paste from my miner window.
[2014-07-25 13:16:04] 1 miner threads started, using 'x11' algorithm.
[2014-07-25 13:16:04] Starting Stratum on .. ( the pool link..forum denied link :) )
[2014-07-25 13:16:05] GPU #0: GeForce GT 430, 9100 khash/s
[2014-07-25 13:16:06] GPU #0: GeForce GT 430, 613392 khash/s

LATER EDIT :after 15 minutes this appears on miner window
[2014-07-25 13:32:34]stratum_recv_line failed
[2014-07-25 13:32:34]Stratum connection interrupted
 
Last edited by a moderator:

ScioMind

Member
May 28, 2014
183
73
88
I've installed cuda tools and ccminer, but when I try to run ccminer I just get a message telling me what version it is, who wrote it, etc....but it doesnt seem to be mining at all.

I am really in need of some information about the command line options I should set.
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
I've installed cuda tools and ccminer, but when I try to run ccminer I just get a message telling me what version it is, who wrote it, etc....but it doesnt seem to be mining at all.

I am really in need of some information about the command line options I should set.
Use --help

Code:
C:\darkcoin\testnet\ccminer-v1.2\x86>ccminer.exe --help
     *** ccMiner for nVidia GPUs by Christian Buchner and Christian H. ***
                     This is version 1.2 (beta)
          based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
          based on pooler-cpuminer extension for HVC from
               https://github.com/heavycoin/cpuminer-heavycoin
                        and
               http://hvc.1gh.com/
        Cuda additions Copyright 2014 Christian Buchner, Christian H.
          LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm
          BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM
          YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4
Usage: minerd [OPTIONS]
Options:
  -a, --algo=ALGO       specify the algorithm to use
                        fugue256  Fuguecoin hash
                        heavy     Heavycoin hash
                        mjollnir  Mjollnircoin hash
                        groestl   Groestlcoin hash
                        myr-gr    Myriad-Groestl hash
                        jackpot   Jackpot hash
                        quark     Quark hash
                        anime     Animecoin hash
                        nist5     NIST5 (TalkCoin) hash
                        x11       X11 (DarkCoin) hash
                        x13       X13 (MaruCoin) hash
                        dmd-gr    Diamond-Groestl hash
  -d, --devices         takes a comma separated list of CUDA devices to use.
                        Device IDs start counting from 0! Alternatively takes
                        string names of your cards like gtx780ti or gt640#2
                        (matching 2nd gt640 in the PC)
  -f, --diff            Divide difficulty by this factor (std is 1)
  -v, --vote=VOTE       block reward vote (for HeavyCoin)
  -m, --trust-pool      trust the max block reward vote (maxvote) sent by the pool
  -o, --url=URL         URL of mining server
  -O, --userpass=U:P    username:password pair for mining server
  -u, --user=USERNAME   username for mining server
  -p, --pass=PASSWORD   password for mining server
      --cert=FILE       certificate for mining server using SSL
  -x, --proxy=[PROTOCOL://]HOST[:PORT]  connect through a proxy
  -t, --threads=N       number of miner threads (default: number of nVidia GPUs)

  -r, --retries=N       number of times to retry if a network call fails
                          (default: retry indefinitely)
  -R, --retry-pause=N   time to pause between retries, in seconds (default: 30)
  -T, --timeout=N       network timeout, in seconds (default: 270)
  -s, --scantime=N      upper bound on time spent scanning current work when
                          long polling is unavailable, in seconds (default: 5)
      --no-longpoll     disable X-Long-Polling support
      --no-stratum      disable X-Stratum support
  -q, --quiet           disable per-thread hashmeter output
  -D, --debug           enable debug output
  -P, --protocol-dump   verbose dump of protocol-level activities
      --benchmark       run in offline benchmark mode
  -c, --config=FILE     load a JSON-format configuration file
  -V, --version         display version information and exit
  -h, --help            display this help text and exit
This commandline works very well for me

Code:
ccminer.exe --algo=x11 -o localhost:19998 -u darkcoinrpc -p mySUPERsecretPASSWORD
 

ScioMind

Member
May 28, 2014
183
73
88
Use --help

Code:
C:\darkcoin\testnet\ccminer-v1.2\x86>ccminer.exe --help
     *** ccMiner for nVidia GPUs by Christian Buchner and Christian H. ***
                     This is version 1.2 (beta)
          based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
          based on pooler-cpuminer extension for HVC from
               https://github.com/heavycoin/cpuminer-heavycoin
                        and
               http://hvc.1gh.com/
        Cuda additions Copyright 2014 Christian Buchner, Christian H.
          LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm
          BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM
          YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4
Usage: minerd [OPTIONS]
Options:
  -a, --algo=ALGO       specify the algorithm to use
                        fugue256  Fuguecoin hash
                        heavy     Heavycoin hash
                        mjollnir  Mjollnircoin hash
                        groestl   Groestlcoin hash
                        myr-gr    Myriad-Groestl hash
                        jackpot   Jackpot hash
                        quark     Quark hash
                        anime     Animecoin hash
                        nist5     NIST5 (TalkCoin) hash
                        x11       X11 (DarkCoin) hash
                        x13       X13 (MaruCoin) hash
                        dmd-gr    Diamond-Groestl hash
  -d, --devices         takes a comma separated list of CUDA devices to use.
                        Device IDs start counting from 0! Alternatively takes
                        string names of your cards like gtx780ti or gt640#2
                        (matching 2nd gt640 in the PC)
  -f, --diff            Divide difficulty by this factor (std is 1)
  -v, --vote=VOTE       block reward vote (for HeavyCoin)
  -m, --trust-pool      trust the max block reward vote (maxvote) sent by the pool
  -o, --url=URL         URL of mining server
  -O, --userpass=U:P    username:password pair for mining server
  -u, --user=USERNAME   username for mining server
  -p, --pass=PASSWORD   password for mining server
      --cert=FILE       certificate for mining server using SSL
  -x, --proxy=[PROTOCOL://]HOST[:PORT]  connect through a proxy
  -t, --threads=N       number of miner threads (default: number of nVidia GPUs)

  -r, --retries=N       number of times to retry if a network call fails
                          (default: retry indefinitely)
  -R, --retry-pause=N   time to pause between retries, in seconds (default: 30)
  -T, --timeout=N       network timeout, in seconds (default: 270)
  -s, --scantime=N      upper bound on time spent scanning current work when
                          long polling is unavailable, in seconds (default: 5)
      --no-longpoll     disable X-Long-Polling support
      --no-stratum      disable X-Stratum support
  -q, --quiet           disable per-thread hashmeter output
  -D, --debug           enable debug output
  -P, --protocol-dump   verbose dump of protocol-level activities
      --benchmark       run in offline benchmark mode
  -c, --config=FILE     load a JSON-format configuration file
  -V, --version         display version information and exit
  -h, --help            display this help text and exit
This commandline works very well for me

Code:
ccminer.exe --algo=x11 -o localhost:19998 -u darkcoinrpc -p mySUPERsecretPASSWORD
"--help" was the first thing I tried....and I am still struggling with this. It seems that the command line you quoted is for windows, but I am running Ubuntu.

Here's the command line I am currinetly working with:
LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib64 ./ccminer -a X11 -d gtx780ti -f 1 -o stratum+tcp://162.209.99.35:7903 -u XhwsyqCT5pXmfbMCvjkVefcqTAzsUd1y2z -P mypassword -t 1 -D

Of course, I have been trying all sorts of variations as well. I know I am very close...and also a bit frustrated!
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
"--help" was the first thing I tried....and I am still struggling with this. It seems that the command line you quoted is for windows, but I am running Ubuntu.

Here's the command line I am currinetly working with:
LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib64 ./ccminer -a X11 -d gtx780ti -f 1 -o stratum+tcp://162.209.99.35:7903 -u XhwsyqCT5pXmfbMCvjkVefcqTAzsUd1y2z -P mypassword -t 1 -D

Of course, I have been trying all sorts of variations as well. I know I am very close...and also a bit frustrated!
I can see absolutely no reason in the sourcecode why Ubuntu version should differ in options from Windows version

https://github.com/cbuchner1/ccminer/blob/master/cpu-miner.c#L210-L264

For me the Ubuntu version works with the same options as i wrote above - maybe cuda 6 doesnt work and you should try cuda 5.5 as this is the officially supported cuda version...
 

ScioMind

Member
May 28, 2014
183
73
88
I can see absolutely no reason in the sourcecode why Ubuntu version should differ in options from Windows version

https://github.com/cbuchner1/ccminer/blob/master/cpu-miner.c#L210-L264

For me the Ubuntu version works with the same options as i wrote above - maybe cuda 6 doesnt work and you should try cuda 5.5 as this is the officially supported cuda version...
The thing about 5.5 vs 6.0 is a possibility. Also, it is my understanding that on windows it is typical to create a .bat file, but obviously this would not be the case on Ubuntu...but is there perhaps some configuration file?