From 8ac5c30097e52728a7f00fa3f97e7139f9fafe5c Mon Sep 17 00:00:00 2001 From: KelvinYang0320 Date: Mon, 13 Feb 2023 16:59:45 +0800 Subject: [PATCH 1/2] Reversed time_to_neighbor --- src/dataflow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dataflow.cpp b/src/dataflow.cpp index 3e6586a..ef3ab50 100644 --- a/src/dataflow.cpp +++ b/src/dataflow.cpp @@ -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()); From 123ff2698c052ee8a820e5e1521ec1cb21678b2d Mon Sep 17 00:00:00 2001 From: KelvinYang0320 Date: Sun, 28 Apr 2024 22:20:30 +0800 Subject: [PATCH 2/2] get dsize in double type from GetAverageActivePENum --- src/dataflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataflow.cpp b/src/dataflow.cpp index ef3ab50..4c39290 100644 --- a/src/dataflow.cpp +++ b/src/dataflow.cpp @@ -248,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; }