-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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] Add mem_offset_in_parent to serialized file in AOT. #3418
Conversation
✔️ Deploy Preview for jovial-fermat-aa59dc ready! 🔨 Explore the source changes: 00c58ee 🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/6188e75394a113000714d2f0 😎 Browse the preview: https://deploy-preview-3418--jovial-fermat-aa59dc.netlify.app |
c2e3d53
to
78dba93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -31,5 +31,31 @@ void AotModuleBuilder::add_kernel_template(const std::string &identifier, | |||
add_per_backend_tmpl(identifier, key, kernel); | |||
} | |||
|
|||
bool AotModuleBuilder::all_fields_are_dense_in_container( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this can have an even wider applicability, but the base AOT builder seems good enough :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup agreed! I'd just keep this here for now since we know it'll be useful for all aot backends for sure. Later we can move it to other places if needed :D
taichi/program/aot_module_builder.h
Outdated
@@ -48,6 +48,10 @@ class AotModuleBuilder { | |||
virtual void add_per_backend_tmpl(const std::string &identifier, | |||
const std::string &key, | |||
Kernel *kernel) = 0; | |||
|
|||
bool all_fields_are_dense_in_container(const SNode *container); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
78dba93
to
00c58ee
Compare
Related issue = #