Class GpuHostFeature
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
logILogger<GpuHostFeature>Logger instance
brokerDeviceBrokerDevice broker for GPU management
kernelsPersistentKernelHostPersistent kernel host
Methods
StartAsync(CancellationToken)
Starts the GPU host feature and initializes GPU resources
public Task StartAsync(CancellationToken ct)
Parameters
ctCancellationTokenCancellation token
Returns
StopAsync(CancellationToken)
Stops the GPU host feature and releases GPU resources
public Task StopAsync(CancellationToken ct)
Parameters
ctCancellationTokenCancellation token