Skip to content
Snippets Groups Projects
Commit 498f8eb0 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix no_sync_with_docs

parent d260f4e7
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ class InstructionBase(ImmutableRecord): ...@@ -91,7 +91,7 @@ class InstructionBase(ImmutableRecord):
.. attribute:: no_sync_with .. attribute:: no_sync_with
a :class:`frozenset` of tuples of the form `(insn_id, scope)`, where a :class:`frozenset` of tuples of the form ``(insn_id, scope)``, where
`insn_id` refers to :attr:`id` of :class:`Instruction` instances `insn_id` refers to :attr:`id` of :class:`Instruction` instances
and `scope` is one of the following strings: and `scope` is one of the following strings:
...@@ -99,11 +99,12 @@ class InstructionBase(ImmutableRecord): ...@@ -99,11 +99,12 @@ class InstructionBase(ImmutableRecord):
- `"global"` - `"global"`
- `"any"`. - `"any"`.
This indicates (symmetrically) that program semantics are not affected by An element ``(insn_id, scope)`` means "no conflicting variable access
execution ordering of the involved instructions. In particular, for variables of ``scope`` between this instruction and ``insn_id``.
no barrier synchronization will be considered necessary with the given Specifically, loopy will not complain even if it detects that accesses
instruction using barriers of type `scope`, even given the existence of potentially requiring ordering (e.g. by dependencies) exist, and it
a dependency chain and apparently conflicting access. will not emit barriers to guard any dependencies from this
instruction on ``insn_id`` that may exist.
Note, that :attr:`no_sync_with` allows instruction matching through wildcards Note, that :attr:`no_sync_with` allows instruction matching through wildcards
and match expression, just like :attr:`depends_on`. and match expression, just like :attr:`depends_on`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment