Show / Hide Table of Contents

    Class CudaPageLockedHostMemory2D_cuFloatReal

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

    Type: cuFloatReal

    Inheritance
    System.Object
    CudaPageLockedHostMemory2D_cuFloatReal
    Implements
    System.IDisposable
    System.Collections.Generic.IEnumerable<cuFloatReal>
    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 CudaPageLockedHostMemory2D_cuFloatReal : IDisposable, IEnumerable<cuFloatReal>, IEnumerable

    Constructors

    | Improve this Doc View Source

    CudaPageLockedHostMemory2D_cuFloatReal(SizeT, SizeT)

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

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

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

    In elements

    SizeT height

    In elements

    | Improve this Doc View Source

    CudaPageLockedHostMemory2D_cuFloatReal(SizeT, SizeT, CUMemHostAllocFlags)

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

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

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

    In elements

    SizeT height

    In elements

    CUMemHostAllocFlags allocFlags
    | Improve this Doc View Source

    CudaPageLockedHostMemory2D_cuFloatReal(SizeT, SizeT, SizeT)

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

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

    In elements

    SizeT pitchInBytes

    Width including alignment in bytes

    SizeT height

    In elements

    | Improve this Doc View Source

    CudaPageLockedHostMemory2D_cuFloatReal(SizeT, SizeT, SizeT, CUMemHostAllocFlags)

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

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

    In elements

    SizeT pitchInBytes

    Width including alignment in bytes

    SizeT height

    In elements

    CUMemHostAllocFlags allocFlags

    Properties

    | 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]

    Access array per element.

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

    X-index in elements

    SizeT y

    Y-index in elements

    Property Value
    Type Description
    cuFloatReal
    | 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

    AsyncCopyFromArray2D(CUarray, CUstream)

    Asynchron copy 2D Array to host

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

    AsyncCopyFromArray2D(CudaArray2D, CUstream)

    Asynchron copy 2D Array to host

    Declaration
    public void AsyncCopyFromArray2D(CudaArray2D array, CUstream stream)
    Parameters
    Type Name Description
    CudaArray2D 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(CUdeviceptr, SizeT, CUstream)

    Asynchron copy device to host

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

    AsyncCopyFromDevice(CudaDeviceVariable<cuFloatReal>, CUstream)

    Asynchron copy device to host

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

    AsyncCopyFromDevice(CudaPitchedDeviceVariable<cuFloatReal>, CUstream)

    Asynchron copy device to host

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

    AsyncCopyToArray2D(CUarray, CUstream)

    Asynchron copy host to 2D Array

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

    AsyncCopyToArray2D(CudaArray2D, CUstream)

    Asynchron copy host to 2D Array

    Declaration
    public void AsyncCopyToArray2D(CudaArray2D array, CUstream stream)
    Parameters
    Type Name Description
    CudaArray2D 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(CUdeviceptr, SizeT, CUstream)

    Asynchron Copy host to pitched device

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

    AsyncCopyToDevice(CudaDeviceVariable<cuFloatReal>, CUstream)

    Asynchron Copy host to device

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

    AsyncCopyToDevice(CudaPitchedDeviceVariable<cuFloatReal>, CUstream)

    Asynchron Copy host to pitched device

    Declaration
    public void AsyncCopyToDevice(CudaPitchedDeviceVariable<cuFloatReal> deviceVar, CUstream stream)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<cuFloatReal> 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

    SynchronCopyFromArray2D(CUarray)

    Synchron copy 2D Array to host

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

    SynchronCopyFromArray2D(CudaArray2D)

    Synchron copy 2D Array to host

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

    SynchronCopyFromDevice(CUdeviceptr, SizeT)

    Synchron copy device to host

    Declaration
    public void SynchronCopyFromDevice(CUdeviceptr devicePtr, SizeT pitchDevice)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr
    SizeT pitchDevice
    | Improve this Doc View Source

    SynchronCopyFromDevice(CudaPitchedDeviceVariable<cuFloatReal>)

    Synchron copy device to host

    Declaration
    public void SynchronCopyFromDevice(CudaPitchedDeviceVariable<cuFloatReal> deviceVar)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<cuFloatReal> deviceVar
    | Improve this Doc View Source

    SynchronCopyToArray2D(CUarray)

    Synchron copy host to 2D Array

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

    SynchronCopyToArray2D(CudaArray2D)

    Synchron copy host to 2D Array

    Declaration
    public void SynchronCopyToArray2D(CudaArray2D array)
    Parameters
    Type Name Description
    CudaArray2D 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(CUdeviceptr, SizeT)

    Synchron Copy host to pitched device

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

    SynchronCopyToDevice(CudaDeviceVariable<cuFloatReal>)

    Synchron copy host to device

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

    SynchronCopyToDevice(CudaPitchedDeviceVariable<cuFloatReal>)

    Synchron Copy host to pitched device

    Declaration
    public void SynchronCopyToDevice(CudaPitchedDeviceVariable<cuFloatReal> deviceVar)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<cuFloatReal> deviceVar
    | 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<cuFloatReal>)

    Synchron copy device to host

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

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable<cuFloatReal>.GetEnumerator()

    Declaration
    IEnumerator<cuFloatReal> IEnumerable<cuFloatReal>.GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<cuFloatReal>
    | 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