[autoparallel] Add pofo sequence annotation (#1637)

* [autoparallel] annotate pofo sequence

* [autoparallel] remove unused print

* [autoparallel] fix some code
This commit is contained in:
Boyuan Yao
2022-09-24 01:52:57 +08:00
committed by GitHub
parent 04bbabeea8
commit f921733621
3 changed files with 133 additions and 6 deletions

View File

@@ -54,7 +54,8 @@ class Offload(Operation):
super().__init__()
self.index = index
self.name = "Off"
if has_bar:
self.has_bar = has_bar
if self.has_bar:
self.name += "wBar"
def __repr__(self):
@@ -67,7 +68,8 @@ class Prefetch(Operation):
super().__init__()
self.index = index
self.name = "Pre"
if has_bar:
self.has_bar = has_bar
if self.has_bar:
self.name += "wBar"
def __repr__(self):