Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Avoid overwriting global tmp with dynamic_index=True #6820

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

strongoier
Copy link
Contributor

@strongoier strongoier commented Dec 6, 2022

Issue: fix #6663

Brief Summary

In MatrixPtrStmt, when origin is GlobalTemporaryStmt, the semantics of offset has changed from the number of bytes to the number of elements. This PR fixes the outdated usage which may overwrite the global tmp buffer.

@strongoier strongoier added the full-ci Run complete set of CI tests label Dec 6, 2022
@netlify
Copy link

netlify bot commented Dec 6, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 5995e0f
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/639000d9ca3869000803381e

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Awesome!!

@strongoier strongoier merged commit e08fe23 into taichi-dev:master Dec 7, 2022
@strongoier strongoier deleted the fix-6663 branch December 7, 2022 11:32
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…v#6820)

Issue: fix taichi-dev#6663

### Brief Summary

In `MatrixPtrStmt`, when `origin` is `GlobalTemporaryStmt`, the
semantics of `offset` has changed from the number of bytes to the number
of elements. This PR fixes the outdated usage which may overwrite the
global tmp buffer.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Run complete set of CI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different value on a matrix when print is present and absent
2 participants