ethereum-mining / ethminer

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

When trying to mine equihash, I'm getting: OpenCL Error: clFinish: CL_INVALID_COMMAND_QUEUE (-36) #1458

Closed rgaufman closed 6 years ago

rgaufman commented 6 years ago

Describe the bug I'm able to mine with the DaggerHashimoto algorithm, with this command:

$ sudo ./ethminer --opencl-device 0 -G -P stratum2+tcp://UNIQUE_BTC_ADDRESS.DaggerMiner@daggerhashimoto.eu.nicehash.com:3353

However, when I try to use equihash, I get the OpenCL error above:

To Reproduce Steps to reproduce the behavior:

$ sudo ./ethminer --opencl-device 0 -G -P stratum2+tcp://UNIQUE_BTC_ADDRESS.EquihashMiner@equihash.eu.nicehash.com:3357
 m 23:31:04 ethminer ethminer 0.16.0.dev1
 m 23:31:04 ethminer Build: linux/release
 i 23:31:04 ethminer Found suitable OpenCL device [Ellesmere] with 8,583,593,984 bytes of GPU memory
 i 23:31:04 ethminer Found suitable OpenCL device [Ellesmere] with 8,583,593,984 bytes of GPU memory
 i 23:31:04 ethminer Configured pool equihash.eu.nicehash.com:3357
 i 23:31:04 main     Selected pool equihash.eu.nicehash.com:3357
 i 23:31:04 stratum  Trying 172.65.195.171:3357 ...
 i 23:31:04 stratum  Connected to equihash.eu.nicehash.com [172.65.195.171:3357]
 i 23:31:04 stratum  Spinning up miners...
cl 23:31:04 cl-0     No work. Pause for 3 s.
 X 23:31:06 stratum  Unable to find suitable Stratum Mode
cl 23:31:07 cl-0     No work. Pause for 3 s.
 m 23:31:09 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:10 cl-0     No work. Pause for 3 s.
cl 23:31:13 cl-0     No work. Pause for 3 s.
 m 23:31:14 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:16 cl-0     No work. Pause for 3 s.
 m 23:31:19 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:19 cl-0     No work. Pause for 3 s.
cl 23:31:22 cl-0     No work. Pause for 3 s.
 m 23:31:24 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:25 cl-0     No work. Pause for 3 s.
cl 23:31:28 cl-0     No work. Pause for 3 s.
 m 23:31:29 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:31 cl-0     No work. Pause for 3 s.
 m 23:31:34 ethminer Speed 0.00 Mh/s gpu0 0.00 [A0] Time: 00:00
cl 23:31:34 cl-0     No work. Pause for 3 s.
 i 23:31:34 stratum  Connection remotely closed by equihash.eu.nicehash.com
 i 23:31:34 stratum  Trying 172.65.195.171:3357 ...
 i 23:31:34 stratum  Connected to equihash.eu.nicehash.com [172.65.195.171:3357]
 i 23:31:34 stratum  Stratum mode detected : STRATUM
 i 23:31:34 stratum  Subscribed to stratum server
 i 23:31:34 stratum  Authorized worker 3L62DB7RWNTET5EenQYsiqLdWJF4qyX6PW.EquihashMiner
 X 23:31:34 stratum  Got unknown method [mining.set_target] from pool. Discarding ...
 i 23:31:34 stratum  Connection remotely closed by equihash.eu.nicehash.com
 i 23:31:34 main     Disconnected from equihash.eu.nicehash.com [172.65.195.171:3357]
 i 23:31:35 main     No more connections to try. Exiting ...
 i 23:31:35 main     Shutting down miners...
 X 23:31:37 cl-0     OpenCL Error: clFinish: CL_INVALID_COMMAND_QUEUE (-36)
 m 23:31:39 ethminer not-connected
 i 23:31:39 ethminer Terminated !

Expected behavior It should mine like it does from the DaggerHashimoto pool.

Desktop (please complete the following information):

e2dy commented 6 years ago

Guy is an ETH miner not a ZEC miner ..... You using a bad nicehash port, read your log "Connected to equihash"

StefanOberhumer commented 6 years ago

ethash (ethminer) is a different algorithm than equihash ! See:

You can not mine equihash with ethminer !

StefanOberhumer commented 6 years ago

Seems you got the answer in #858 .

rgaufman commented 6 years ago

Ah, thank you, didn't know they were different 🙈