Class GpuExecutionHints
- Namespace
- Orleans.GpuBridge.Abstractions
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Hints for GPU kernel execution optimization
[GenerateSerializer]
public sealed record GpuExecutionHints : IEquatable<GpuExecutionHints>
- Inheritance
-
GpuExecutionHints
- Implements
- Inherited Members
Constructors
GpuExecutionHints(int?, bool, int?, bool, bool, TimeSpan?, int?)
Hints for GPU kernel execution optimization
public GpuExecutionHints(int? PreferredDevice = null, bool HighPriority = false, int? MaxMicroBatch = null, bool Persistent = true, bool PreferGpu = true, TimeSpan? Timeout = null, int? MaxRetries = null)
Parameters
PreferredDeviceint?HighPriorityboolMaxMicroBatchint?PersistentboolPreferGpuboolTimeoutTimeSpan?MaxRetriesint?
Properties
CpuOnly
CPU-only execution hints
public static GpuExecutionHints CpuOnly { get; }
Property Value
Default
Default execution hints
public static GpuExecutionHints Default { get; }
Property Value
HighPriority
[Id(1)]
public bool HighPriority { get; init; }
Property Value
HighPriorityGpu
High-priority GPU execution hints
public static GpuExecutionHints HighPriorityGpu { get; }
Property Value
MaxMicroBatch
[Id(2)]
public int? MaxMicroBatch { get; init; }
Property Value
- int?
MaxRetries
[Id(6)]
public int? MaxRetries { get; init; }
Property Value
- int?
Persistent
[Id(3)]
public bool Persistent { get; init; }
Property Value
PreferGpu
[Id(4)]
public bool PreferGpu { get; init; }
Property Value
PreferredBatchSize
Preferred batch size for execution (computed property)
public int PreferredBatchSize { get; }
Property Value
PreferredDevice
[Id(0)]
public int? PreferredDevice { get; init; }
Property Value
- int?
Timeout
[Id(5)]
public TimeSpan? Timeout { get; init; }
Property Value
TimeoutMs
Timeout in milliseconds (computed property)
public int TimeoutMs { get; }