-
Hello. Which files do I need to modify in the Hermes project if I want to design a new prefetcher for fetching data from main memory to cache hierarchy? Thank you. @rahulbera |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are two ways to do this:
The first option binds the prefetcher at compile time. So if you have to try and test different prefetchers, you have to compile different versions of ChampSim with appropriate prefetchers. The second option binds a prefetcher at runtime: you just need to compile once and select which prefetcher to use at runtime using |
Beta Was this translation helpful? Give feedback.
There are two ways to do this:
myprefetcher.l2c_pref
, if it's an LLC prefetcher, call itmyprefetcher.llc_pref
. (b) Build ChampSim with this prefetcher of choice (i.e., pass the prefetcher name in thebuild_champsim.sh
script). See ChampSim documentation to know more.scooby.cc
. See theprefetcher/streamer.cc
file for an easiest example. All you have to do is to (a) create a class for your prefetcher as a dervied class ofPrefetcher
(seeinc/streamer.h
for example), (b) define three key functions for this new pr…