13 releases
0.2.6 | Aug 31, 2022 |
---|---|
0.2.5 | Aug 14, 2022 |
0.2.0 | Feb 24, 2022 |
0.1.2 | Feb 17, 2022 |
0.0.3 | Feb 17, 2022 |
#174 in Simulation
123 downloads per month
Used in gcn_agg
355KB
7.5K
SLoC
a wrapper for ramulator
this is a binding to c++ ramulator simulator
lib.rs
:
a wrapper for ramulator
- the crate ramulator_wrapper is a wrapper of famouse dram simulator:ramulator.original url:https://github.com/CMU-SAFARI/ramulator
- in order to better use the ramulator, I use another modified version of ramulator:https://github.com/shenjiangqiu/ramulator
- the modified version of ramulator support multithread, and fix some bugs.
Example
use ramulator_wrapper::RamulatorWrapper;
use std::collections::HashSet;
let mut ramulator = RamulatorWrapper::new("HBM-config.cfg","test2.txt");
let mut cycle = 0;
let count = 10u64;
let mut all_req: HashSet<_> = (1..count).into_iter().map(|i| i * 64).collect();
for i in 1..count {
while !ramulator.available(i * 64, false) {
ramulator.cycle();
cycle += 1;
}
ramulator.send(i * 64, false);
ramulator.cycle();
}
for _i in 1..count {
while !ramulator.ret_available() {
ramulator.cycle();
cycle += 1;
}
let result = ramulator.pop();
ramulator.cycle();
//assert!(all_req.contains(&result));
println!("{}", result);
all_req.remove(&result);
}
for _i in 0..1000 {
ramulator.cycle();
}
assert_eq!(ramulator.ret_available(), false);
println!("cycle: {}", cycle);
Dependencies
~0.4–1.2MB
~27K SLoC