Table of Contents

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

int

GpuId

GPU ID of the participant that issued this phase token.

public int GpuId { get; init; }

Property Value

int

PhaseTimestamp

HLC timestamp when this phase was created.

public HlcTimestamp PhaseTimestamp { get; init; }

Property Value

HlcTimestamp

Methods

Equals(CrossGpuBarrierPhase)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CrossGpuBarrierPhase other)

Parameters

other CrossGpuBarrierPhase

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left CrossGpuBarrierPhase
right CrossGpuBarrierPhase

Returns

bool

operator !=(CrossGpuBarrierPhase, CrossGpuBarrierPhase)

Determines whether two CrossGpuBarrierPhase instances are not equal.

public static bool operator !=(CrossGpuBarrierPhase left, CrossGpuBarrierPhase right)

Parameters

left CrossGpuBarrierPhase
right CrossGpuBarrierPhase

Returns

bool