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

[opengl] Use element_size as alignment in root buffer. #4095

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

ailzhang
Copy link
Contributor

@ailzhang ailzhang commented Jan 24, 2022

Fixes #4089

Also deduplicated the get_snode_base_address between compilation and
aot module builder. We can do it only once when calculating root buffer
size.

Related issue = #

@vercel
Copy link

vercel bot commented Jan 24, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/taichi-api-docs-preview/taichi/8kYvJaLz4HBSQrmCXrya8ByhdUWt
✅ Preview: Canceled

[Deployment for 94a0e17 canceled]

@netlify
Copy link

netlify bot commented Jan 24, 2022

✔️ Deploy Preview for docsite-preview canceled.

🔨 Explore the source changes: 94a0e17

🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/61eebb1a7dca520008dbad8f

taichi/backends/opengl/struct_opengl.cpp Outdated Show resolved Hide resolved
taichi/backends/opengl/struct_opengl.cpp Outdated Show resolved Hide resolved
Fixes taichi-dev#4089

Also deduplicated the `get_snode_base_address` between compilation and
aot module builder. We can do it only once when calculating root buffer
size.

Note the logic of calculating root buffer size might be further
simplified, but I'll leave that to a separate PR as this one mainly
focus on enforcing the alignment.
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

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

LGTM!

@ailzhang ailzhang merged commit fa0d665 into taichi-dev:master Jan 25, 2022
@ailzhang ailzhang deleted the align_element_opengl branch January 25, 2022 01:05
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.

[opengl] Make sure each field's alignment is equal to its element size in the root SSBO
2 participants