/Cachelab

Cache Simulator with optimized matrix transpose kernel to minimize misses in the cache.

Primary LanguageC

To compile:
    linux> make

Check the correctness of the simulator:
    linux> ./test-csim

Check the correctness and performance of the transpose functions:
    linux> ./test-trans -M 32 -N 32
    linux> ./test-trans -M 64 -N 64
    linux> ./test-trans -M 61 -N 67

Check everything at once:
    linux> ./driver.py    

******
Files:
******
csim.c       Cache simulator
trans.c      Transpose function

# Tools for evaluating the simulator and transpose function
Makefile     Builds the simulator and tools
README       This file
driver.py*   The driver program, runs test-csim and test-trans
cachelab.c   Required helper functions
cachelab.h   Required header file
csim-ref*    The executable reference cache simulator
test-csim*   Tests your cache simulator
test-trans.c Tests your transpose function
tracegen.c   Helper program used by test-trans
traces/      Trace files used by test-csim.c