Class MemoryAccessInfo
- Namespace
- DotCompute.Abstractions.Types
- Assembly
- DotCompute.Abstractions.dll
Represents information about a memory access pattern in CUDA kernels. Used to analyze coalescing efficiency and identify optimization opportunities.
public class MemoryAccessInfo
- Inheritance
-
MemoryAccessInfo
- Inherited Members
Properties
AccessPattern
Gets or sets the memory access pattern type.
public MemoryAccessPattern AccessPattern { get; set; }
Property Value
AccessSize
Gets or sets the total size of data being accessed in bytes.
public int AccessSize { get; set; }
Property Value
BaseAddress
Gets or sets the base memory address for the access pattern.
public long BaseAddress { get; set; }
Property Value
ElementSize
Gets or sets the size of individual elements being accessed in bytes.
public int ElementSize { get; set; }
Property Value
ExecutionTime
Gets or sets the execution time for this memory access pattern. Used for bandwidth calculations.
public TimeSpan? ExecutionTime { get; set; }
Property Value
IsRandom
Gets or sets whether the access pattern is random. Random access patterns severely impact coalescing efficiency.
public bool IsRandom { get; set; }
Property Value
KernelName
Gets or initializes the name of the kernel performing the memory access.
public required string KernelName { get; init; }
Property Value
Stride
Gets or sets the stride between consecutive thread accesses. A stride of 1 indicates coalesced access.
public int Stride { get; set; }
Property Value
ThreadCount
Gets or sets the number of threads performing the memory access.
public int ThreadCount { get; set; }