mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[BugFix] Fix RDMA initializes failed (#7025)
This commit is contained in:
@@ -14,7 +14,8 @@ function __NEW_GPU_ROOTPORT_FILE__() {
|
||||
echo "" > ${gpu_root_port_filename} 2>/dev/null
|
||||
for gpu_bus in $(lspci 2>/dev/null | grep -iE "Communication controller: | controller: NVIDIA" | awk '{print $1}')
|
||||
do
|
||||
readlink "/sys/bus/pci/devices/0000:${gpu_bus}" 2>/dev/null | awk -F [/] '{print $6}' >> ${gpu_root_port_filename}
|
||||
[[ "$gpu_bus" != 0000:* ]] && gpu_bus="0000:${gpu_bus}"
|
||||
readlink "/sys/bus/pci/devices/${gpu_bus}" 2>/dev/null | awk -F [/] '{print $6}' >> ${gpu_root_port_filename}
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user