|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <iostream>#include <iomanip>#include <sstream>#include <string>#include <cstdint>#include <cmath>#include <map>#include <vector>#include <algorithm>Classes | |
| struct | sw::universal::CacheConfig |
| Cache configuration for modeling. More... | |
| struct | sw::universal::RegionStats |
| Statistics for a memory region. More... | |
| class | sw::universal::MemoryProfiler |
| Memory access profiler for algorithm analysis. More... | |
| struct | sw::universal::MemoryProfiler::MissRates |
| Estimate cache miss rates (simplified model). More... | |
| struct | sw::universal::MemoryProfiler::AccessDistribution |
| Estimate memory access distribution across cache levels. More... | |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Enumerations | |
| enum class | sw::universal::AccessPattern { sw::universal::Sequential , sw::universal::Strided , sw::universal::Random , sw::universal::Reuse } |
| Memory access pattern classification. More... | |
| enum class | sw::universal::MemoryTier { sw::universal::Register , sw::universal::L1_Cache , sw::universal::L2_Cache , sw::universal::L3_Cache , sw::universal::DRAM } |
| Memory hierarchy level for profiling. More... | |
Functions | |
| const char * | sw::universal::memoryTierName (MemoryTier tier) |
| Convert MemoryTier to string. | |
| MemoryProfiler | sw::universal::profileGEMM (uint64_t M, uint64_t N, uint64_t K, size_t element_size, const CacheConfig &config=CacheConfig()) |
| Convenience function: profile a BLAS-like operation. | |
| MemoryProfiler | sw::universal::profileDotProduct (uint64_t N, size_t element_size, const CacheConfig &config=CacheConfig()) |
| Profile a dot product operation. | |
| MemoryProfiler | sw::universal::profileGEMV (uint64_t M, uint64_t N, size_t element_size, const CacheConfig &config=CacheConfig()) |
| Profile a matrix-vector multiply. | |