Skip to content

Commit 5b93546

Browse files
committed
fix rdma_cm device not found on no-privileged
Signed-off-by: bingshen.wbs <[email protected]>
1 parent 34cedf8 commit 5b93546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/deviceplugin/deviceplugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewERDMADevicePlugin(devices []*types.ERdmaDeviceInfo, allocAllDevices, dev
5757

5858
pluginEndpoint := fmt.Sprintf(dpSocketPath, time.Now().Unix())
5959
if allocRdmaCM {
60-
_, err := os.Stat(rdmaCMDevice)
60+
_, err := os.Stat("/proc/1/root" + rdmaCMDevice)
6161
if err != nil {
6262
allocRdmaCM = false
6363
}

0 commit comments

Comments
 (0)