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
Copy file name to clipboardExpand all lines: doc/developer_guide/dependency.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -461,7 +461,7 @@ thread-private. Note that this code does not handle the usage of
461
461
# the access information as well as from the symbol table
462
462
# into account.
463
463
access_sequence = var_accesses[signature]
464
-
if symbol.is_array_access(access_info=access_info):
464
+
if symbol.is_array_access(access_info=access_sequence):
465
465
# It's not a scalar variable, so it will not be private
466
466
continue
467
467
@@ -504,7 +504,7 @@ until we find accesses that would prevent parallelisation:
504
504
for next_statement in statements:
505
505
# Add the variable accesses of the next statement to
506
506
# the existing accesses:
507
-
next_statement.reference_accesses(accesses)
507
+
accesses = next_statement.reference_accesses()
508
508
# Stop when the next statement can not be parallelised
509
509
# together with the previous accesses:
510
510
if not can_be_parallelised(accesses):
@@ -581,7 +581,7 @@ can be parallelised:
581
581
.. testoutput::
582
582
:hide:
583
583
584
-
Error: The write access to 'a(i,i)' and the read access to 'a(i + 1,i + 1)' are dependent and cannot be parallelised. Variable: 'a'.
584
+
Error: The write access to 'a(i,i)' in 'a(i,i) = j + k' and the read access to 'a(i + 1,i + 1)' in 'a(i,i) = a(i + 1,i + 1)' are dependent and cannot be parallelised. Variable: 'a'.
0 commit comments