Table of Contents

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

MemoryAccessPattern

AccessSize

Gets or sets the total size of data being accessed in bytes.

public int AccessSize { get; set; }

Property Value

int

BaseAddress

Gets or sets the base memory address for the access pattern.

public long BaseAddress { get; set; }

Property Value

long

ElementSize

Gets or sets the size of individual elements being accessed in bytes.

public int ElementSize { get; set; }

Property Value

int

ExecutionTime

Gets or sets the execution time for this memory access pattern. Used for bandwidth calculations.

public TimeSpan? ExecutionTime { get; set; }

Property Value

TimeSpan?

IsRandom

Gets or sets whether the access pattern is random. Random access patterns severely impact coalescing efficiency.

public bool IsRandom { get; set; }

Property Value

bool

KernelName

Gets or initializes the name of the kernel performing the memory access.

public required string KernelName { get; init; }

Property Value

string

Stride

Gets or sets the stride between consecutive thread accesses. A stride of 1 indicates coalesced access.

public int Stride { get; set; }

Property Value

int

ThreadCount

Gets or sets the number of threads performing the memory access.

public int ThreadCount { get; set; }

Property Value

int