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

Make GPUs actually usable #689

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Make GPUs actually usable #689

wants to merge 8 commits into from

Conversation

efaulhaber
Copy link
Member

@efaulhaber efaulhaber commented Dec 23, 2024

Depends on trixi-framework/PointNeighbors.jl#90 and trixi-framework/TrixiBase.jl#35.

This PR contains the following changes:

  • TLSPH (and therefore FSI examples) now works on GPUs.
  • TLSPH now works with Float32 (and therefore on Apple GPUs that don't support double precision).
  • Plotting now works on the GPU.
  • I added a new macro trixi_include_changeprecision(Float32, example_file) to conveniently change all Float64 literals in an example file to Float32, which is enough to make the whole simulation run with single precision (that's how we designed the code).

@efaulhaber efaulhaber self-assigned this Dec 24, 2024
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.

1 participant