Skip to content

Commit

Permalink
Merge pull request #54 from elezar/fix-is-fabric-attached
Browse files Browse the repository at this point in the history
Treat zero cluster UUID as non-fabric-attached
  • Loading branch information
elezar authored Feb 12, 2025
2 parents 94240b4 + 311c577 commit e9b8903
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/nvlib/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ func (d *device) IsFabricAttached() (bool, error) {
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
return false, nil
}
if info.ClusterUuid == [16]uint8{} {
return false, nil
}
if nvml.Return(info.Status) != nvml.SUCCESS {
return false, nil
}
Expand All @@ -240,6 +243,9 @@ func (d *device) IsFabricAttached() (bool, error) {
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
return false, nil
}
if info.ClusterUuid == [16]uint8{} {
return false, nil
}
if nvml.Return(info.Status) != nvml.SUCCESS {
return false, nil
}
Expand Down

0 comments on commit e9b8903

Please sign in to comment.