Cgminer Hardware Performance

Discussion in 'Proof-of-work Mining' started by tacotime, Jan 27, 2016.

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

    tacotime Hero Member

    Dec 7, 2015
    410
    1,133
    #1 tacotime, Jan 27, 2016
    Last edited: Jan 27, 2016
    Bruno Henrique, zero, David and 3 others like this.
  2. LDWCom

    LDWCom New Member

  3. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    Can you statically link the signed binaries, I'm getting issues with some linked libraries in ubuntu 14.04 LTE:


    piffio@sheldon:~/decred/cgminer-decred-linux-x86_64-20160127$ ./cgminer
    ./cgminer: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory
     
  4. Maicol792

    Maicol792 New Member
    Advocate (BitcoinTalk)

    Jan 5, 2016
    40
    22
    Male
    #4 Maicol792, Jan 27, 2016
    Last edited: Jan 27, 2016
    First test whit w64 binaries published on bitcointalk thread form Legendary Wolf0 :) in benchmark mode with amd R9 270 i have stable 820 Mh/s whit no TLS and CPU miner disabled because whit CPU miner (nicehash miner) i have near 200 Mh/s ... In bat file all SETX form amd and afther commandline cgminer --blake256 --benchmark

    Tomorrow i test v.0.0 testnet and w32 binaries downloaded from github/decred/cgminer
     
  5. badam

    badam New Member

    Jan 27, 2016
    3
    0
    Male
    #5 badam, Jan 27, 2016
    Last edited: Jan 27, 2016
    I tested also with Wolf0s binaries on testnet my hashrate is ~1.450GH on an AMD R9 280X
    I am getting about the same with the official binaries too
     
  6. rodrigoext

    rodrigoext New Member

    Jan 15, 2016
    5
    3
    Male
    Nvidia GTX 780 was arround 640 Mhs
     
    Emilio Mann likes this.
  7. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    #7 jolan, Jan 27, 2016
    Last edited: Jan 27, 2016
    I was afraid of statically linking since AMD/Intel/Nvidia all have their own OpenCL library which gets dlopen()'d when the program starts. The OpenCL library only works with the vendor's hardware/driver version.

    Can you try:

    https://github.com/decred/cgminer/r...gminer-decred-linux-x86_64-20160127-v2.tar.gz

    I added libncursesw.so.6 to the tarball.

    You may need to do:

    Code:
    $ LD_LIBRARY_PATH=. ./cgminer --blake256 --benchmark
    
    to get it to load the library.
     
    jimmy16 likes this.
  8. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    The issue with ncurses is now fixed, but I'm having more problems with library versions:
    Code:
    piffio@sheldon:~/decred/cgminer-decred-linux-x86_64-20160127-v2$ LD_LIBRARY_PATH=.:/usr/local/cuda-7.5/lib64 ./cgminer LD_LIBRARY_PATH=. ./cgminer --blake256 --benchmark
    ./cgminer: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: no version information available (required by ./cgminer)
    ./cgminer: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by ./cgminer)
    
    Are there somewhere build instructions in order for me to compile my own binary of cgminer?
     
  9. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    Ok I added libcurl and made a new tar:

    https://github.com/decred/cgminer/r...gminer-decred-linux-x86_64-20160127-v3.tar.gz

    These instructions should work as long as you have the dependencies:

    Code:
    $ git clone https://github.com/decred/cgminer
    $ cd cgminer; sh autogen.sh
    $ ./configure --enable-opencl
    $ make
    
    I'd appreciate if you could keep testing the new releases of the binaries to help other people out if you don't mind.
     
    jimmy16 likes this.
  10. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    Sure I will, but I'd like to know how to build a binary locally in order to not waste too much of your time.

    Getting better:

    Code:
    piffio@sheldon:~/decred/cgminer-decred-linux-x86_64-20160127-v3$ LD_LIBRARY_PATH=. ./cgminer --blake256 --benchmark
    ./cgminer: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: no version information available (required by ./cgminer)
    Error opening terminal: screen-256color.
    
    I'm going to review the Nvidia driver installation. I use this machine mostly for learning CUDA, but I've never used it thought the OpenCL abstraction layer, and I'm wondering whether the OpenCL implementation shipped with this version of the drivers is OK.

    Will keep investigating / testing
     
  11. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    Pretty sure this is just a warning:

    Code:
    ./cgminer: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: no version information available (required by ./cgminer)
    
    And this is an actual error:

    Code:
    Error opening terminal: screen-256color.
    
    If you're using Ubuntu/debian can you try installing the 'ncurses-term' package?

    Or do:

    Code:
    $ TERM=xterm LD_LIBRARY_PATH=. ./cgminer --blake256 --benchmark
    
     
  12. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    This is actually a working value for the term variable:

    Code:
    TERM=xterm+256color LD_LIBRARY_PATH=. ./cgminer --blake256 --benchmark
    
    Still, the OpenCL issue is more than just a warning apparently:

    Code:
    2016-01-27 18:35:26] Started cgminer 3.7.2[2016-01-27 18:35:26] Error -1001: clGetPlatformsIDs failed (no OpenCL SDK installed?)[2016-01-27 18:35:26] clDevicesNum returned error, no GPUs usable[2016-01-27 18:35 [2016-01-27 18:35:26] ed, cannot mine!
    
    But once again, I'm going to review the setup of this machine since I have a serious doubt that it's 100% OK on the Nvidia side
     
  13. marcelocoin

    marcelocoin New Member

    Jan 10, 2016
    29
    17
    Male
    Marketing & Bitcoin
    Test Hash HD7950 ATI ~1200Gh/s
     
    Renato Abreu likes this.
  14. SG-O

    SG-O Member
    Developer

    Jan 13, 2016
    104
    86
    Male
    Software Dev
    Milky Way
    I'm using a GTX 780 and get the following:
    (5s):785.7M (avg):779.1Mh/s

    For not using that seems fine to me.
     
  15. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    Yes there's something not quite right with the OpenCL library/config. What flavor/version of Linux are you running?
     
  16. abcdcred

    abcdcred New Member

    Jan 27, 2016
    1
    0
    3 X Sapphire Radeon R9 290 4GB GDDR5

    wolf-decred-cgminer-01272016-win64

    cgminer.exe --blake256 --benchmark

    cgminer version 3.7.2 - Started: [2016-01-27 20:23:10]
    --------------------------------------------------------------------------------
    temp: 90 C

    (5s):3.777G (avg):3.708Gh/s | A:0 R:0 HW:0 WU:0.0/m I:8


    Radeon Software Version - 15.12
    Radeon Software Edition - Crimson
    Graphics Chipset - AMD Radeon R9 200 Series
    Memory Size - 4096 MB
    Memory Type - GDDR5
    Core Clock - 947 MHz
    Windows Version - Windows 7 (Service Pack 1)
    System Memory - 8 GB
    Driver Packaging Version - 15.30.1025.1001-151204a-296872C
     
  17. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    It's Ubuntu server 14.04.3 LTS with the drivers installed from deb packages.
    I'm probably going to install the Nvidia binary driver from their site and see if this fixes the current issue, will keep you posted
     
  18. piffio

    piffio New Member
    Advocate (Twitter)

    Jan 17, 2016
    10
    3
    Male
    Finally fixed my issue, I had to install the following package

    Code:
    apt-get install -y nvidia-opencl-icd-352
    
    My results are:
    [2016-01-27 20:25:48] GPU0 | (5s):468.7M (avg):470.8Mh/s | A:0 R:0 HW:0 WU:0.0/m

    Not great, looking forward for an CUDA version!

    My Card is a GeForce GTX 750 Ti

    Thanks for all your support @jolan !
     
    jimmy16 likes this.
  19. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    EDIT: I just saw you got it working while posting this but I'll leave it up in case anyone needs more info on how to check that OpenCL is properly installed/configured.

    I have dealt with Nvidia + OpenCL on Ubuntu in the past and there was definitely some bugginess/weirdness to it.

    First check what version of the drivers you have:

    Code:
    $ dpkg --get-selections |grep nvidia
    
    You may need to install 'nvidia-opencl-icd' or a versioned copy like 'nvidia-opencl-icd-331' that matches the driver version that you have installed.

    Basically there should be a file called /etc/OpenCL/vendors/nvidia.icd.

    That file specifies the name of the OpenCL library for that vendor, it should be something like:

    libnvidia-opencl.so.1

    Then you make sure that library shows up in ldconfig:

    Code:
    $ ldconfig -p |grep libnvidia-opencl
    
    If you don't have those 3 things correctly installed/working then OpenCL won't work.
     
    jimmy16 likes this.
  20. Renato Abreu

    Renato Abreu Jr. Member
    Advocate (Twitter)

    Jan 3, 2016
    252
    45
    Male
    Programador
    Brazil
    Está conseguindo minerar legal ?
     

Share This Page