Struct RingKernelStatus
- Namespace
- DotCompute.Abstractions.RingKernels
- Assembly
- DotCompute.Abstractions.dll
Represents the current status of a ring kernel.
public struct RingKernelStatus : IEquatable<RingKernelStatus>
- Implements
- Inherited Members
Properties
BlockSize
Current block size (threads per block).
public int BlockSize { readonly get; init; }
Property Value
GridSize
Current grid size (number of thread blocks).
public int GridSize { readonly get; init; }
Property Value
IsActive
Whether the kernel is currently active (processing).
public bool IsActive { readonly get; init; }
Property Value
IsLaunched
Whether the kernel has been launched.
public bool IsLaunched { readonly get; init; }
Property Value
IsTerminating
Whether termination has been requested.
public bool IsTerminating { readonly get; init; }
Property Value
KernelId
Kernel unique identifier.
public string KernelId { readonly get; init; }
Property Value
MessagesPending
Number of messages pending in input queue.
public int MessagesPending { readonly get; init; }
Property Value
MessagesProcessed
Total messages processed since launch.
public long MessagesProcessed { readonly get; init; }
Property Value
Uptime
Time since kernel was launched.
public TimeSpan Uptime { readonly get; init; }
Property Value
Methods
Equals(RingKernelStatus)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RingKernelStatus other)
Parameters
otherRingKernelStatusAn 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 ==(RingKernelStatus, RingKernelStatus)
Determines whether two instances are equal.
public static bool operator ==(RingKernelStatus left, RingKernelStatus right)
Parameters
leftRingKernelStatusrightRingKernelStatus
Returns
operator !=(RingKernelStatus, RingKernelStatus)
Determines whether two instances are not equal.
public static bool operator !=(RingKernelStatus left, RingKernelStatus right)
Parameters
leftRingKernelStatusrightRingKernelStatus