CacheOptimizer

Helpers & Utilities · AiDotNet.Tensors.Engines.Optimization

No summary documentation available yet.

Properties

Property Summary
int L1BlockSize { get; }
int L2BlockSize { get; }
int L3BlockSize { get; }

Methods

Method Summary
ValueTuple<int, int, int> ComputeOptimalTiling(int m, int n, int k)
ValueTuple<int, int, int> ComputeOptimalTiling(int m, int n, int k, int elementSize)
ValueTuple<int, int> MortonDecode(int code)
double EstimateCacheMisses(int dataSize, int accessStride, int cacheSize, int cacheLineSize)
double EstimateCacheMisses(int dataSize, int accessStride, int cacheSize, int cacheLineSize)
int MortonEncode(int x, int y)
void CopyWithPrefetch(ReadOnlySpan<T> src, Span<T> dst)
void CopyWithPrefetch(float[] src, float[] dst, int length)
void TransposeBlocked(ReadOnlySpan<T> src, Span<T> dst, int rows, int cols)
void TransposeBlocked(float[] src, float[] dst, int rows, int cols)