Skip to content

Shared memory parallelization for short range forces - #5097

Merged
jngrad merged 97 commits into
espressomd:pythonfrom
hidekb:shared_memory_parallization
Aug 8, 2025
Merged

Shared memory parallelization for short range forces#5097
jngrad merged 97 commits into
espressomd:pythonfrom
hidekb:shared_memory_parallization

Conversation

@hidekb

@hidekb hidekb commented May 30, 2025

Copy link
Copy Markdown
Contributor

Follow up on #5051.

Convert arrays of structs (AoS) to structs of arrays (SoA) to improve performance of the short-range loop.

@hidekb
hidekb marked this pull request as draft May 30, 2025 18:20
@hidekb hidekb changed the title WIP: Shared memory parallelization for shot range forces WIP: Shared memory parallelization for short range forces Jun 12, 2025
@hidekb hidekb changed the title WIP: Shared memory parallelization for short range forces Shared memory parallelization for short range forces Jun 12, 2025
@jngrad
jngrad marked this pull request as ready for review August 7, 2025 11:54
jngrad
jngrad previously approved these changes Aug 7, 2025

@jngrad jngrad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot! OpenMP performance is now in the same ballpark as MPI.

LJ with 8000 particles in total:

  • 480 ps/step with 4 MPI ranks
  • 530 ps/step with 4 OMP threads (before this PR: 1340 ps/step)

P3M with 8000 particles in total:

  • 3.3 ms/step with 4 MPI ranks
  • 4.1 ms/step with 4 OMP threads (before this PR: 7.0 ms/step)

@jngrad
jngrad marked this pull request as draft August 7, 2025 12:04
@jngrad
jngrad marked this pull request as ready for review August 8, 2025 19:31
@jngrad
jngrad merged commit f499ecd into espressomd:python Aug 8, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants