Add AssignmentCollection.has_exclusive_writes
Compare changes
@@ -3,6 +3,7 @@ from typing import Any, Dict, Iterable, Iterator, List, Optional, Sequence, Set,
@@ -346,6 +347,25 @@ class AssignmentCollection:
An assumption of pystencils is that output stencil writes never overlap. This allows massive parallelization without race conditions or atomics.
When I use my autodiff transformations I use this condition to check whether the assumption still hold for the backward assignments.