ChampSim icon indicating copy to clipboard operation
ChampSim copied to clipboard

Plug DRAMSim as an DRAM simulator

Open ndesh26 opened this issue 6 years ago • 4 comments

As part of my project, I replaced the native DRAM simulator with DRAMSim simulator. I am creating the pull request to see if having this as an alternative in ChampSim would be beneficial to the community.

The current code is just a proof of concept and cannot be merged as is. I am willing to improving/fixing the code if you think that this might be a helpful addition for the ChampSim community.

Thanks

ndesh26 avatar Mar 12 '19 15:03 ndesh26

Hi, I am new at simulator and architecture and I am trying to run Champsim simulator with DRAMSim, but there seem some problems. When I run build_champsim.sh, such warning occurs with every .cc file: 截屏2020-09-10 上午1 03 32 If I ignore it and run run_champsim.sh, a segmentation fault occurs in the running. I think this may be caused by introducing DRAMSim simulator. What do you think that I should do to check the issue? Thank you very much!

zoumo4913 avatar Sep 10 '20 06:09 zoumo4913

It might be because you are using the latest code of ChampSim. Can you try using the code from here?

ndesh26 avatar Sep 12 '20 03:09 ndesh26

I get the code from https://github.com/Prakharj24/ChamSim-CS422A for both ChampSim and DRAMSim2. I will try to change the ChampSim code. Thank you for your help.

zoumo4913 avatar Sep 13 '20 15:09 zoumo4913

Hi, Thank you for your help. I can run the code on my computer now. My system is MacOs, here are some changes that may help others who use MacOS. First, in DRAMSim2/makefile, the option -soname should be modified to -install_name to match MacOS. Second, in run_champsim.sh, I need to add one line to export dynamic library in MacOS, like this: export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$(pwd)/DRAMSim2/ I think this is caused by the system. Hope these will help to others. Thank you for your help and the work that combine the simulator with dram is really meaningful!

zoumo4913 avatar Sep 15 '20 03:09 zoumo4913