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
servicesIServiceCollection
Returns
AddCudaBackend(IServiceCollection, int)
Adds the CUDA backend with a specific device ID.
public static IServiceCollection AddCudaBackend(this IServiceCollection services, int deviceId)
Parameters
servicesIServiceCollectiondeviceIdint