Table of Contents

Class KernelLifecycleManager

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

Manages the lifecycle of persistent GPU kernels

public sealed class KernelLifecycleManager : IDisposable
Inheritance
KernelLifecycleManager
Implements
Inherited Members

Constructors

KernelLifecycleManager(ILogger<KernelLifecycleManager>)

Initializes a new instance of the KernelLifecycleManager class.

public KernelLifecycleManager(ILogger<KernelLifecycleManager> logger)

Parameters

logger ILogger<KernelLifecycleManager>

The logger for diagnostic output.

Methods

Dispose()

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

public void Dispose()

GetAllStatuses()

Gets status of all kernel instances

public Dictionary<string, KernelInstanceStatus> GetAllStatuses()

Returns

Dictionary<string, KernelInstanceStatus>

GetStatus(string)

Gets the status of a kernel instance

public KernelInstanceStatus? GetStatus(string instanceId)

Parameters

instanceId string

Returns

KernelInstanceStatus

RestartKernelAsync(string, CancellationToken)

Restarts a kernel instance

public Task RestartKernelAsync(string instanceId, CancellationToken ct = default)

Parameters

instanceId string
ct CancellationToken

Returns

Task

StartKernelAsync(KernelId, IGpuKernel<byte[], byte[]>, PersistentKernelOptions, CancellationToken)

Starts a new persistent kernel instance

public Task<PersistentKernelInstance> StartKernelAsync(KernelId kernelId, IGpuKernel<byte[], byte[]> kernel, PersistentKernelOptions options, CancellationToken ct = default)

Parameters

kernelId KernelId
kernel IGpuKernel<byte[], byte[]>
options PersistentKernelOptions
ct CancellationToken

Returns

Task<PersistentKernelInstance>

StopKernelAsync(string, CancellationToken)

Stops a persistent kernel instance

public Task StopKernelAsync(string instanceId, CancellationToken ct = default)

Parameters

instanceId string
ct CancellationToken

Returns

Task