Writing Cache Aware Code to optimize performance and reduce latency. The sample code is in C++.
github link for the code: github.com/praveenbhushan/cache_aware/tree/main
If you are using Ubuntu/Linux on WSL(Windows) then stack size is initialized to very small and program will crash as we are trying to allocate 2000x2000 array on stack. Run the following on your terminal
sudo prlimit --stack=unlimited --pid $$; ulimit -s unlimited
#lowlatency #highperformancecomputing #cache #cplusplusprogramming #cplusplus #optimization