ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.97k stars 2.28k forks source link

0Mhs with 1070 on OpenCl (Mac OS 10.13 with eGPU) #1878

Open destrocci opened 5 years ago

destrocci commented 5 years ago
iMacdiCristiano:bin destrocci$ ./ethminer -G --cl-only --opencl-devices 0 -P stratum2+tcp://destrocci%2edestrocci:x@europe.ethash-hub.miningpoolhub.com:17020
 m 08:54:22          ethminer 0.17.1
 m 08:54:22          Build: darwin/release
 i 08:54:22          Found suitable OpenCL device [GeForce GTX 1070] with 8,000 GB of GPU memory
 i 08:54:22          Found suitable OpenCL device [AMD Radeon Pro 555 Compute Engine] with 2,000 GB of GPU memory
 i 08:54:22          Configured pool europe.ethash-hub.miningpoolhub.com:17020
 i 08:54:22 main     Selected pool europe.ethash-hub.miningpoolhub.com:17020
 i 08:54:22 stratum  Stratum mode detected: ETHEREUMSTRATUM (NiceHash)
 i 08:54:22 stratum  Subscribed to stratum server
 i 08:54:22 stratum  Extranonce set to 2a34 (nicehash)
 X 08:54:23 stratum  No new work received in 180 seconds.
 i 08:54:23 main     Disconnected from  [13.251.85.125:17020]
 i 08:54:24 main     Selected pool europe.ethash-hub.miningpoolhub.com:17020
 i 08:54:24 stratum  Stratum mode detected: ETHEREUMSTRATUM (NiceHash)
 i 08:54:24 stratum  Subscribed to stratum server
 i 08:54:24 stratum  Extranonce set to 25ae (nicehash)
 i 08:54:24 stratum  Authorized worker destrocci.destrocci
 i 08:54:24 stratum  Established connection with europe.ethash-hub.miningpoolhub.com:17020 at  [18.197.166.72:17020]
 i 08:54:24 stratum  Spinning up miners...
cl 08:54:24 cl-0     No work. Pause for 3 s.
 i 08:54:25 stratum  Job: #f01fb9d0… europe.ethash-hub.miningpoolhub.com [18.197.166.72:17020]
 i 08:54:25 stratum  Pool difficulty: 8.59K megahash
 i 08:54:25 stratum  New epoch 261
 m 08:54:27          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
cl 08:54:27 cl-0     Platform: Apple
cl 08:54:27 cl-0     Device:   GeForce GTX 1070 / OpenCL 1.2 
cl 08:54:29 cl-0     OpenCL kernel
cl 08:54:29 cl-0     Creating light cache buffer, size: 48,624 MB
cl 08:54:29 cl-0     Creating DAG buffer, size: 3,039 GB, free: 4,913 GB
cl 08:54:29 cl-0     Loading kernels
cl 08:54:29 cl-0     Writing light cache buffer
cl 08:54:30 cl-0     Creating buffer for header.
cl 08:54:30 cl-0     Creating mining buffer
 i 08:54:30 cl-0     3,039 GB of DAG data generated in 3 ms.
 m 08:54:32          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
 m 08:54:37          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
 m 08:54:42          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
 m 08:54:47          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
 i 08:54:49 stratum  Job: #74e99514… europe.ethash-hub.miningpoolhub.com [18.197.166.72:17020]
 m 08:54:52          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:00
destrocci commented 5 years ago

Hi guys, I am a real noob here, any idea on how do I get 0Mhs with my GPU? I have been mining equihash successfully , trying to switch to eth mining but on every pool I join Ig et same error; I seem to join pool but no hashes :(

gennadiv commented 5 years ago

ethminer-0.18.0-rc.0-cuda10.0-windows-amd64 ethminer.exe -G --farm-recheck 100 --report-hashrate --cl-local-work 128 --HWMON 1 -P stratum+tcp://..........%%2e1:x@us-east.ethash-hub.miningpoolhub.com:20535

sowson commented 4 years ago

Please try a bit patched fork... at https://github.com/sowson/ethminer thanks!

mprimeaux commented 3 years ago

Thanks for a pointer to the patched fork. Here is the device list from my Mac.

$ ethminer -G --list-devices

ethminer 0.19.0-alpha.0-17+commit.c03eaa7a.dirty
Build: darwin/release/appleclang

 Id Pci Id    Type Name                          CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ----  ------------  ------------  ------------
  0 GPU:00    Gpu  Intel(R) UHD Graphics 630     Yes        1.50 GB     384.00 MB      256.00 B
  1 GPU:01    Gpu  AMD Radeon VII Compute Engin  Yes       15.98 GB       4.00 GB      256.00 B

This Works:

The patched works with my AMD Radeon VII as macOS (Big Sur) but only when used in conjunction with geth as the mining pool. For example:

$ geth --http --miner.etherbase <my-ethereum-address> --mine --miner.threads 0
ethminer -G -P http://127.0.0.1:8545

I achieve anywhere from 50 to 60 MH/s using the above.

This Does Not Work:

When attempting to run ethminer without geth fails. For example,

$ ethminer --pool stratum+tcp://<my-ethereum-address>.rig1:x@us1.ethpool.org:3333 -G --opencl --opencl-devices 1

fails with the following:

ethminer 0.19.0-alpha.0-17+commit.c03eaa7a.dirty
Build: darwin/release/appleclang

 i 16:26:54          Configured pool us1.ethpool.org:3333
 i 16:26:54          Selected pool us1.ethpool.org:3333
 i 16:26:55          Stratum mode : Stratum
 i 16:26:55          Established connection to us1.ethpool.org [172.65.229.54:3333]
 i 16:26:55          Spinning up miners...
cl 16:26:55 cl-0     Using Device : GPU:01 AMD Radeon VII Compute Engine OpenCL 1.2  Memory : 15.98 GB (17163091968 B)
 i 16:26:55 cl-0     Adjusting CL work multiplier for 60 CUs. Adjusted work multiplier: 109,227
 X 16:26:58          No response received in 2 seconds.
 i 16:26:58          Disconnected from us1.ethpool.org [172.65.229.54:3333]
 i 16:26:58          No connection. Suspend mining ...
 i 16:26:58          Selected pool us1.ethpool.org:3333
 m 16:26:59          0:00 A0 0.00 h - cl0 0.00
 i 16:26:59          Stratum mode : Stratum
 i 16:26:59          Established connection to us1.ethpool.org [172.65.229.54:3333]
 i 16:26:59          Resume mining ...
 i 16:26:59          Authorized worker <my-ethereum-address>.rig1
 i 16:26:59          Epoch : 387 Difficulty : 4.00 Gh
 i 16:26:59          Job: ef4aa8fc… us1.ethpool.org [172.65.229.54:3333]
cl 16:27:02 cl-0     Generating split DAG + Light (total): 4.02 GB
cl 16:27:02 cl-0     OpenCL kernel
cl 16:27:02 cl-0     Loading binary kernel /usr/local/bin/kernels/ethash_amd radeon vii compute engine_lws128_exit.bin
 X 16:27:02 cl-0     Failed to load binary kernel: /usr/local/bin/kernels/ethash_amd radeon vii compute engine_lws128_exit.bin
 X 16:27:02 cl-0     Falling back to OpenCL kernel...
cl 16:27:02 cl-0     Creating DAG buffer, size: 4.02 GB, free: 11.96 GB
cl 16:27:02 cl-0     Creating light cache buffer, size: 64.37 MB
cl 16:27:02 cl-0     Loading kernels
cl 16:27:02 cl-0     Creating buffer for header.
cl 16:27:02 cl-0     Creating mining buffer
[1]    19100 abort      ethminer --pool  -G --opencl --opencl-devices 1

The failure is related to not being able to load the ethash kernel for my Radeon VII, which, by default should be found here as per above: `/usr/local/bin/kernels/ethash_amd radeon vii compute engine_lws128_exit.bin'

I've tried a few pools based on this writeup including the following resulting in the same error.

$ ethminer --pool stratum+tcp://0x<my-ethereum-address>.rig1@us2.ethermine.org:4444 -G --opencl --opencl-devices 1

I have a few questions as this juncture:

  1. Where can I either find the kernel in binary form or source to compile the kernel?
  2. Is there any intention to pull the above fork back into ethminer?

Any help or guidance is greatly appreciated.

vade commented 3 years ago

Im having the exact same ether miner crash on macOS 10.15.7 with a Radeon VII -

 m 11:53:43          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:01
 i 11:53:43 stratum  Job: #8fa7536c… naw-eth.hiveon.net [51.79.54.56:4444]
 i 11:53:47 stratum  Job: #1b365385… naw-eth.hiveon.net [51.79.54.56:4444]
 m 11:53:48          Speed 0.00 Mh/s gpu0 0.00 A0 Time: 00:01
zsh: abort      ./ethminer -G 
ansenhere commented 3 years ago

How can I do when this happen, where can I get the ethash_intel(r) uhd graphics_lws192.bin?

X 00:27:15 cl-0 Failed to load binary kernel: C:\Users\andra\Desktop\集成显卡挖矿\ethminer-0.17.0-cuda10.0-windows-amd64\bin\kernels\ethash_intel(r) uhd graphics_lws192.bin X 00:27:15 cl-0 Falling back to OpenCL kernel...