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

Conversion of CuCellArray to CPUCellArray #33

Closed
albert-de-montserrat opened this issue May 30, 2024 · 2 comments
Closed

Conversion of CuCellArray to CPUCellArray #33

albert-de-montserrat opened this issue May 30, 2024 · 2 comments

Comments

@albert-de-montserrat
Copy link

Is there any method to quickly transfer a GPU CellArray to the CPU. Trying to do Array(myCellArray) results into scalar indexing.

@omlins
Copy link
Owner

omlins commented Dec 23, 2024

#45 solves this, enabling: CPUCellArray(myCellArray) where myCellArray can be any kind. The same works also the other way round. However you need yourself to choose the right B. this will be conserved in these operations

@omlins omlins closed this as completed Dec 23, 2024
@albert-de-montserrat
Copy link
Author

Great thanks! Probably you're implementation is neater, I ended up adding this https://github.com/JuliaGeodynamics/JustPIC.jl/blob/75f4ea6f287521c6fb73f3d65ea87e9e6d941c57/src/CellArrays/conversion.jl#L5 (down to L33) to my pkg.

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

2 participants