Skip to content

Commit 311c577

Browse files
committed
Treat zero cluster UUID as non-fabric-attached
Signed-off-by: Evan Lezar <[email protected]>
1 parent 24e4052 commit 311c577

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/nvlib/device/device.go

+6
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func (d *device) IsFabricAttached() (bool, error) {
222222
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
223223
return false, nil
224224
}
225+
if info.ClusterUuid == [16]uint8{} {
226+
return false, nil
227+
}
225228
if nvml.Return(info.Status) != nvml.SUCCESS {
226229
return false, nil
227230
}
@@ -240,6 +243,9 @@ func (d *device) IsFabricAttached() (bool, error) {
240243
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
241244
return false, nil
242245
}
246+
if info.ClusterUuid == [16]uint8{} {
247+
return false, nil
248+
}
243249
if nvml.Return(info.Status) != nvml.SUCCESS {
244250
return false, nil
245251
}

0 commit comments

Comments
 (0)