Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: Option for device enumeration based on OpenCL device order #30
Currently nanominer sorts the devices by PCI busID.
OpenCL device order in my case is:
There are many orders in different programs. Our competitor miners used AMD cards then Nvidia cards order. We used to have Nvidia (enumerated by CUDA) then AMD devices. Finally what we and competitors investigated is there is no good order other than PCI address for AMD and Nvidia GPUs.
However I see there is a technical problem which makes proper integration impossible. Can I help implementing PCI order in MultiPoolMiner?
MultiPoolMiner relies entirely on the device order returned by OpenCL, In most cases that matches the PCI device order - but no always (kin my computer it does not)
If you know of a clever way to map the PCI id to the OpenCL id. That's all what's needed.
Or you know of a way to re-order the device order returned by OpenCL.
MPM can deal with this. This is what MPM currently uses (mostly retrieved trough OpenCL, except for the PCIBus_* entries which I add by using the DevicePciOrderMapping information):