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

[async] [bug] Fix missing memory access options in async mode #2150

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

xumingkuan
Copy link
Contributor

Related issue = #742

Fixes OffloadedStmt::clone(), and merges OffloadedStmt::mem_access_opts when fusing.

Off-topic: I'm not sure if two struct-fors with different index offsets can be fused together.

[Click here for the format server]


Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

Off-topic: I'm not sure if two struct-fors with different index offsets can be fused together.

After searching through the current code, it seems to me that index_offsets are only used in lower_ast and offload, so it should be OK to ignore them in fusion.

@archibate
Copy link
Collaborator

IIUC coordinate offsets can be completely implemented in Python side to reduce maintainance cost?

@xumingkuan xumingkuan merged commit b21a2b1 into taichi-dev:master Jan 12, 2021
@k-ye k-ye mentioned this pull request Feb 4, 2021
@xumingkuan xumingkuan deleted the mem branch March 13, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants