Table of Contents

Class CudaKernelFusionOptions

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

Configuration options for kernel fusion optimization. Manages kernel arguments and launch configurations for fused operations.

public sealed class CudaKernelFusionOptions
Inheritance
CudaKernelFusionOptions
Inherited Members

Methods

GetArgumentsForKernel(CudaCompiledKernel)

Gets the kernel arguments for the specified kernel. Returns empty arguments if not found.

public CudaKernelArguments GetArgumentsForKernel(CudaCompiledKernel kernel)

Parameters

kernel CudaCompiledKernel

The kernel to get arguments for.

Returns

CudaKernelArguments

The kernel arguments or empty arguments if not configured.

GetLaunchConfigForKernel(CudaCompiledKernel)

Gets the launch configuration for the specified kernel. Returns a default configuration if not found.

public CudaLaunchConfig GetLaunchConfigForKernel(CudaCompiledKernel kernel)

Parameters

kernel CudaCompiledKernel

The kernel to get launch configuration for.

Returns

CudaLaunchConfig

The launch configuration or default if not configured.

SetCudaKernelArguments(CudaCompiledKernel, CudaKernelArguments)

Sets the kernel arguments for a specific kernel.

public void SetCudaKernelArguments(CudaCompiledKernel kernel, CudaKernelArguments arguments)

Parameters

kernel CudaCompiledKernel

The kernel to configure.

arguments CudaKernelArguments

The arguments to set.

SetKernelLaunchConfig(CudaCompiledKernel, CudaLaunchConfig)

Sets the launch configuration for a specific kernel.

public void SetKernelLaunchConfig(CudaCompiledKernel kernel, CudaLaunchConfig config)

Parameters

kernel CudaCompiledKernel

The kernel to configure.

config CudaLaunchConfig

The launch configuration to set.