Table of Contents

Class CudaBackendPluginExtensions

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

Static extension methods for service registration (backward compatibility).

public static class CudaBackendPluginExtensions
Inheritance
CudaBackendPluginExtensions
Inherited Members

Methods

AddCudaBackend(IServiceCollection)

Adds the CUDA backend to the service collection.

public static IServiceCollection AddCudaBackend(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddCudaBackend(IServiceCollection, int)

Adds the CUDA backend with a specific device ID.

public static IServiceCollection AddCudaBackend(this IServiceCollection services, int deviceId)

Parameters

services IServiceCollection
deviceId int

Returns

IServiceCollection