Update cache settings for casclakesp2 and results
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
4bde1944cf
commit
eef44e97d7
@ -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)
|
||||
|
||||
|
@ -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] = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user