Treat zero cluster UUID as non-fabric-attached

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2025-02-12 14:13:39 +01:00
parent 24e4052f28
commit 311c577f6b
No known key found for this signature in database

View File

@ -222,6 +222,9 @@ func (d *device) IsFabricAttached() (bool, error) {
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED { if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
return false, nil return false, nil
} }
if info.ClusterUuid == [16]uint8{} {
return false, nil
}
if nvml.Return(info.Status) != nvml.SUCCESS { if nvml.Return(info.Status) != nvml.SUCCESS {
return false, nil return false, nil
} }
@ -240,6 +243,9 @@ func (d *device) IsFabricAttached() (bool, error) {
if info.State != nvml.GPU_FABRIC_STATE_COMPLETED { if info.State != nvml.GPU_FABRIC_STATE_COMPLETED {
return false, nil return false, nil
} }
if info.ClusterUuid == [16]uint8{} {
return false, nil
}
if nvml.Return(info.Status) != nvml.SUCCESS { if nvml.Return(info.Status) != nvml.SUCCESS {
return false, nil return false, nil
} }