Skip to content

Commit

Permalink
Merge pull request #60 from slothy-optimizer/fix_cross_loop_dep
Browse files Browse the repository at this point in the history
Fix bug in cross-loop dependency handling
  • Loading branch information
hanno-becker authored Jun 25, 2024
2 parents 2cd8ab6 + a268b4e commit 5385c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
numpy==1.26.4
ortools==9.7.2996
pandas==2.1.1
sympy==1.12
5 changes: 3 additions & 2 deletions slothy/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2020,8 +2020,9 @@ def _add_path_constraint_from( self, consumer, producer, cb_lst):
bvars = [ self._NewBoolVar("") for _ in cb_lst ]
self._AddExactlyOne(bvars)

if self._is_low(consumer) and self._is_high(producer):
raise Exception("Not yet implemented")
if self.config.sw_pipelining.enabled is True and \
self._is_low(consumer) and self._is_high(producer):
raise Exception("Not yet implemented")

if not self.config.sw_pipelining.enabled or producer.is_virtual or consumer.is_virtual:
for (cb, bvar) in zip(cb_lst, bvars, strict=True):
Expand Down

0 comments on commit 5385c76

Please sign in to comment.