Table of Contents

Class PersistentKernelHost

Namespace
Orleans.GpuBridge.Runtime
Assembly
Orleans.GpuBridge.Runtime.dll

Host service for persistent GPU kernels with ring buffer I/O

public sealed class PersistentKernelHost : IHostedService, IDisposable
Inheritance
PersistentKernelHost
Implements
Inherited Members

Constructors

PersistentKernelHost(ILogger<PersistentKernelHost>, IServiceProvider, IOptions<PersistentKernelHostOptions>, KernelCatalog)

Initializes a new instance of the PersistentKernelHost class.

public PersistentKernelHost(ILogger<PersistentKernelHost> logger, IServiceProvider serviceProvider, IOptions<PersistentKernelHostOptions> options, KernelCatalog kernelCatalog)

Parameters

logger ILogger<PersistentKernelHost>

The logger for diagnostic output.

serviceProvider IServiceProvider

The service provider for dependency resolution.

options IOptions<PersistentKernelHostOptions>

The host options configuration.

kernelCatalog KernelCatalog

The kernel catalog for resolving kernels.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetBufferStatistics()

Gets ring buffer statistics

public Dictionary<string, RingBufferStats> GetBufferStatistics()

Returns

Dictionary<string, RingBufferStats>

GetKernelStatuses()

Gets the status of all running kernels

public Dictionary<string, KernelInstanceStatus> GetKernelStatuses()

Returns

Dictionary<string, KernelInstanceStatus>

RestartKernelAsync(string, CancellationToken)

Restarts a specific kernel

public Task RestartKernelAsync(string kernelId, CancellationToken cancellationToken = default)

Parameters

kernelId string
cancellationToken CancellationToken

Returns

Task

StartAsync(CancellationToken)

Triggered when the application host is ready to start the service.

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the start process has been aborted.

Returns

Task

A Task that represents the asynchronous Start operation.

StopAsync(CancellationToken)

Triggered when the application host is performing a graceful shutdown.

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the shutdown process should no longer be graceful.

Returns

Task

A Task that represents the asynchronous Stop operation.