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

ethminer not using RX580 (detected as Ellesmere) #1451

Closed rgaufman closed 6 years ago

rgaufman commented 6 years ago

Describe the bug When I run ethminder, it ignores the RX580 card completely.

To Reproduce Both my cards are detected correctly:

$ sudo bin/ethminer --list-devices -G

Listing OpenCL devices.
FORMAT: [platformID] [deviceID] deviceName
[0] [0] GeForce GTX 760
    CL_DEVICE_TYPE: GPU
    CL_DEVICE_GLOBAL_MEM_SIZE: 2097086464
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 524271616
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024
[1] [0] Ellesmere
    CL_DEVICE_TYPE: GPU
    CL_DEVICE_GLOBAL_MEM_SIZE: 8583929856
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 4244635648
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 256

However when I run ethminer telling it to use the RX580 card, it is still using the slow nvidia card:

$ sudo bin/ethminer --opencl-device 1 -G http://eth.pool.minergate.com:55751/email@example.com
 m 12:42:33 ethminer ethminer 0.16.0.dev1
 m 12:42:33 ethminer Build: linux/release
 i 12:42:34 ethminer Found suitable OpenCL device [GeForce GTX 760] with 2,097,086,464 bytes of GPU memory
 i 12:42:34 ethminer Configured pool eth.pool.minergate.com:55751
 i 12:42:34 main     Selected pool eth.pool.minergate.com:55751
 i 12:42:34 main     Connected to eth.pool.minergate.com
 i 12:42:34 main     Spinning up miners...
cl 12:42:34 cl-0     No work. Pause for 3 s.

Expected behavior It should be using the RX580 card

Desktop (please complete the following information):

Additional context I am using the latest amdgpu driver for Ubuntu 18.04, installed with

./amdgpu-install --opencl=legacy --headless -y
rgaufman commented 6 years ago

Ah, after searching the forum, I found this command which works!!

sudo bin/ethminer --report-hashrate -G --cuda-parallel-hash 1 --opencl-platform 1 --opencl-devices 1 -P 'stratum1+tcp://etc.pool.minergate.com:45777/email@example.com'