Interface IGpuBackendProvider
- Namespace
- Orleans.GpuBridge.Abstractions.Providers
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Main interface for GPU backend providers (ILGPU, DotCompute, etc.)
public interface IGpuBackendProvider : IDisposable
- Inherited Members
Properties
Capabilities
Gets the capabilities of this backend provider
BackendCapabilities Capabilities { get; }
Property Value
DisplayName
Display name for this backend provider
string DisplayName { get; }
Property Value
ProviderId
Unique identifier for this backend provider
string ProviderId { get; }
Property Value
Version
Version of the backend provider
Version Version { get; }
Property Value
Methods
CheckHealthAsync(CancellationToken)
Performs a health check on the backend
Task<HealthCheckResult> CheckHealthAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
CreateContext(int)
Creates a compute context for the specified device
Task<object> CreateContext(int deviceIndex = 0)
Parameters
deviceIndexint
Returns
GetDeviceManager()
Gets the device manager for this backend
IDeviceManager GetDeviceManager()
Returns
GetKernelCompiler()
Gets the kernel compiler for this backend
IKernelCompiler GetKernelCompiler()
Returns
GetKernelExecutor()
Gets the kernel executor for this backend
IKernelExecutor GetKernelExecutor()
Returns
GetMemoryAllocator()
Gets the memory allocator for this backend
IMemoryAllocator GetMemoryAllocator()
Returns
GetMetricsAsync(CancellationToken)
Gets backend-specific metrics
Task<IReadOnlyDictionary<string, object>> GetMetricsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
InitializeAsync(BackendConfiguration, CancellationToken)
Initializes the backend provider
Task InitializeAsync(BackendConfiguration configuration, CancellationToken cancellationToken = default)
Parameters
configurationBackendConfigurationcancellationTokenCancellationToken
Returns
IsAvailable()
Checks if the backend is available on this system (synchronous version)
bool IsAvailable()
Returns
IsAvailableAsync(CancellationToken)
Checks if the backend is available on this system
Task<bool> IsAvailableAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken