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

Incorrect ordering of promotion #1030

Merged
merged 2 commits into from
May 13, 2024
Merged

Conversation

avik-pal
Copy link
Member

If p is not extracted before, then it tries to promote u0 to the tracked type.

@ChrisRackauckas ChrisRackauckas merged commit a748167 into master May 13, 2024
34 of 40 checks passed
@avik-pal
Copy link
Member Author

@ChrisRackauckas the test failure is real https://github.com/SciML/DiffEqBase.jl/actions/runs/9069483730/job/24919132493#step:6:1967. We need to figure out how to do the conversion in a device agnostic way but convert(AbstractArray, ...) doesnt seem to work

@ChrisRackauckas
Copy link
Member

oh oops. Use Adapt?

@ChrisRackauckas ChrisRackauckas deleted the ap/incorrect_ordering branch May 13, 2024 23:00
@avik-pal
Copy link
Member Author

does Adapt natively work with RAT? I don't see any code there for that.

We should probably overload convert(AbstractArray, <RAT>) instead of https://github.com/SciML/RecursiveArrayTools.jl/blob/39573324b1460a8cefeed7dbb2a85350713544d4/src/vector_of_array.jl#L130

@ChrisRackauckas
Copy link
Member

that would be good to add

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.

None yet

2 participants