Show / Hide Table of Contents

    Class CudaPageLockedHostMemory3D_uchar2

    A variable located in page locked (pinned) host memory. Use this type of variabe for asynchronous memcpy.

    Inheritance
    System.Object
    CudaPageLockedHostMemory3D_uchar2
    Implements
    System.IDisposable
    System.Collections.Generic.IEnumerable<uchar2>
    System.Collections.IEnumerable
    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 class CudaPageLockedHostMemory3D_uchar2 : IDisposable, IEnumerable<uchar2>, IEnumerable

    Constructors

    | Improve this Doc View Source

    CudaPageLockedHostMemory3D_uchar2(SizeT, SizeT, SizeT)

    Creates a new CudaPageLockedHostMemory3D_uchar2 and allocates the memory on host. Using cuMemHostAlloc without flags.

    Pitch is assumed to be width * sizeof(uchar2). Using cuMemHostAlloc without flags.

    Declaration
    public CudaPageLockedHostMemory3D_uchar2(SizeT width, SizeT height, SizeT depth)
    Parameters
    Type Name Description
    SizeT width

    In elements

    SizeT height

    In elements

    SizeT depth

    In elements

    | Improve this Doc View Source

    CudaPageLockedHostMemory3D_uchar2(SizeT, SizeT, SizeT, CUMemHostAllocFlags)

    Creates a new CudaPageLockedHostMemory3D_uchar2 and allocates the memory on host. Using cuMemHostAlloc without flags.

    Pitch is assumed to be width * sizeof(uchar2). Using cuMemHostAlloc.

    Declaration
    public CudaPageLockedHostMemory3D_uchar2(SizeT width, SizeT height, SizeT depth, CUMemHostAllocFlags allocFlags)
    Parameters
    Type Name Description
    SizeT width

    In elements

    SizeT height

    In elements

    SizeT depth

    In elements

    CUMemHostAllocFlags allocFlags
    | Improve this Doc View Source

    CudaPageLockedHostMemory3D_uchar2(SizeT, SizeT, SizeT, SizeT)

    Creates a new CudaPageLockedHostMemory3D_uchar2 and allocates the memory on host. Using cuMemHostAlloc without flags.

    Declaration
    public CudaPageLockedHostMemory3D_uchar2(SizeT width, SizeT pitchInBytes, SizeT height, SizeT depth)
    Parameters
    Type Name Description
    SizeT width

    In elements

    SizeT pitchInBytes

    Width including alignment in bytes

    SizeT height

    In elements

    SizeT depth

    In elements

    | Improve this Doc View Source

    CudaPageLockedHostMemory3D_uchar2(SizeT, SizeT, SizeT, SizeT, CUMemHostAllocFlags)

    Creates a new CudaPageLockedHostMemory3D_uchar2 and allocates the memory on host. Using cuMemHostAlloc

    Declaration
    public CudaPageLockedHostMemory3D_uchar2(SizeT width, SizeT pitchInBytes, SizeT height, SizeT depth, CUMemHostAllocFlags allocFlags)
    Parameters
    Type Name Description
    SizeT width

    In elements

    SizeT pitchInBytes

    Width including alignment in bytes

    SizeT height

    In elements

    SizeT depth

    In elements

    CUMemHostAllocFlags allocFlags

    Properties

    | Improve this Doc View Source

    Depth

    Depth in elements

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

    Height

    Height in elements

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

    Item[SizeT, SizeT, SizeT]

    Access array per element.

    Declaration
    public uchar2 this[SizeT x, SizeT y, SizeT z] { get; set; }
    Parameters
    Type Name Description
    SizeT x

    X-index in elements

    SizeT y

    Y-index in elements

    SizeT z

    Z-index in elements

    Property Value
    Type Description
    uchar2
    | Improve this Doc View Source

    PinnedHostPointer

    Pointer to pinned host memory.

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

    Pitch

    Pitch in bytes

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

    SizeInBytes

    Size in bytes

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

    TypeSize

    Type size in bytes

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

    Width

    Width in elements

    Declaration
    public SizeT Width { get; }
    Property Value
    Type Description
    SizeT

    Methods

    | Improve this Doc View Source

    AsyncCopyFromArray3D(CUarray, CUstream)

    Asynchron copy 3D Array to host

    Declaration
    public void AsyncCopyFromArray3D(CUarray deviceArray, CUstream stream)
    Parameters
    Type Name Description
    CUarray deviceArray
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyFromArray3D(CudaArray3D, CUstream)

    Asynchron copy 3D Array to host

    Declaration
    public void AsyncCopyFromArray3D(CudaArray3D array, CUstream stream)
    Parameters
    Type Name Description
    CudaArray3D array
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyFromDevice(CUdeviceptr, CUstream)

    Asynchron copy device to host

    Declaration
    public void AsyncCopyFromDevice(CUdeviceptr devicePtr, CUstream stream)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyFromDevice(CudaDeviceVariable<uchar2>, CUstream)

    Asynchron copy device to host

    Declaration
    public void AsyncCopyFromDevice(CudaDeviceVariable<uchar2> deviceVar, CUstream stream)
    Parameters
    Type Name Description
    CudaDeviceVariable<uchar2> deviceVar
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToArray3D(CUarray, CUstream)

    Asynchron copy host to 3D array

    Declaration
    public void AsyncCopyToArray3D(CUarray deviceArray, CUstream stream)
    Parameters
    Type Name Description
    CUarray deviceArray
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToArray3D(CudaArray3D, CUstream)

    Asynchron copy host to 3D Array

    Declaration
    public void AsyncCopyToArray3D(CudaArray3D array, CUstream stream)
    Parameters
    Type Name Description
    CudaArray3D array
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToDevice(CUdeviceptr, CUstream)

    Asynchron Copy host to device

    Declaration
    public void AsyncCopyToDevice(CUdeviceptr devicePtr, CUstream stream)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr
    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToDevice(CudaDeviceVariable<uchar2>, CUstream)

    Asynchron Copy host to device

    Declaration
    public void AsyncCopyToDevice(CudaDeviceVariable<uchar2> deviceVar, CUstream stream)
    Parameters
    Type Name Description
    CudaDeviceVariable<uchar2> deviceVar
    CUstream stream
    | Improve this Doc View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    For IDisposable

    Declaration
    protected virtual void Dispose(bool fDisposing)
    Parameters
    Type Name Description
    System.Boolean fDisposing
    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    GetAllocFlags()

    Passes back the flags that were specified when allocating the pinned host buffer

    Declaration
    public CUMemHostAllocFlags GetAllocFlags()
    Returns
    Type Description
    CUMemHostAllocFlags
    | Improve this Doc View Source

    GetDevicePointer()

    Returns the CUdeviceptr for pinned host memory mapped to device memory space. Only valid if context is created with flag MapHost

    Declaration
    public CUdeviceptr GetDevicePointer()
    Returns
    Type Description
    CUdeviceptr

    Device Pointer

    | Improve this Doc View Source

    SynchronCopyFromArray3D(CUarray)

    Synchron copy 3D Array to host

    Declaration
    public void SynchronCopyFromArray3D(CUarray deviceArray)
    Parameters
    Type Name Description
    CUarray deviceArray
    | Improve this Doc View Source

    SynchronCopyFromArray3D(CudaArray3D)

    Synchron copy 3D Array to host

    Declaration
    public void SynchronCopyFromArray3D(CudaArray3D array)
    Parameters
    Type Name Description
    CudaArray3D array
    | Improve this Doc View Source

    SynchronCopyToArray3D(CUarray)

    Synchron copy host to 3D array

    Declaration
    public void SynchronCopyToArray3D(CUarray deviceArray)
    Parameters
    Type Name Description
    CUarray deviceArray
    | Improve this Doc View Source

    SynchronCopyToArray3D(CudaArray3D)

    Synchron copy host to 3D Array

    Declaration
    public void SynchronCopyToArray3D(CudaArray3D array)
    Parameters
    Type Name Description
    CudaArray3D array
    | Improve this Doc View Source

    SynchronCopyToDevice(CUdeviceptr)

    Synchron copy host to device

    Declaration
    public void SynchronCopyToDevice(CUdeviceptr devicePtr)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr
    | Improve this Doc View Source

    SynchronCopyToDevice(CudaDeviceVariable<uchar2>)

    Synchron copy host to device

    Declaration
    public void SynchronCopyToDevice(CudaDeviceVariable<uchar2> devicePtr)
    Parameters
    Type Name Description
    CudaDeviceVariable<uchar2> devicePtr
    | Improve this Doc View Source

    SynchronCopyToHost(CUdeviceptr)

    Synchron copy device to host

    Declaration
    public void SynchronCopyToHost(CUdeviceptr devicePtr)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr
    | Improve this Doc View Source

    SynchronCopyToHost(CudaDeviceVariable<uchar2>)

    Synchron copy device to host

    Declaration
    public void SynchronCopyToHost(CudaDeviceVariable<uchar2> devicePtr)
    Parameters
    Type Name Description
    CudaDeviceVariable<uchar2> devicePtr

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable<uchar2>.GetEnumerator()

    Declaration
    IEnumerator<uchar2> IEnumerable<uchar2>.GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<uchar2>
    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.IDisposable
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX