Class CudaManagedMemory
Managed wrapper around a CUDA unified-memory allocation. CUDA unified memory 分配的托管封装。
public sealed class CudaManagedMemory : CudaMemory, IDisposable
- Inheritance
-
CudaManagedMemory
- Implements
- Inherited Members
Constructors
CudaManagedMemory(int, CudaManagedMemoryAttachmentFlags)
Allocates CUDA managed memory with the requested attachment flags. 使用指定的附着标志分配 CUDA managed memory。
public CudaManagedMemory(int sizeInBytes, CudaManagedMemoryAttachmentFlags flags = CudaManagedMemoryAttachmentFlags.Global)
Parameters
sizeInBytesintThe allocation size in bytes. 分配大小,单位为字节。
flagsCudaManagedMemoryAttachmentFlagsThe managed-memory attachment flags. managed memory 附着标志。
Properties
AttachmentFlags
Gets the managed-memory attachment flags used for the allocation. 获取该分配使用的 managed memory 附着标志。
public CudaManagedMemoryAttachmentFlags AttachmentFlags { get; }