-
Notifications
You must be signed in to change notification settings - Fork 218
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
Support isbits Union Arrays #103
Comments
This one isn't trivial, and needs support across the stack:
|
In the mean time, JuliaGPU/CuArrays.jl#552 will make this code error. |
FYI, I started working on supporting Union eltype for GPU arrays without explicitly coding for GPU arrays: JuliaFolds/UnionArrays.jl#2 |
Interesting! I hadn't considered doing this in Julia (well, in regular user code, without extending the |
By @ViralBShah:
|
Describe the bug
In attempting to move an array of multiple different kinds of structs, I discovered some strange trunctation where they are all forced into the type of one of them.
I initially wanted to use an array of abstract types, but that seemed to work even worse due to their not having a definite size.
To Reproduce
The Minimal Working Example (MWE) for this bug:
Expected behavior
One would think that the structs should come out as they went in.
Build log
Environment details (please complete this section)
Details on Julia:
Julia packages:
CUDA: toolkit and driver version
EDIT: so we basically need https://docs.julialang.org/en/v1/devdocs/isbitsunionarrays/
The text was updated successfully, but these errors were encountered: