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

similar for GPU ComponentArrays #179

Closed
avik-pal opened this issue Dec 8, 2022 · 0 comments
Closed

similar for GPU ComponentArrays #179

avik-pal opened this issue Dec 8, 2022 · 0 comments

Comments

@avik-pal
Copy link
Contributor

avik-pal commented Dec 8, 2022

When similar(::ComponentArray, l::Int) is used the resultant array is not a GPU array which breaks SciMLSensitivity + Lux on GPU. A patch is:

Base.similar(ca::ComponentArray, l::Int64) = similar(getdata(ca), l)
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

No branches or pull requests

1 participant