Cgminer On Linux Exiting Without Mining

Discussion in 'cgminer' started by Lee Sharp, Feb 7, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    I am trying to run cgminer on Linux. I do not get any errors, but it just does not run either.

    Code:
    lee@dev01:~/Decred/cgminer-decred-linux-x86_64-20160204$ ./cgminer --blake256 --benchmark
    [2016-02-07 19:43:49]
    Summary of runtime statistics:
                       
    [2016-02-07 19:43:49] Started at                    
    [2016-02-07 19:43:49] Pool: Benchmark                   
    [2016-02-07 19:43:49] Runtime: 404137 hrs : 43 mins : 49 secs                   
    [2016-02-07 19:43:49] Average hashrate: 0.0 Kilohash/s                   
    [2016-02-07 19:43:49] Solved blocks: 0                   
    [2016-02-07 19:43:49] Best share difficulty: 0                   
    [2016-02-07 19:43:49] Share submissions: 0                   
    [2016-02-07 19:43:49] Accepted shares: 0                   
    [2016-02-07 19:43:49] Rejected shares: 0                   
    [2016-02-07 19:43:49] Accepted difficulty shares: 0                   
    [2016-02-07 19:43:49] Rejected difficulty shares: 0                   
    [2016-02-07 19:43:49] Hardware errors: 0                   
    [2016-02-07 19:43:49] Utility (accepted shares / min): 0.00/min                   
    [2016-02-07 19:43:49] Work Utility (diff1 shares solved / min): 0.00/min
                       
    [2016-02-07 19:43:49] Stale submissions discarded due to new blocks: 0                   
    [2016-02-07 19:43:49] Unable to get work from server occasions: 0                   
    [2016-02-07 19:43:49] Work items generated locally: 0                   
    [2016-02-07 19:43:49] Submitting work remotely delay occasions: 0                   
    [2016-02-07 19:43:49] New blocks detected on network: 0
                       
    [2016-02-07 19:43:49] Summary of per device statistics:
                       
    [2016-02-07 19:43:49]                     
    lee@dev01:~/Decred/cgminer-decred-linux-x86_64-20160204$ ./cgminer --blake256 -o https://127.0.0.1:19109 -u user -p pass
    lee@dev01:~/Decred/cgminer-decred-linux-x86_64-20160204$
    
    What am I missing? Linux, Ubunty 14.03.3 fully patched. the nVidia binary drivers installed and all the supplemental packages anyone has mentioned.
    openjdk-7-jre openjdk-7-jdk mesa-utils libssh2-1 libjansson4...
     
  2. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    This works for me on win7 for gpu #2. Maybe try being more specific? platform 0 would be gpu#1.

    cgminer.exe --blake256 --benchmark --gpu-platform 1
     
  3. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    Tried that and 0 just in case, and no love...
    Code:
    lee@dev01:~/Decred/cgminer-decred-linux-x86_64-20160204$ ./cgminer --blake256 --benchmark --gpu-platform 1
    [2016-02-07 21:38:27]
    Summary of runtime statistics:
                       
    [2016-02-07 21:38:27] Started at                    
    [2016-02-07 21:38:27] Pool: Benchmark                   
    [2016-02-07 21:38:27] Runtime: 404139 hrs : 38 mins : 27 secs                   
    [2016-02-07 21:38:27] Average hashrate: 0.0 Kilohash/s                   
    [2016-02-07 21:38:27] Solved blocks: 0                   
    [2016-02-07 21:38:27] Best share difficulty: 0                   
    [2016-02-07 21:38:27] Share submissions: 0                   
    [2016-02-07 21:38:27] Accepted shares: 0                   
    [2016-02-07 21:38:27] Rejected shares: 0                   
    [2016-02-07 21:38:27] Accepted difficulty shares: 0                   
    [2016-02-07 21:38:27] Rejected difficulty shares: 0                   
    [2016-02-07 21:38:27] Hardware errors: 0                   
    [2016-02-07 21:38:27] Utility (accepted shares / min): 0.00/min                   
    [2016-02-07 21:38:27] Work Utility (diff1 shares solved / min): 0.00/min
                       
    [2016-02-07 21:38:27] Stale submissions discarded due to new blocks: 0                   
    [2016-02-07 21:38:27] Unable to get work from server occasions: 0                   
    [2016-02-07 21:38:27] Work items generated locally: 0                   
    [2016-02-07 21:38:27] Submitting work remotely delay occasions: 0                   
    [2016-02-07 21:38:27] New blocks detected on network: 0
                       
    [2016-02-07 21:38:27] Summary of per device statistics:
                       
    [2016-02-07 21:38:27]                     
    lee@dev01:~/Decred/cgminer-decred-linux-x86_64-20160204$
     
  4. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    Found it! For some reason, cgminer needs root! Nothing else but cgminer, and frankly I can not understand why...
     
  5. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    That's interesting. I've never tried to mine under *nix, so I wasn't aware of that either. I suspect it probably has to do with OpenCL needing special access to the GPU driver or something similar.
     
    Lee Sharp likes this.
  6. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    I was going to say similar, weird hardware level access requirements...
     
  7. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    But you can hit it with user level access. All of my games (and with Steam, I have a LOT...) run in user level access and do not need root. As a security guy, I pay attention to these things. :) If I keep mining any length of time, I will work on that and see if I can remove the need for root.
     
  8. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    cgminer.conf/cgminer can modify GPU core clock. There is your answer.

    I was messing around with the .conf and set mine from 1010 to 1060 by only changing the .conf file.
     
  9. rille_swe

    rille_swe New Member

    Jan 31, 2016
    10
    3
    Male
    I get cgminer: --blake256: unrecognized option when i try to run cgminer --blake256 --benchmark on ubuntu.
    Am i missing something?
    I run as root, ubuntu 15.10, installed cgminer 4.9.2, fglrx-amdcccle-updates, run clinfo works and finds graphics card.
    Have anyone had similar problems. Really like to get it to work since i joined to learn :)
     
  10. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Anyone got cgminer working in Ubuntu?

    Intel GPU?
     
  11. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    I had cgminer working in Ubuntu 14.04 with nVidia. You need a driver with openCL support. With nVidia it is the restricted driver. For Intel, this may help. https://wiki.tiker.net/OpenCLHowTo
     
  12. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I didn't understand a lot of what he meant. Can u tell me the commands I need to use to install opencl for mining?
     
  13. root

    root Member

    Feb 3, 2016
    381
    76
  14. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
  15. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    Really, if this does not work for you, then I doubt your can be helped. https://wiki.tiker.net/OpenCLHowTo#Installing_the_Intel_CPU_ICD

    There are two reasons for this. The big one is that Intel graphics are not that good at 3D so things needing a lot of GPU simply do not use them often. You just do not have the attention of nVidia.

    Second, if that is beyond you, the next several steps will probably be as well.
     
  16. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    The problem with the guide is I am not sure what all have to be installed. Can u throw some light upon them?
    Also another problem is this guide is too old, Now the intel opencl files are different. Before there was only 1 but now they are split into a lot of different files.
     
  17. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
  18. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    And this is my point. No one uses Intel OpenCL, so there is very little community support for it. And what there is has focused on redhat like systems.

    You can also get better performance out of a $100 nVidia card, so why not use that?

    (The Beignet will may be better then the Intel drivers, but both are much harder then nVidia.)
     
  19. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Just a somewhat funny input on using AMD's drivers in Ubuntu...
    After screwing up my fglrx configuration, I actually had to use a root shell in system recovery to uninstall some default Ubuntu drivers before my AMD cards would work.

    Linux if finicky and it takes a lot of attention to detail and troubleshooting. But to me, that's what makes it enjoyable to use!
     
  20. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    "My car continually breaks down on the highway which is why I tow a trailer carrying spare parts, but I really love stopping every twenty minutes to replace something. That's what makes it enjoyable to drive."

    Sorry, couldn't help myself :)
     
    drunkenmugsy, Johnshpon3 and David like this.

Share This Page