-
Notifications
You must be signed in to change notification settings - Fork 242
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
match_dtype_to_c_struct does not work if struct has arrays as fields #336
Comments
I tried registering each array type in my struct with
|
And something more, I can not make it work with a plain array either, because arrays do not have the attribute
|
I think I simply must have not realized that it was necessary to consider that case when I wrote the struct alignment code. I'd be grateful for a PR. |
Just opened a PR, looking forward to your review! |
E.g. say that a kernel has this struct as an argument, with 2 arrays:
I can not find a way to turn this definition into a proper type for
PyOpenCL
to work with it. My attempt:It seems like I can not use
match_dtype_to_c_struct
with any array-like type:Is there any other way to create the type of the above struct? Or to initialize it somehow?
The text was updated successfully, but these errors were encountered: