Show / Hide Table of Contents

    Enum CUMemHostAllocFlags

    CUMemHostAllocFlags. All of these flags are orthogonal to one another: a developer may allocate memory that is portable, mapped and/or write-combined with no restrictions.

    Namespace: ManagedCuda.BasicTypes
    Assembly: ManagedCuda.dll
    Syntax
    [Flags]
    public enum CUMemHostAllocFlags

    Fields

    Name Description
    DeviceMap

    Maps the allocation into the CUDA address space. The device pointer to the memory may be obtained by calling cuMemHostGetDevicePointer_v2(ref CUdeviceptr, IntPtr, Int32). This feature is available only on GPUs with compute capability greater than or equal to 1.1.

    None

    No flags

    Portable

    The memory returned by this call will be considered as pinned memory by all CUDA contexts, not just the one that performed the allocation.

    WriteCombined

    Allocates the memory as write-combined (WC). WC memory can be transferred across the PCI Express bus more quickly on some system configurations, but cannot be read efficiently by most CPUs. WC memory is a good option for buffers that will be written by the CPU and read by the GPU via mapped pinned memory or host->device transfers.

    If set, host memory is allocated as write-combined - fast to write, faster to DMA, slow to read except via SSE4 streaming load instruction (MOVNTDQA).

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