Skip to main content

get_cuda_pci_address

Function get_cuda_pci_address 

Source
pub fn get_cuda_pci_address(idx: u32) -> Option<PCIAddress>
Expand description

PCI address of the CUDA device with ordinal idx, read from /proc/driver/nvidia/gpus/*/information (the NVIDIA driver keys each GPU’s bus id there by its device minor, which equals the CUDA ordinal).