scripts/bank_optimizer_v2.py
is created to find optimized memory banks for the kernels with the objective of minimizing the number of DataMover
kernel launches needed to execute the computation graph of the selected TopModelArch
.
- Run the selected
CModel
on FPGA forhostlog_0trace.log
to be created. - Open
hostlog_0trace.log
and find the lines that afterDumping bank-crossing logs for
and append them. - Copy the these lines into
bank_optimizer_v2.py
, methodget_objective
and lineobjective =
- Assign the allowed banks per kernel like
banks_transpose=[1,2]
to allow banks one and two to be selected for kernelTranspose
, orbanks_transpose=[1]
to force the kernel to use only the bank one. - Run the script.
- Use the output to configure
config
submodule of the mainDeepPoint-V2-FPGA
repository and then rebuild the FPGA image.