Skip to content

Commit

Permalink
fix(callipepla): add noconst version and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
RipperJ committed Sep 6, 2024
1 parent ea74980 commit 6496623
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 149 deletions.
2 changes: 2 additions & 0 deletions benchmarks/tapa_flow/callipepla/design/run_tapa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ tapac \
--write-only-args vec_res \
src/callipepla.cpp \
2>&1 | tee tapa.log

# change `src/callipepla.cpp` to `src_noconst/callipepla.cpp` to generate the design without aggressively passing constants through handshake interfaces.
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,13 @@ int main(int argc, char **argv) {

tapa::read_only_mmap<double>(diag_A_fpga).reinterpret<double_v8>(),

tapa::write_only_mmap<double>(vec_RES_fpga),

MAX_SIZE_edge_LIST_PTR,
MAX_LEN_edge_PTR,
M,
num_ites,
th_termination
tapa::write_only_mmap<double>(vec_RES_fpga)
);
cout << "MAX_SIZE_edge_LIST_PTR " << MAX_SIZE_edge_LIST_PTR << endl;
cout << "MAX_LEN_edge_PTR " << MAX_LEN_edge_PTR << endl;
cout << "M " << M << endl;
cout << "num_ites " << num_ites << endl;
cout << "th_termination " << th_termination << endl;
int ite_kernel;
for (ite_kernel = num_ites;
(ite_kernel > 0) && (vec_RES_fpga[ite_kernel] < 1e-305);
Expand Down
Loading

0 comments on commit 6496623

Please sign in to comment.