Table of Contents

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

int

GridSize

Current grid size (number of thread blocks).

public int GridSize { readonly get; init; }

Property Value

int

IsActive

Whether the kernel is currently active (processing).

public bool IsActive { readonly get; init; }

Property Value

bool

IsLaunched

Whether the kernel has been launched.

public bool IsLaunched { readonly get; init; }

Property Value

bool

IsTerminating

Whether termination has been requested.

public bool IsTerminating { readonly get; init; }

Property Value

bool

KernelId

Kernel unique identifier.

public string KernelId { readonly get; init; }

Property Value

string

MessagesPending

Number of messages pending in input queue.

public int MessagesPending { readonly get; init; }

Property Value

int

MessagesProcessed

Total messages processed since launch.

public long MessagesProcessed { readonly get; init; }

Property Value

long

Uptime

Time since kernel was launched.

public TimeSpan Uptime { readonly get; init; }

Property Value

TimeSpan

Methods

Equals(RingKernelStatus)

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

public bool Equals(RingKernelStatus other)

Parameters

other RingKernelStatus

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 ==(RingKernelStatus, RingKernelStatus)

Determines whether two instances are equal.

public static bool operator ==(RingKernelStatus left, RingKernelStatus right)

Parameters

left RingKernelStatus
right RingKernelStatus

Returns

bool

operator !=(RingKernelStatus, RingKernelStatus)

Determines whether two instances are not equal.

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

Parameters

left RingKernelStatus
right RingKernelStatus

Returns

bool