Table of Contents

Class CudaKernelArguments

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

Kernel arguments for CUDA execution

public sealed class CudaKernelArguments
Inheritance
CudaKernelArguments
Inherited Members

Constructors

CudaKernelArguments()

Initializes a new instance of the CudaKernelArguments class.

public CudaKernelArguments()

CudaKernelArguments(params object[])

Initializes a new instance of the CudaKernelArguments class.

public CudaKernelArguments(params object[] arguments)

Parameters

arguments object[]

The arguments.

Properties

Count

Gets or sets the count.

public int Count { get; }

Property Value

int

The count.

Methods

AddBuffer(nint)

Performs add buffer.

public void AddBuffer(nint devicePointer)

Parameters

devicePointer nint

The device pointer.

Add<T>(T)

Performs add.

public void Add<T>(T argument) where T : unmanaged

Parameters

argument T

The argument.

Type Parameters

T

The T type parameter.

ToArray()

Gets to array.

public object[] ToArray()

Returns

object[]

The result of the operation.