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

Conversions of StokesArrays and ThermalArrays from GPU to CPU #136

Merged
merged 6 commits into from
Apr 27, 2024

Conversation

albert-de-montserrat
Copy link
Collaborator

@albert-de-montserrat albert-de-montserrat commented Apr 26, 2024

Move a GPU StokesArrays or ThermalArrays to the CPU:

ni = 10, 10
stokes  = StokesArrays(ni, ViscoElastic)
thermal = ThermalArrays(ni)

@assert Array(stokes.V) isa Velocity{Matrix{Float64}}
@assert Array(stokes.τ) isa SymmetricTensor{Matrix{Float64}}
@assert Array(stokes.R) isa Residual{Matrix{Float64}}
@assert Array(stokes.P) isa Matrix
@assert Array(stokes)   isa StokesArrays
@assert Array(thermal)  isa ThermalArrays{Matrix{Float64}}

@albert-de-montserrat
Copy link
Collaborator Author

CC @aelligp

@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 34.37500% with 21 lines in your changes are missing coverage. Please review.

Files Patch % Lines
src/array_conversions.jl 34.37% 21 Missing ⚠️
Additional details and impacted files

📢 Thoughts on this report? Let us know!

@albert-de-montserrat albert-de-montserrat merged commit 8afbd4b into main Apr 27, 2024
11 checks passed
@albert-de-montserrat albert-de-montserrat deleted the adm/conversions branch April 27, 2024 08:53
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.

2 participants