Class DriverAPINativeMethods.MemsetAsync
Combines all async memset API calls
Inheritance
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class MemsetAsync
Methods
cuMemsetD16Async(CUdeviceptr, UInt16, SizeT, CUstream)
Sets the memory range of N 16-bit values to the specified value us.
Declaration
public static CUResult cuMemsetD16Async(CUdeviceptr dstDevice, ushort us, SizeT N, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| System.UInt16 | us | Value to set |
| SizeT | N | Number of elements |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D16Async(CUdeviceptr, SizeT, UInt16, SizeT, SizeT, CUstream)
Sets the 2D memory range of Width 16-bit values to the specified value us. Height specifies the number of rows to
set, and dstPitch specifies the number of bytes between each row. This function performs fastest when the pitch is
one that has been passed back by cuMemAllocPitch_v2(ref CUdeviceptr, ref SizeT, SizeT, SizeT, UInt32).
Declaration
public static CUResult cuMemsetD2D16Async(CUdeviceptr dstDevice, SizeT dstPitch, ushort us, SizeT Width, SizeT Height, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| SizeT | dstPitch | Pitch of destination device pointer |
| System.UInt16 | us | Value to set |
| SizeT | Width | Width of row |
| SizeT | Height | Number of rows |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D32Async(CUdeviceptr, SizeT, UInt32, SizeT, SizeT, CUstream)
Sets the 2D memory range of Width 32-bit values to the specified value us. Height specifies the number of rows to
set, and dstPitch specifies the number of bytes between each row. This function performs fastest when the pitch is
one that has been passed back by cuMemAllocPitch_v2(ref CUdeviceptr, ref SizeT, SizeT, SizeT, UInt32).
Declaration
public static CUResult cuMemsetD2D32Async(CUdeviceptr dstDevice, SizeT dstPitch, uint ui, SizeT Width, SizeT Height, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| SizeT | dstPitch | Pitch of destination device pointer |
| System.UInt32 | ui | Value to set |
| SizeT | Width | Width of row |
| SizeT | Height | Number of rows |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D8Async(CUdeviceptr, SizeT, Byte, SizeT, SizeT, CUstream)
Sets the 2D memory range of Width 8-bit values to the specified value b. Height specifies the number of rows to
set, and dstPitch specifies the number of bytes between each row. This function performs fastest when the pitch is
one that has been passed back by cuMemAllocPitch_v2(ref CUdeviceptr, ref SizeT, SizeT, SizeT, UInt32).
Declaration
public static CUResult cuMemsetD2D8Async(CUdeviceptr dstDevice, SizeT dstPitch, byte b, SizeT Width, SizeT Height, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| SizeT | dstPitch | Pitch of destination device pointer |
| System.Byte | b | Value to set |
| SizeT | Width | Width of row |
| SizeT | Height | Number of rows |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD32Async(CUdeviceptr, UInt32, SizeT, CUstream)
Sets the memory range of N 32-bit values to the specified value ui.
Declaration
public static CUResult cuMemsetD32Async(CUdeviceptr dstDevice, uint ui, SizeT N, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| System.UInt32 | ui | Value to set |
| SizeT | N | Number of elements |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD8Async(CUdeviceptr, Byte, SizeT, CUstream)
Sets the memory range of N 8-bit values to the specified value b.
Declaration
public static CUResult cuMemsetD8Async(CUdeviceptr dstDevice, byte b, SizeT N, CUstream hStream)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dstDevice | Destination device pointer |
| System.Byte | b | Value to set |
| SizeT | N | Number of elements |
| CUstream | hStream | Stream identifier |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|