Show / Hide Table of Contents

    Class CudaPageLockedHostMemory_ushort

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

    Type: ushort

    Inheritance
    System.Object
    CudaPageLockedHostMemory_ushort
    Implements
    System.IDisposable
    System.Collections.Generic.IEnumerable<System.UInt16>
    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 CudaPageLockedHostMemory_ushort : IDisposable, IEnumerable<ushort>, IEnumerable

    Constructors

    | Improve this Doc View Source

    CudaPageLockedHostMemory_ushort(SizeT)

    Creates a new CudaPageLockedHostMemory and allocates the memory on host. Using cuMemAllocHost

    Declaration
    public CudaPageLockedHostMemory_ushort(SizeT size)
    Parameters
    Type Name Description
    SizeT size

    In elements

    | Improve this Doc View Source

    CudaPageLockedHostMemory_ushort(SizeT, CUMemHostAllocFlags)

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

    Declaration
    public CudaPageLockedHostMemory_ushort(SizeT size, CUMemHostAllocFlags allocFlags)
    Parameters
    Type Name Description
    SizeT size

    In elements

    CUMemHostAllocFlags allocFlags
    | Improve this Doc View Source

    CudaPageLockedHostMemory_ushort(IntPtr, SizeT)

    Creates a new CudaPageLockedHostMemory from an existing IntPtr. IntPtr must point to page locked memory! hostPointer won't be freed while disposing.

    Declaration
    public CudaPageLockedHostMemory_ushort(IntPtr hostPointer, SizeT size)
    Parameters
    Type Name Description
    System.IntPtr hostPointer
    SizeT size

    In elements

    Properties

    | Improve this Doc View Source

    IsOwner

    If the wrapper class instance is the owner of a CUDA handle, it will be destroyed while disposing.

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

    Item[SizeT]

    Access array per element.

    Declaration
    public ushort this[SizeT index] { get; set; }
    Parameters
    Type Name Description
    SizeT index

    index in elements

    Property Value
    Type Description
    System.UInt16
    | 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

    Size

    Size in elements

    Declaration
    public SizeT Size { 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

    Methods

    | Improve this Doc View Source

    AsyncCopyFromArray1D(CUarray, CUstream)

    Asynchron copy 1D Array to host

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

    AsyncCopyFromArray1D(CUarray, CUstream, SizeT)

    Asynchron copy 1D Array to host

    Declaration
    public void AsyncCopyFromArray1D(CUarray deviceArray, CUstream stream, SizeT offset)
    Parameters
    Type Name Description
    CUarray deviceArray
    CUstream stream
    SizeT offset

    bytes

    | Improve this Doc View Source

    AsyncCopyFromArray1D(CudaArray1D, CUstream)

    Asynchron copy 1D Array to host

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

    AsyncCopyFromArray1D(CudaArray1D, CUstream, SizeT)

    Asynchron copy 1D Array to host

    Declaration
    public void AsyncCopyFromArray1D(CudaArray1D array, CUstream stream, SizeT offset)
    Parameters
    Type Name Description
    CudaArray1D array
    CUstream stream
    SizeT offset

    bytes

    | 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, SizeT, SizeT, CUstream)

    Asynchron copy device to host

    Declaration
    public void AsyncCopyFromDevice(CUdeviceptr devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes, CUstream stream)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    CUstream stream
    | Improve this Doc View Source

    AsyncCopyFromDevice(CudaDeviceVariable<UInt16>, CUstream)

    Asynchron copy device to host

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

    AsyncCopyFromDevice(CudaDeviceVariable<UInt16>, SizeT, SizeT, SizeT, CUstream)

    Asynchron copy device to host

    Declaration
    public void AsyncCopyFromDevice(CudaDeviceVariable<ushort> deviceVar, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes, CUstream stream)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.UInt16> deviceVar
    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToArray1D(CUarray, CUstream)

    Asynchron copy host to 1D Array

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

    AsyncCopyToArray1D(CUarray, CUstream, SizeT)

    Asynchron copy host to 1D Array

    Declaration
    public void AsyncCopyToArray1D(CUarray deviceArray, CUstream stream, SizeT offset)
    Parameters
    Type Name Description
    CUarray deviceArray
    CUstream stream
    SizeT offset

    in bytes

    | Improve this Doc View Source

    AsyncCopyToArray1D(CudaArray1D, CUstream)

    Asynchron copy host to 1D Array

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

    AsyncCopyToArray1D(CudaArray1D, CUstream, SizeT)

    Asynchron copy host to 1D Array

    Declaration
    public void AsyncCopyToArray1D(CudaArray1D array, CUstream stream, SizeT offset)
    Parameters
    Type Name Description
    CudaArray1D array
    CUstream stream
    SizeT offset

    in bytes

    | 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, SizeT, SizeT, CUstream)

    Asynchron Copy host to device

    Declaration
    public void AsyncCopyToDevice(CUdeviceptr devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes, CUstream stream)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    CUstream stream
    | Improve this Doc View Source

    AsyncCopyToDevice(CudaDeviceVariable<UInt16>, CUstream)

    Asynchron Copy host to device

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

    AsyncCopyToDevice(CudaDeviceVariable<UInt16>, SizeT, SizeT, SizeT, CUstream)

    Asynchron Copy host to device

    Declaration
    public void AsyncCopyToDevice(CudaDeviceVariable<ushort> deviceVar, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes, CUstream stream)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.UInt16> deviceVar
    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    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

    SynchronCopyFromArray1D(CUarray)

    Synchron copy 1D Array to host

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

    SynchronCopyFromArray1D(CUarray, SizeT)

    Synchron copy 1D Array to host

    Declaration
    public void SynchronCopyFromArray1D(CUarray deviceArray, SizeT offset)
    Parameters
    Type Name Description
    CUarray deviceArray
    SizeT offset
    | Improve this Doc View Source

    SynchronCopyFromArray1D(CudaArray1D)

    Synchron copy 1D Array to host

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

    SynchronCopyFromArray1D(CudaArray1D, SizeT)

    Synchron copy 1D Array to host

    Declaration
    public void SynchronCopyFromArray1D(CudaArray1D array, SizeT offset)
    Parameters
    Type Name Description
    CudaArray1D array
    SizeT offset
    | Improve this Doc View Source

    SynchronCopyToArray1D(CUarray)

    Synchron copy host to 1D Array

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

    SynchronCopyToArray1D(CUarray, SizeT)

    Synchron copy host to 1D Array

    Declaration
    public void SynchronCopyToArray1D(CUarray deviceArray, SizeT offset)
    Parameters
    Type Name Description
    CUarray deviceArray
    SizeT offset
    | Improve this Doc View Source

    SynchronCopyToArray1D(CudaArray1D)

    Synchron copy host to 1D Array

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

    SynchronCopyToArray1D(CudaArray1D, SizeT)

    Synchron copy host to 1D Array

    Declaration
    public void SynchronCopyToArray1D(CudaArray1D array, SizeT offset)
    Parameters
    Type Name Description
    CudaArray1D array
    SizeT offset
    | 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, SizeT, SizeT)

    Synchron copy host to device

    Declaration
    public void SynchronCopyToDevice(CUdeviceptr devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    | Improve this Doc View Source

    SynchronCopyToDevice(CudaDeviceVariable<UInt16>)

    Synchron copy host to device

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

    SynchronCopyToDevice(CudaDeviceVariable<UInt16>, SizeT, SizeT, SizeT)

    Synchron copy host to device

    Declaration
    public void SynchronCopyToDevice(CudaDeviceVariable<ushort> devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.UInt16> devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    | 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(CUdeviceptr, SizeT, SizeT, SizeT)

    Synchron copy device to host

    Declaration
    public void SynchronCopyToHost(CUdeviceptr devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes)
    Parameters
    Type Name Description
    CUdeviceptr devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    | Improve this Doc View Source

    SynchronCopyToHost(CudaDeviceVariable<UInt16>)

    Synchron copy device to host

    Declaration
    public void SynchronCopyToHost(CudaDeviceVariable<ushort> devicePtr)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.UInt16> devicePtr
    | Improve this Doc View Source

    SynchronCopyToHost(CudaDeviceVariable<UInt16>, SizeT, SizeT, SizeT)

    Synchron copy device to host

    Declaration
    public void SynchronCopyToHost(CudaDeviceVariable<ushort> devicePtr, SizeT offsetSrc, SizeT offsetDest, SizeT aSizeInBytes)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.UInt16> devicePtr

    Pointer to device memory

    SizeT offsetSrc

    Offset to source pointer in bytes

    SizeT offsetDest

    Offset to destination pointer in bytes

    SizeT aSizeInBytes

    Bytes to copy

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable<UInt16>.GetEnumerator()

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