Carry over fixed numSQCs calc from #247

Co-authored-by: Nick Curtis <nicholas.curtis@amd.com>
Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
colramos-amd
2024-02-21 17:00:39 -06:00
committed by Cole Ramos
parent 3ce140d04b
commit 2001908fd8
8 changed files with 17 additions and 7 deletions
+9
View File
@@ -34,6 +34,7 @@ import logging
import pandas as pd
from datetime import datetime
from math import ceil
from dataclasses import dataclass
from pathlib import Path as path
from textwrap import dedent
@@ -290,6 +291,14 @@ def total_l2_banks(archname, L2Banks, memory_partition):
archname, memory_partition)
return str(totalL2Banks)
def total_sqc(archname, numCUs, numSEs):
cu_per_se = float(numCUs) / float(numSEs)
sq_per_se = cu_per_se / 2
if archname.lower() in ['mi50', 'mi100']:
sq_per_se = cu_per_se / 3
sq_per_se = ceil(sq_per_se)
return int(sq_per_se) * int(numSEs)
if __name__ == "__main__":
print(MachineSpecs())