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

The parallel efficiency of the function "cacheNeighborInfo" in "Particle" #3827

Open
Horizonatpku opened this issue Mar 20, 2024 · 0 comments
Assignees

Comments

@Horizonatpku
Copy link

Hi everyone,

I have tested the parallel efficiency of the function cacheNeighborInfo used by the function fillNeighborsCPU

When the number of particles exceeds one million, cacheNeighborInfo in 32 cores consumes even longer time than that in 8 cores CPU. I wonder if it is because the function cacheNeighborInfo are written in OpenMP way instead of MPI. The same thing happens in the function Redistribute. Here is part of codes in cacheNeighborInfo:

  int thread_num = OpenMP::get_thread_num(); 
  const int& grid = pti.index();
  const int& tile = pti.LocalTileIndex();
  PairIndex src_index(grid, `tile);

I would be appreciate if you can give me some help.

Best wishes,
Yifeng He

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