Show / Hide Table of Contents

    Class DriverAPINativeMethods.Memset

    Combines all memset API calls

    Inheritance
    System.Object
    DriverAPINativeMethods.Memset
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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. Note that this function may also return error codes from previous, asynchronous launches.

    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. Note that this function may also return error codes from previous, asynchronous launches.

    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. Note that this function may also return error codes from previous, asynchronous launches.

    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. Note that this function may also return error codes from previous, asynchronous launches.

    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. Note that this function may also return error codes from previous, asynchronous launches.

    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. Note that this function may also return error codes from previous, asynchronous launches.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX