You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is fixed by the following pyop2 patch. But I don't understand the comment I'm modifying, and this quite possibly breaks other things.
diff --git a/pyop2/base.py b/pyop2/base.py
index 7501658..81291f3 100644
--- a/pyop2/base.py+++ b/pyop2/base.py@@ -1870,8 +1873,9 @@ class Dat(SetAssociated, _EmptyDataMixin, CopyOnWrite):
# Set up the copy to happen when required.
other._cow_parloop = self._copy_parloop(other)
# Remove the write dependency of the copy (in order to prevent
- # premature execution of the loop).- other._cow_parloop.writes = set()+ # premature execution of the loop), and replace it with the+ # one dat we're writing to.+ other._cow_parloop.writes = set(other)
if configuration['lazy_evaluation']:
# In the lazy case, we enqueue now to ensure we are at the
# right point in the trace.
Activity
wence- commentedon Aug 6, 2014
Prod. Appears to be a bad interaction of assembly cache and lazy evaluation. If I turn either of those /off/ then things work.
wence- commentedon Oct 24, 2014
I think this is similar to #386
wence- commentedon Oct 24, 2014
Simpler test case:
The copy par_loop that's queued up never gets run.
wence- commentedon Oct 24, 2014
I think this is fixed by the following pyop2 patch. But I don't understand the comment I'm modifying, and this quite possibly breaks other things.
Add tests exercising reported assembly cache bugs
Add tests exercising reported assembly cache bugs
Merge pull request #319 from firedrakeproject/pbrubeck/alfeld-sorokina