Skip to content

Update README to clarify multi-line blocks#142

Open
Emmanuel-R8 wants to merge 2 commits into
mcabbott:masterfrom
Alba-Intelligence:master
Open

Update README to clarify multi-line blocks#142
Emmanuel-R8 wants to merge 2 commits into
mcabbott:masterfrom
Alba-Intelligence:master

Conversation

@Emmanuel-R8

Copy link
Copy Markdown

No description provided.

Comment thread README.md
Comment on lines +282 to +285
@tullio D[i, j] := begin
TMP[i, j, m, n] = A[i, j, k, l] * B[k, l, m, n]
TMP[i, j, m, n] * C[m, n]
end

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this one is safe, but I'm not keen to encourage such use. Tullio will often multi-thread over indices it deems safe, but it is not smart enough to notice that this is writing into an array. If it had TMP[j, m, n] = , this would introduce data races.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I think I should had a comment to that effect. It is another difference with single liners.

@Emmanuel-R8 Emmanuel-R8 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add text about data races when using the same symbol within a block.

@mcabbott mcabbott added the documentation Improvements or additions to documentation label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants