-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (18 loc) · 777 Bytes
/
main.py
File metadata and controls
25 lines (18 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from architectures.architectures import *
from computations import *
from engine import *
from utils import *
#from architectures.solutions_db import *
#from architectures.architectures_hw_data import *
#from comparisons.ZigZag.zigzag_archs import *
#from comparisons.CoSA.cosa_archs import *
# SPECIFICATION:
comp = comp_BERT_large['KQV'] #comp_maestro_blas['MB6']
coupling = gemm_coupling
bias_read = False # True if bias is not 0 - outputs are read even the first time
arch = arch_eyeriss
## MAIN:
if __name__ == "__main__":
arch.checkCouplingCompatibility(coupling, comp, verbose = True)
arch.fitConstraintsToComp(comp, enforce = True)
edp, mops, energy, latency, utilization, end_time, arch = run_engine(arch, comp, coupling, bias_read, verbose = True)