Table of Contents

Class GpuHostFeature

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

Orleans host feature that integrates GPU bridge lifecycle with the Orleans runtime

public sealed class GpuHostFeature : IHostedService
Inheritance
GpuHostFeature
Implements
Inherited Members

Constructors

GpuHostFeature(ILogger<GpuHostFeature>, DeviceBroker, PersistentKernelHost)

Initializes a new instance of the GpuHostFeature class

public GpuHostFeature(ILogger<GpuHostFeature> log, DeviceBroker broker, PersistentKernelHost kernels)

Parameters

log ILogger<GpuHostFeature>

Logger instance

broker DeviceBroker

Device broker for GPU management

kernels PersistentKernelHost

Persistent kernel host

Methods

StartAsync(CancellationToken)

Starts the GPU host feature and initializes GPU resources

public Task StartAsync(CancellationToken ct)

Parameters

ct CancellationToken

Cancellation token

Returns

Task

StopAsync(CancellationToken)

Stops the GPU host feature and releases GPU resources

public Task StopAsync(CancellationToken ct)

Parameters

ct CancellationToken

Cancellation token

Returns

Task