-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong GPU id (enumeration) when different models are used #72
Comments
Could you please try |
That would shift device numbering from 1 instead of 0 (which I wanted). Why order them differently than the driver (which is the same as the pci bus) anyway? |
Default order matches |
Well,
and here is the model in the same ordering:
Your code outputs this ordering:
Which is clearly wrong ... seems you are grouping models together, 1080ti and 1070ti (why?). If your code is using the You are also trying to match the manufacturer (MSI, Gigabyte, ASUS, etc -- afaik the driver isn't exposing this info, are you matching the gpu UUID against an external database or is it from the gpu bios?). That part of your code may be responsible for this buggy behavior of bad ordering. Regardless, it's wrong :) |
We are not grouping or trying to match anything.
Returns information about the compute-device.
"Device number" is what we use to order the GPUs. |
|
Actually, I forgot that I have set the global env var All miner software except t-rex are ordering the devices according to the pci bus id, so it seems t-rex is ignoring that env var. Could you please honor it? The default is This is better than using --ab-indexing, especially when using the |
My bad. You do actually honor the All works as intended now. No need for Sorry for wasting your time with this, I should have caught it sooner. |
No worries. Thanks for the input. |
You do have a small bug though: if I use The CUDA_DEVICE_ORDER=PCI_BUS_ID provides the safest option. I still encourage you to use that by default (as most other miner software do). |
Added |
Nice. I see you also added ethash ... is it any good? :P |
T-rex is wrongly enumerating GPUs when there are multiple models. For example, this machine has a bunch of 1070 and a bunch of 1080ti. T-rex says:
20200830 20:11:31 GPU #0: Gigabyte GTX 1080 Ti
20200830 20:11:31 GPU #1: EVGA GTX 1080 Ti
20200830 20:11:31 GPU #2: MSI GTX 1080 Ti
20200830 20:11:31 GPU #3: Gigabyte GTX 1080 Ti
20200830 20:11:31 GPU #4: Gigabyte GTX 1080 Ti
20200830 20:11:31 GPU #5: ASUS GTX 1070
20200830 20:11:31 GPU #6: EVGA GTX 1070
20200830 20:11:31 GPU #7: ASUS GTX 1070
20200830 20:11:31 GPU #8: EVGA GTX 1070
Whereas the actual ordering by pci address is:
02:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
04:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
05:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
0a:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
0b:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
0d:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
0e:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
0f:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
The text was updated successfully, but these errors were encountered: