Table of Contents

Class CudaBackendPlugin

Namespace
DotCompute.Backends.CUDA
Assembly
DotCompute.Backends.CUDA.dll

Plugin implementation for the CUDA backend. Consolidates duplicate registration patterns using BaseBackendPlugin.

public sealed class CudaBackendPlugin : BaseBackendPlugin<CudaAccelerator, CudaBackendOptions>, IBackendPlugin, IDisposable
Inheritance
CudaBackendPlugin
Implements
Inherited Members
Extension Methods

Properties

AcceleratorName

Gets the name used for the named accelerator wrapper. Override this to customize the accelerator name.

protected override string AcceleratorName { get; }

Property Value

string

Author

Gets the author of the plugin.

public override string Author { get; }

Property Value

string

Capabilities

Gets the plugin's capabilities and features.

public override PluginCapabilities Capabilities { get; }

Property Value

PluginCapabilities

ConfigurationSectionName

Gets the configuration section name for backend options. Override this to customize the configuration section path.

protected override string ConfigurationSectionName { get; }

Property Value

string

Description

Gets the description of the plugin.

public override string Description { get; }

Property Value

string

Id

Gets the unique identifier for this plugin.

public override string Id { get; }

Property Value

string

Name

Gets the display name of the plugin.

public override string Name { get; }

Property Value

string

Version

Gets the version of the plugin.

public override Version Version { get; }

Property Value

Version

Methods

GetConfigurationSchema()

Gets the plugin's configuration schema.

public override string GetConfigurationSchema()

Returns

string

JSON schema for the plugin's configuration.

OnUpdateMetrics(PluginMetrics)

Called when metrics need to be updated.

protected override void OnUpdateMetrics(PluginMetrics metrics)

Parameters

metrics PluginMetrics

OnValidate(PluginValidationResult)

Called when plugin validation is performed.

protected override void OnValidate(PluginValidationResult result)

Parameters

result PluginValidationResult

RegisterAccelerator(IServiceCollection, IConfiguration)

Registers the backend-specific accelerator. This method must be implemented by derived classes to provide their specific accelerator registration logic.

protected override void RegisterAccelerator(IServiceCollection services, IConfiguration configuration)

Parameters

services IServiceCollection

The service collection.

configuration IConfiguration

The configuration instance.