mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-29 22:51:35 +02:00
Join NVML PCIe threads only if PCIe TX/RX is supported by GPU
This commit is contained in:
parent
be10989151
commit
d8ebbe1181
@ -1177,7 +1177,13 @@ namespace Gpu {
|
|||||||
|
|
||||||
// nvTimer.stop_rename_reset("Nv pcie thread join");
|
// nvTimer.stop_rename_reset("Nv pcie thread join");
|
||||||
//? Join PCIE TX/RX threads
|
//? Join PCIE TX/RX threads
|
||||||
pcie_tx_thread.join(); pcie_rx_thread.join();
|
if constexpr(is_init) { // there doesn't seem to be a better way to do this, but this should be fine considering it's just 2 lines
|
||||||
|
pcie_tx_thread.join();
|
||||||
|
pcie_rx_thread.join();
|
||||||
|
} else if (gpus_slice[i].supported_functions.pcie_txrx) {
|
||||||
|
pcie_tx_thread.join();
|
||||||
|
pcie_rx_thread.join();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user