[v0.23] Sort PCI devices; this makes the devices list to match CUDA driver ordering, which fixes a bug when there was more than one NVIDIA GPU

This commit is contained in:
Dr-Noob
2022-01-22 13:25:22 +01:00
parent 23586a18e9
commit bd1158c139
11 changed files with 103 additions and 20 deletions

7
src/common/sort.hpp Normal file
View File

@@ -0,0 +1,7 @@
#ifndef __SORT_PCI__
#define __SORT_PCI__
void sort_pci_devices(struct pci_dev **first_dev);
#endif