geth GPU Mining

2»

Comments

  • 0xff0xff Posts: 22Member
    @Genoil, this is interesting. I cannot explain it other than by error in the ethminer. Should this be reported as ethminer error?

    With option -G

    MP02s-Mac-Pro:~ mp02$ ethminer -G -M
    Benchmarking on platform: 8-thread CPU
    Preparing DAG...
    ℹ 18:09:34|main Loading from libethash...
    ℹ 18:09:34|main Done loading.
    Warming up...
    Trial 1... 223517
    Trial 2... 224183
    Trial 3... 227590
    Trial 4... 224700
    Trial 5... 225774
    min/mean/max: 223517/225152/227590 H/s
    inner mean: 225491 H/s
    Phoning home to find world ranking...
    Error phoning home. ET is sad.

    With option -C

    MP02s-Mac-Pro:~ mp02$ ethminer -C -M
    Benchmarking on platform: 8-thread CPU
    Preparing DAG...
    ℹ 18:10:24|main Loading from libethash...
    ℹ 18:10:24|main Done loading.
    ⚡ 18:10:24|main Start worker 0.239137 s
    ⚡ 18:10:24|main Start worker 0.398502 s
    Warming up...
    Trial 1... 223592
    Trial 2... 230666
    Trial 3... 225333
    Trial 4... 225033
    Trial 5... 226257
    min/mean/max: 223592/226176/230666 H/s
    inner mean: 227010 H/s
    Phoning home to find world ranking...
    Error phoning home. ET is sad.

    This one is from the same Mac Pro with 3.7Ghz 4core CPU and AMD FirePro D300 2048 MB graphics.

    Can you suggest more things to test?



  • 0xff0xff Posts: 22Member
    I was running some background tasks in the previous tests, so actual hashes are higher. This reflects the reality better:

    -C:

    MP02s-Mac-Pro:~ mp02$ ethminer -C -M
    Benchmarking on platform: 8-thread CPU
    Preparing DAG...
    ℹ 18:21:57|main Loading from libethash...
    ℹ 18:21:57|main Done loading.
    Warming up...
    Trial 1... 612645
    Trial 2... 622000
    Trial 3... 620586
    Trial 4... 617666
    Trial 5... 620046
    min/mean/max: 612645/618588/622000 H/s
    inner mean: 620084 H/s
    Phoning home to find world ranking...
    Error phoning home. ET is sad.

    -G:

    MP02s-Mac-Pro:~ mp02$ ethminer -G -M
    Benchmarking on platform: 8-thread CPU
    Preparing DAG...
    ℹ 18:22:42|main Loading from libethash...
    ℹ 18:22:42|main Done loading.
    Warming up...
    Trial 1... 621666
    Trial 2... 622333
    Trial 3... 622170
    Trial 4... 620173
    Trial 5... 605455
    min/mean/max: 605455/618359/622333 H/s
    inner mean: 621558 H/s
    Phoning home to find world ranking...
    Error phoning home. ET is sad.


    Results are the same, both profiling CPU.
  • GenoilGenoil 0xeb9310b185455f863f526dab3d245809f6854b4dPosts: 769Member ✭✭✭
    @0xff your build of ethminer doesn't seem to support GPU mining at all. Are you sure you ran cmake with -DETHASHCL=1 ?
  • 0xff0xff Posts: 22Member
    @Genoil I did not add that def. Is it possible to add it to brew? Instructions for Mac OS X mention only brew with --devel flag.

    I will try to use instructions for Ubuntu. If you know where instructions for Mac OS X + GPU can be found, please let me know. And thanks for heads up.

  • 0xff0xff Posts: 22Member
    @Genoil
    Found this nice manual https://github.com/ethereum/homebrew-ethereum/blob/master/README.md

    added --with-gpu-mining which I totally missed in previous builds

    and now the result look like this:

    MP02s-Mac-Pro:~ mp02$ ethminer -G -M --opencl-device 0
    Benchmarking on platform: { "platform": "Apple", "device": "Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz", "version": "OpenCL 1.2 " }
    Preparing DAG...
    ℹ 21:40:16|main Loading from libethash...
    ℹ 21:40:16|main Done loading.
    Warming up...
    ℹ 21:40:16|gpuminer0 workLoop 0 #00000000… #00000000…
    Using platform: Apple
    Using device: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz(OpenCL 1.2 )
    ✘ 21:40:17|gpuminer0 Error GPU mining. GPU memory fragmentation?
    Trial 1... 0
    Trial 2... 0
    Trial 3... 0
    Trial 4... 0
    Trial 5... 0
    min/mean/max: 0/0/0 H/s
    inner mean: 0 H/s


    This is the right track to some non-zero hashes.
  • GenoilGenoil 0xeb9310b185455f863f526dab3d245809f6854b4dPosts: 769Member ✭✭✭
    @0xff i've seen the same from another Mac user here, yesterday. What it tries is use your CPU as an OpenCL device. That doesn't work for eth/ethminer. Try --opencl-device 1 or 2 (since I just noticed on Github you have two GPU's). It's currently not possible to mine multi-GPU while excluding device 0, so you're limited to one for now, or perhaps it is possuble to run ethminer twice with different --opencl-device.
  • 0xff0xff Posts: 22Member
    @Genoil A while ago I already tried running with option --opencl-device 1 and 2, but that crashed with segmentation fault. Will try again and post results.
  • bitnovostibitnovosti Posts: 3Member
    Using the same ethminer / geth --rpc setup, got results similar to 0xff's. ethminer seems to be mining, geth seems to be committing work.

    After a while, I was able to mine a block! Reward goes to geth's coinbase, it seems.
  • 0xff0xff Posts: 22Member
    @Genoil

    The results are in:

    with dev 0

    mp02$ ethminer -G -M --opencl-device 0
    Benchmarking on platform: { "platform": "Apple", "device": "Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz", "version": "OpenCL 1.2 " }
    Preparing DAG...
    ℹ 23:18:05|main Loading from libethash...
    ℹ 23:18:05|main Done loading.
    Warming up...
    ℹ 23:18:05|gpuminer0 workLoop 0 #00000000… #00000000…
    Using platform: Apple
    Using device: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz(OpenCL 1.2 )
    ✘ 23:18:05|gpuminer0 Error GPU mining. GPU memory fragmentation?
    Trial 1... 0
    Trial 2... 0
    Trial 3... 0
    Trial 4... 0
    Trial 5... 0
    min/mean/max: 0/0/0 H/s
    inner mean: 0 H/s
    Phoning home to find world ranking...
    Error phoning home. ET is sad.

    with dev 1

    mp02$ ethminer -G -M --opencl-device 1
    Benchmarking on platform: { "platform": "Apple", "device": "AMD Radeon HD - FirePro D300 Compute Engine", "version": "OpenCL 1.2 " }
    Preparing DAG...
    ℹ 23:18:31|main Loading from libethash...
    ℹ 23:18:31|main Done loading.
    Warming up...
    ℹ 23:18:31|gpuminer0 workLoop 0 #00000000… #00000000…
    Using platform: Apple
    Using device: AMD Radeon HD - FirePro D300 Compute Engine(OpenCL 1.2 )
    Segmentation fault: 11

    with dev 2

    mp02$ ethminer -G -M --opencl-device 2
    Benchmarking on platform: { "platform": "Apple", "device": "AMD Radeon HD - FirePro D300 Compute Engine", "version": "OpenCL 1.2 " }
    Preparing DAG...
    ℹ 23:18:42|main Loading from libethash...
    ℹ 23:18:42|main Done loading.
    Warming up...
    ℹ 23:18:42|gpuminer0 workLoop 0 #00000000… #00000000…
    Using platform: Apple
    Using device: AMD Radeon HD - FirePro D300 Compute Engine(OpenCL 1.2 )
    Segmentation fault: 11

    At least it is nice that cards were identified. I wish my C++ would not be that rusty, so I could debug it. If any developers are ready do give guidance, I will take it for a spin.
  • 0xff0xff Posts: 22Member
    edited May 2015
    @bitnovosti

    A few questions:
    What platform did you build on?
    Was it with GPU support?
    Did you mine the block with just "geth --rpc" or "geth --mine --rpc" ?

    I am inclined to think that geth miner with --rpc does not show the HAMMER + mined block #xxxxxx.
  • bitnovostibitnovosti Posts: 3Member
    @0xff

    It was OSX 10.10.2, both go and cpp ethereum installed by homebrew with --devel flag.
    It's on MacBook Pro with AMD Radeon HD 6770M, did not set any --opencl-device flags, so default must work.
    Used "geth --rpc console" and started miner via console if I recall correctly. Didn't get any blocks for a long time, so was unsure if it's working or not. But in the end it did, and the block reward went to eth.coinbase. Well, technically there is an off chance that geth CPU miner nailed the block against all odds, but I strongly doubt it. So, my working theory is that ethminer+geth combo works.

    Wasn't able to replicate this on Ubuntu, though - ethminer keeps crashing there - which is a pity as MBP GPU sucks.
  • 0xff0xff Posts: 22Member
    @bitnovosti
    Thaks for input. Just for kicks I compiled the thing on my MacBook too which happens to have one Iris Pro graphics card. This one worked fine, so I assume that issue is that Mac Pro has 2x graphics cards.

    @Genoil
    I reported this in cpp-ethereum issues section: https://github.com/ethereum/cpp-ethereum/issues/1936
  • BarkelyBarkely Posts: 5Member
    Sir,
    I am mining by using ethminer.The command line is "ethminer -G -F http://127.0.0.1:8545 "

    The output in console is below::

    miner 12:08:20|main Mining on PoWhash #93343d49??: 0 H/s = 0 hashes / 0.511 s
    miner 12:08:20|main Mining on PoWhash #93343d49??: 0 H/s = 0 hashes / 0.505 s
    miner 12:08:21|main Mining on PoWhash #93343d49??: 0 H/s = 0 hashes / 0.509 s
    miner 12:08:21|main Got work package:
    miner 12:08:21|main Header-hash: 6ee83c25845f17bb71571bb0a4bcdc6441b0b3fefb8aae066cb7b020826b6e74
    miner 12:08:21|main Seedhash: b08741c315151129d790a3a705898f9d0c5155391030d506c3c7bbb672a1767d
    miner 12:08:21|main Target: 000000000004acd78b0a9e65855516031225f26e82833c2414162ef71f288d32
    ! 12:08:21|main Stop worker 235 ms
    ! 12:08:21|main Stop worker 108 ms
    ! 12:08:21|main Stop worker 152 ms
    ! 12:08:22|main Stop worker 166 ms
    ! 12:08:22|main Stop worker 117 ms
    ! 12:08:22|main Stop worker 137 ms
    miner 12:08:23|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.5 s
    miner 12:08:23|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.513 s
    miner 12:08:24|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.514 s
    miner 12:08:24|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.513 s
    miner 12:08:25|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.516 s
    miner 12:08:25|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.513 s
    miner 12:08:26|main Mining on PoWhash #6ee83c25??: 0 H/s = 0 hashes / 0.514 s
    ......
    Is this OK? I am not sure whether the theminer is working?

    Thanks!
    Barkely
  • BarkelyBarkely Posts: 5Member
    Sir,

    Ethminer seems to be working. The following messages show the mining process:
    miner 14:01:51|main Mining on PoWhash #f6ec5ef6??: 663793 H/s = 346500 hashes / 0.522 s
    miner 14:01:52|main Mining on PoWhash #f6ec5ef6??: 650258 H/s = 377800 hashes / 0.581 s
    miner 14:01:52|main Got work package:
    miner 14:01:52|main Header-hash: c22b71bd4cee870871b2c6b97bd533f407442b663cd08a407e3e0707df6159cd
    miner 14:01:52|main Seedhash: b08741c315151129d790a3a705898f9d0c5155391030d506c3c7bbb672a1767d
    miner 14:01:52|main Target: 000000000004afc1b8d61146600cfce7912aace4ea53605e49567dd3b8e620d0
    miner 14:01:53|main Mining on PoWhash #c22b71bd??: 775098 H/s = 395300 hashes / 0.51 s
    miner 14:01:53|main Mining on PoWhash #c22b71bd??: 664448 H/s = 349500 hashes / 0.526 s
    miner 14:01:54|main Mining on PoWhash #c22b71bd??: 654545 H/s = 345600 hashes / 0.528 s
    miner 14:01:54|main Mining on PoWhash #c22b71bd??: 663117 H/s = 348800 hashes / 0.526 s
    miner 14:01:55|main Mining on PoWhash #c22b71bd??: 648042 H/s = 364200 hashes / 0.562 s
    miner 14:01:55|main Got work package:
    miner 14:01:55|main Header-hash: 4147e04aacd8269e399a391c6891d200bc08376f8b61767dfc15d3a5f123a62b
    miner 14:01:55|main Seedhash: b08741c315151129d790a3a705898f9d0c5155391030d506c3c7bbb672a1767d
    miner 14:01:55|main Target: 000000000004af2bbd6a6ab7c5fb31d7374c994936a14a1ec7b2312d338a3c20
    miner 14:01:56|main Mining on PoWhash #4147e04a??: 764354 H/s = 396700 hashes / 0.519 s
    miner 14:01:56|main Mining on PoWhash #4147e04a??: 658047 H/s = 363900 hashes / 0.553 s
    miner 14:01:57|main Mining on PoWhash #4147e04a??: 661641 H/s = 346700 hashes / 0.524 s
    miner 14:01:57|main Mining on PoWhash #4147e04a??: 655363 H/s = 378800 hashes / 0.578 s
    ...
  • AwesomeboyAwesomeboy Posts: 8Member
    For minign only, you have to build the ethminer binary from source and set it up for GPU mining!
Sign In or Register to comment.