develsoftware / GMinerRelease

Ethash, ProgPoW, Equihash, CuckooCycle GPU Miner

Home Page:https://bitcointalk.org/index.php?topic=5034735.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Option for device enumeration based on OpenCL device order

UselessGuru opened this issue · comments

Currently Gminer sorts the devices by PCI busID.
Unfortunately the PCI BusID information is not available through the OpenCL API which, as a consequence, breaks proper integration on MultiPoolMiner based software (e.g. MultipoolMiner, Nemos Miner etc.).
Could you please add an option (e.g. --deviceOrder OpenCL) which will allow GMiner to sort the devices based on OpenCL device ID?

OpenCL device order in my case is:

GPU#00 GeForce GTX 1080 Ti
GPU#01 GeForce GTX 1060 6GB
GPU#02 Radeon RX 580 Series (Ellesmere)
GPU#03 AMD Radeon (TM) RX 560 (Baffin)

Gminer now:

miner.exe --list_devices
GPU0: ASUS GeForce GTX 1080 Ti 11GB PCI: 0000:01:00.0
GPU1: MSI GeForce GTX 1060 6GB      PCI: 0000:04:00.0
GPU2: AMD Radeon (TM) RX 560 2GB    PCI: 0000:05:00.0
GPU3: MSI Radeon RX 580 Series 8GB  PCI: 0000:09:00.0

Preferred result:

miner.exe --list_devices --deviceOrder OpenCL
GPU0: ASUS GeForce GTX 1080 Ti 11GB PCI: 0000:01:00.0
GPU1: MSI GeForce GTX 1060 6GB      PCI: 0000:04:00.0
GPU2: MSI Radeon RX 580 Series 8GB  PCI: 0000:09:00.0
GPU3: AMD Radeon (TM) RX 560 2GB    PCI: 0000:05:00.0