From eef44e97d782fbdde0ea0dbf35ed8d539683a047 Mon Sep 17 00:00:00 2001 From: Rafael Ravedutti Date: Fri, 2 Jul 2021 02:57:31 +0200 Subject: [PATCH] Update cache settings for casclakesp2 and results Signed-off-by: Rafael Ravedutti --- util/cache.py | 8 ++++---- util/plot_run_stub_data.py | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/util/cache.py b/util/cache.py index 2d31e33..a02fbda 100644 --- a/util/cache.py +++ b/util/cache.py @@ -9,10 +9,10 @@ mem = MainMemory() #l1 = Cache("L1", 64, 8, 64, "LRU", store_to=l2, load_from=l2) # 32KB # Cascade Lake -l3 = Cache("L3", 28672, 11, 64, "LRU") # 28MB: 11-ways with cacheline size of 64 bytes -l2 = Cache("L2", 1024, 16, 64, "LRU", store_to=l3, load_from=l3) # 1MB -l1 = Cache("L1", 32, 8, 64, "LRU", store_to=l2, load_from=l2) # 32KB -mem.load_to(l3) +l3 = Cache("L3", 14336, 16, 64, "LRU", write_allocate=False) +l2 = Cache("L2", 1024, 16, 64, "LRU", store_to=l3, victims_to=l3) +l1 = Cache("L1", 64, 8, 64, "LRU", store_to=l2, load_from=l2) +mem.load_to(l2) mem.store_from(l3) cs = CacheSimulator(l1, mem) diff --git a/util/plot_run_stub_data.py b/util/plot_run_stub_data.py index dbe97bb..56a900c 100644 --- a/util/plot_run_stub_data.py +++ b/util/plot_run_stub_data.py @@ -3,6 +3,11 @@ import sys vector_width = 8 # 8 doubles per zmm vector +# Filter condition of which data to plot +def plot_filter(atoms_per_unit_cell): + #return atoms_per_unit_cell < 2048 + return True + filename = sys.argv[1] output_file = filename.replace(".txt", ".pdf") fig = plt.figure() @@ -16,7 +21,7 @@ with open(filename, 'r') as fp: vol = float(neigh_vol) cy_per_atom = float(cy_per_atom) - if atoms_per_unit_cell < 2048: + if plot_filter(atoms_per_unit_cell): if atoms_per_unit_cell not in plot_data: plot_data[atoms_per_unit_cell] = {}