Table of Contents

Class GpuPlacementDirector

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

GPU-aware placement director that routes grains to silos with available GPU capacity

public sealed class GpuPlacementDirector : IPlacementDirector
Inheritance
GpuPlacementDirector
Implements
Inherited Members

Constructors

GpuPlacementDirector(ILogger<GpuPlacementDirector>, IGrainFactory)

Initializes a new instance of the GPU placement director

public GpuPlacementDirector(ILogger<GpuPlacementDirector> logger, IGrainFactory grainFactory)

Parameters

logger ILogger<GpuPlacementDirector>
grainFactory IGrainFactory

Methods

OnAddActivation(PlacementStrategy, PlacementTarget, IPlacementContext)

Selects a silo for grain activation based on GPU capacity

public Task<SiloAddress> OnAddActivation(PlacementStrategy strategy, PlacementTarget target, IPlacementContext context)

Parameters

strategy PlacementStrategy
target PlacementTarget
context IPlacementContext

Returns

Task<SiloAddress>