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
argumentsobject[]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
devicePointernintThe device pointer.
Add<T>(T)
Performs add.
public void Add<T>(T argument) where T : unmanaged
Parameters
argumentTThe argument.
Type Parameters
TThe T type parameter.
ToArray()
Gets to array.
public object[] ToArray()
Returns
- object[]
The result of the operation.