Support microarchitecture for g5k experiments
This commit is contained in:
parent
6ae16cc6df
commit
b0784fadf8
@ -30,7 +30,10 @@ pub fn cache_slicing(uarch: MicroArchitecture, physical_cores: u8) -> CacheSlici
|
||||
| MicroArchitecture::CoffeeLake => {
|
||||
ComplexAddressing(&SANDYBRIDGE_TO_SKYLAKE_FUNCTIONS[0..((trailing_zeros + 1) as usize)])
|
||||
}
|
||||
MicroArchitecture::SandyBridge => {
|
||||
MicroArchitecture::SandyBridge
|
||||
| MicroArchitecture::Haswell | MicroArchitecture::HaswellE
|
||||
| MicroArchitecture::Broadwell
|
||||
| MicroArchitecture::IvyBridge | MicroArchitecture::IvyBridgeE => {
|
||||
ComplexAddressing(&SANDYBRIDGE_TO_SKYLAKE_FUNCTIONS[0..((trailing_zeros) as usize)])
|
||||
}
|
||||
_ => Unsupported,
|
||||
|
@ -15,6 +15,7 @@ use nix::unistd::Pid;
|
||||
use nix::Error::Sys;
|
||||
|
||||
use cache_utils::mmap::MMappedMemory;
|
||||
use cpuid::MicroArchitecture;
|
||||
|
||||
/* from linux kernel headers.
|
||||
#define HUGETLB_FLAG_ENCODE_SHIFT 26
|
||||
@ -41,6 +42,7 @@ pub fn main() {
|
||||
|
||||
// Let's grab all the list of CPUS
|
||||
// Then iterate the calibration on each CPU core.
|
||||
eprintln!("CPU MicroArch: {:?}", MicroArchitecture::get_micro_architecture());
|
||||
eprint!("Warming up...");
|
||||
for i in 0..(CpuSet::count() - 1) {
|
||||
if old.is_set(i).unwrap() {
|
||||
|
Loading…
Reference in New Issue
Block a user