Skip to content

Add full support for parallelization backends#109

Merged
efaulhaber merged 9 commits intomainfrom
ef/threaded-backend
May 7, 2025
Merged

Add full support for parallelization backends#109
efaulhaber merged 9 commits intomainfrom
ef/threaded-backend

Conversation

@efaulhaber
Copy link
Copy Markdown
Member

  • Added the SerialBackend.
  • Changed @threaded API to only allow backends as first argument and not arrays. This is a breaking change.
  • Added the kwarg parallelization_backend to initialize! and to docs (and removed experimental warning).
  • Renamed the kwarg parellel of foreach_point_neighbor to parallelization_backend and removed support for booleans like parallel = true. This is a breaking change.
  • Added better error message for FullGridCellList out of bounds (on CPUs only).
  • Removed requires_resizing (@LasNikas requested it but didn't need it at the end). This is a breaking change.

@efaulhaber efaulhaber added the breaking changes This change will break the public API and requires a new major release label May 5, 2025
@efaulhaber efaulhaber self-assigned this May 5, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented May 6, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 88.66%. Comparing base (d95c492) to head (ac04927).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/util.jl 69.23% 4 Missing ⚠️
src/cell_lists/full_grid.jl 71.42% 2 Missing ⚠️
src/neighborhood_search.jl 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   86.78%   88.66%   +1.87%     
==========================================
  Files          15       14       -1     
  Lines         560      547      -13     
==========================================
- Hits          486      485       -1     
+ Misses         74       62      -12     
Flag Coverage Δ
unit 88.66% <83.33%> (+1.87%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@efaulhaber efaulhaber marked this pull request as ready for review May 6, 2025 12:15
@efaulhaber efaulhaber requested review from Copilot and svchb May 6, 2025 12:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 17 changed files in this pull request and generated no comments.

Files not reviewed (16)
  • benchmarks/count_neighbors.jl: Language not supported
  • benchmarks/n_body.jl: Language not supported
  • benchmarks/plot.jl: Language not supported
  • benchmarks/smoothed_particle_hydrodynamics.jl: Language not supported
  • benchmarks/update.jl: Language not supported
  • src/PointNeighbors.jl: Language not supported
  • src/cell_lists/full_grid.jl: Language not supported
  • src/gpu.jl: Language not supported
  • src/neighborhood_search.jl: Language not supported
  • src/nhs_grid.jl: Language not supported
  • src/nhs_precomputed.jl: Language not supported
  • src/nhs_trivial.jl: Language not supported
  • src/util.jl: Language not supported
  • test/cell_lists/full_grid.jl: Language not supported
  • test/neighborhood_search.jl: Language not supported
  • test/nhs_grid.jl: Language not supported

@efaulhaber efaulhaber requested review from LasNikas and Copilot May 6, 2025 12:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 17 changed files in this pull request and generated no comments.

Files not reviewed (16)
  • benchmarks/count_neighbors.jl: Language not supported
  • benchmarks/n_body.jl: Language not supported
  • benchmarks/plot.jl: Language not supported
  • benchmarks/smoothed_particle_hydrodynamics.jl: Language not supported
  • benchmarks/update.jl: Language not supported
  • src/PointNeighbors.jl: Language not supported
  • src/cell_lists/full_grid.jl: Language not supported
  • src/gpu.jl: Language not supported
  • src/neighborhood_search.jl: Language not supported
  • src/nhs_grid.jl: Language not supported
  • src/nhs_precomputed.jl: Language not supported
  • src/nhs_trivial.jl: Language not supported
  • src/util.jl: Language not supported
  • test/cell_lists/full_grid.jl: Language not supported
  • test/neighborhood_search.jl: Language not supported
  • test/nhs_grid.jl: Language not supported

@efaulhaber
Copy link
Copy Markdown
Member Author

Tests are failing until trixi-framework/TrixiParticles.jl#790 is merged, which is based on this PR, so we will need to ignore these fails for now.

Comment thread Project.toml
Comment thread src/neighborhood_search.jl Outdated
Comment thread src/neighborhood_search.jl Outdated
efaulhaber and others added 2 commits May 6, 2025 20:34
Co-authored-by: Sven Berger <berger.sven@gmail.com>
Co-authored-by: Sven Berger <berger.sven@gmail.com>
@efaulhaber efaulhaber requested a review from svchb May 6, 2025 18:34
@efaulhaber efaulhaber merged commit d3be0e0 into main May 7, 2025
5 of 12 checks passed
@efaulhaber efaulhaber deleted the ef/threaded-backend branch May 7, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes This change will break the public API and requires a new major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants