Show / Hide Table of Contents

    Enum CUMemHostRegisterFlags

    CUMemHostRegisterFlags. All of these flags are orthogonal to one another: a developer may allocate memory that is portable or mapped with no restrictions.

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

    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.

    IOMemory

    If set, the passed memory pointer is treated as pointing to some memory-mapped I/O space, e.g. belonging to a third-party PCIe device.

    On Windows the flag is a no-op.

    On Linux that memory is marked as non cache-coherent for the GPU and is expected to be physically contiguous.

    On all other platforms, it is not supported and CUDA_ERROR_INVALID_VALUE is returned.

    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.

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