-
Notifications
You must be signed in to change notification settings - Fork 189
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
Walberla: Morre than one block / rank #5013
Comments
Following above description, LatticeWalberla core class are modified. After modification, the calculation (maintainer/benchmarks/lb.py) is worked for only blocks_per_mpi_rank=(1,1,1). In other cases, calculations are terminated by walberla_agrid_sanity_checks in src/core/integrate.cpp with the message: It may imply that the interface between ESPResSo and walBerla in current code is implemented on the assumption that 1 Block allocate 1 CPU. |
The implementation of LatticeWalbera::get_local_domain() assumes one block per mpi rank. There is actually an assertion in there. While working on this, it is probably useful to remove -DNDEBUG from CXX flags in CMake or buidl with build tyep DEBUG, so the assertions fire. So the implementation of that function needs to be replced. I'm pretty sure, the UniformBlcokForest class in waLBerla let's us query the boundaries for which the local MPI rank is responsible. |
For better cache locallity.
clarify support for for several blocks per mpi rank to the LatticeWalberla class
Support blocks_per_mpi_rank=(nx,ny,nz) keyword argument with default = (1,1,1) in the LatticeWalbelra class (which, in the core holds the waLBerla block forest)
Modify src/python/espressomd/lb.py LBFluidWalberla.validate_parasm() and friends to allow for the blocks_per_mpi_rnak parameter and apss it to the construciont of the LatticeWalberla class
Support in src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp
There might be places in that file where we implied that there is only one block per node. I did not find any at a quick glance, so all our Lb related tests from the test stuie need to be run with more than one block per mpi rnak to check that it works
The text was updated successfully, but these errors were encountered: