Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversed time_to_neighbor #8

Open
wants to merge 2 commits into
base: micro_tutorial
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/dataflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ isl_union_map *Dataflow::MapSpaceTimeToNeighbor(unsigned space_distance, bool sp
{
isl_union_map *space_to_neighbor = MapSpaceToNeighbor(space_distance, space_is_range);
isl_union_map *time_to_neighbor = MapTimeToPrev(time_distance, time_is_range);
time_to_neighbor = isl_union_map_reverse(time_to_neighbor);
isl_union_map *space_time_to_neighbor = isl_union_map_product(space_to_neighbor, time_to_neighbor);
if (include_self == false) {
isl_union_map *space_time_identity = isl_union_set_identity(GetSpaceTimeDomain());
Expand Down Expand Up @@ -247,7 +248,7 @@ int Dataflow::GetMacNumPerPE(int mac_per_instance)
int mac_num = GetMacNum(mac_per_instance);
// use GetSpaceDomain instead of pe.Getdomain() here in case some pes
// are idle
int dsize = GetAverageActivePENum();
double dsize = GetAverageActivePENum();
return mac_num / dsize;
}

Expand Down