Struct CrossGpuBarrierPhase
- Namespace
- DotCompute.Abstractions.Barriers
- Assembly
- DotCompute.Abstractions.dll
Opaque token representing a barrier phase for split-phase synchronization.
public readonly struct CrossGpuBarrierPhase : IEquatable<CrossGpuBarrierPhase>
- Implements
- Inherited Members
Properties
Generation
Generation counter for ABA problem prevention.
public int Generation { get; init; }
Property Value
GpuId
GPU ID of the participant that issued this phase token.
public int GpuId { get; init; }
Property Value
PhaseTimestamp
HLC timestamp when this phase was created.
public HlcTimestamp PhaseTimestamp { get; init; }
Property Value
Methods
Equals(CrossGpuBarrierPhase)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CrossGpuBarrierPhase other)
Parameters
otherCrossGpuBarrierPhaseAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(CrossGpuBarrierPhase, CrossGpuBarrierPhase)
Determines whether two CrossGpuBarrierPhase instances are equal.
public static bool operator ==(CrossGpuBarrierPhase left, CrossGpuBarrierPhase right)
Parameters
leftCrossGpuBarrierPhaserightCrossGpuBarrierPhase
Returns
operator !=(CrossGpuBarrierPhase, CrossGpuBarrierPhase)
Determines whether two CrossGpuBarrierPhase instances are not equal.
public static bool operator !=(CrossGpuBarrierPhase left, CrossGpuBarrierPhase right)
Parameters
leftCrossGpuBarrierPhaserightCrossGpuBarrierPhase