Class DriverAPINativeMethods.Memset
Combines all memset API calls
Inheritance
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class Memset
Methods
cuMemsetD16_v2(CUdeviceptr, UInt16, SizeT)
Sets the memory range of N
16-bit values to the specified value us
.
Declaration
public static CUResult cuMemsetD16_v2(CUdeviceptr dstDevice, ushort us, SizeT N)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | dstDevice | Destination device pointer |
System.UInt16 | us | Value to set |
SizeT | N | Number of elements |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D16_v2(CUdeviceptr, SizeT, UInt16, SizeT, SizeT)
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 cuMemsetD2D16_v2(CUdeviceptr dstDevice, SizeT dstPitch, ushort us, SizeT Width, SizeT Height)
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 |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D32_v2(CUdeviceptr, SizeT, UInt32, SizeT, SizeT)
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 cuMemsetD2D32_v2(CUdeviceptr dstDevice, SizeT dstPitch, uint ui, SizeT Width, SizeT Height)
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 |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD2D8_v2(CUdeviceptr, SizeT, Byte, SizeT, SizeT)
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 cuMemsetD2D8_v2(CUdeviceptr dstDevice, SizeT dstPitch, byte b, SizeT Width, SizeT Height)
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 |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD32_v2(CUdeviceptr, UInt32, SizeT)
Sets the memory range of N
32-bit values to the specified value ui
.
Declaration
public static CUResult cuMemsetD32_v2(CUdeviceptr dstDevice, uint ui, SizeT N)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | dstDevice | Destination device pointer |
System.UInt32 | ui | Value to set |
SizeT | N | Number of elements |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|
cuMemsetD8_v2(CUdeviceptr, Byte, SizeT)
Sets the memory range of N
8-bit values to the specified value b
.
Declaration
public static CUResult cuMemsetD8_v2(CUdeviceptr dstDevice, byte b, SizeT N)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | dstDevice | Destination device pointer |
System.Byte | b | Value to set |
SizeT | N | Number of elements |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue.
|