Struct CudaPointerAttributes
Provides diagnostic CUDA pointer metadata without exposing a raw pointer as the main user API. 提供 CUDA 指针诊断元数据,同时避免把裸指针作为主要用户 API 暴露。
public readonly struct CudaPointerAttributes
- Inherited Members
Properties
DeviceOrdinal
Gets the CUDA device associated with the allocation or registration. 获取与该分配或注册关联的 CUDA 设备序号。
public int DeviceOrdinal { get; }
Property Value
DevicePointerAddress
Gets the numeric device pointer address for diagnostics. 获取用于诊断的设备指针地址数值。
public ulong DevicePointerAddress { get; }
Property Value
HostPointerAddress
Gets the numeric host pointer address for diagnostics. 获取用于诊断的主机指针地址数值。
public ulong HostPointerAddress { get; }
Property Value
MemoryType
Gets the CUDA memory classification for the pointer. 获取 CUDA 对该指针的内存类型分类。
public CudaMemoryPointerType MemoryType { get; }
Property Value
Methods
ToString()
Returns a readable diagnostic summary. 返回可读的诊断摘要。
public override string ToString()
Returns
- string
A diagnostic string. 诊断字符串。