Show / Hide Table of Contents

    Struct CUdeviceptr

    Pointer to CUDA device memory

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ManagedCuda.BasicTypes
    Assembly: ManagedCuda.dll
    Syntax
    public struct CUdeviceptr

    Constructors

    | Improve this Doc View Source

    CUdeviceptr(SizeT)

    Declaration
    public CUdeviceptr(SizeT pointer)
    Parameters
    Type Name Description
    SizeT pointer

    Fields

    | Improve this Doc View Source

    Pointer

    Declaration
    public SizeT Pointer
    Field Value
    Type Description
    SizeT

    Properties

    | Improve this Doc View Source

    AttributeBufferID

    A process-wide unique ID for an allocated memory region

    Declaration
    public ulong AttributeBufferID { get; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    AttributeContext

    The CUcontext on which a pointer was allocated or registered

    Declaration
    public CUcontext AttributeContext { get; }
    Property Value
    Type Description
    CUcontext
    | Improve this Doc View Source

    AttributeDevicePointer

    The address at which a pointer's memory may be accessed on the device

    Except in the exceptional disjoint addressing cases, the value returned will equal the input value.

    Declaration
    public CUdeviceptr AttributeDevicePointer { get; }
    Property Value
    Type Description
    CUdeviceptr
    | Improve this Doc View Source

    AttributeHostPointer

    The address at which a pointer's memory may be accessed on the host

    Declaration
    public IntPtr AttributeHostPointer { get; }
    Property Value
    Type Description
    System.IntPtr
    | Improve this Doc View Source

    AttributeIsManaged

    Indicates if the pointer points to managed memory

    Declaration
    public bool AttributeIsManaged { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    AttributeMemoryType

    The CUMemoryType describing the physical location of a pointer

    Declaration
    public CUMemoryType AttributeMemoryType { get; }
    Property Value
    Type Description
    CUMemoryType
    | Improve this Doc View Source

    AttributeP2PTokens

    A pair of tokens for use with the nv-p2p.h Linux kernel interface

    Declaration
    public CudaPointerAttributeP2PTokens AttributeP2PTokens { get; }
    Property Value
    Type Description
    CudaPointerAttributeP2PTokens
    | Improve this Doc View Source

    AttributeSyncMemops

    Synchronize every synchronous memory operation initiated on this region

    Declaration
    public bool AttributeSyncMemops { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Returns true if both objects are of type CUdeviceptr and if both Pointer member is equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Overrides object.GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    ToString()

    override ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Addition(CUdeviceptr, SizeT)

    Declaration
    public static CUdeviceptr operator +(CUdeviceptr src, SizeT value)
    Parameters
    Type Name Description
    CUdeviceptr src
    SizeT value
    Returns
    Type Description
    CUdeviceptr
    | Improve this Doc View Source

    Equality(CUdeviceptr, CUdeviceptr)

    Declaration
    public static bool operator ==(CUdeviceptr src, CUdeviceptr value)
    Parameters
    Type Name Description
    CUdeviceptr src
    CUdeviceptr value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Explicit(SizeT to CUdeviceptr)

    Declaration
    public static explicit operator CUdeviceptr(SizeT src)
    Parameters
    Type Name Description
    SizeT src
    Returns
    Type Description
    CUdeviceptr
    | Improve this Doc View Source

    Implicit(CUdeviceptr to UInt64)

    Declaration
    public static implicit operator ulong (CUdeviceptr src)
    Parameters
    Type Name Description
    CUdeviceptr src
    Returns
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Inequality(CUdeviceptr, CUdeviceptr)

    Declaration
    public static bool operator !=(CUdeviceptr src, CUdeviceptr value)
    Parameters
    Type Name Description
    CUdeviceptr src
    CUdeviceptr value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Subtraction(CUdeviceptr, SizeT)

    Declaration
    public static CUdeviceptr operator -(CUdeviceptr src, SizeT value)
    Parameters
    Type Name Description
    CUdeviceptr src
    SizeT value
    Returns
    Type Description
    CUdeviceptr
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX