From 0e153d3dae72e176a2f246a2e25607a522982ee4 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 7 Jul 2025 02:49:58 +0200 Subject: [PATCH 1/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d4511a..17a8862 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,7 @@ Useful flags that changes behaviour of library: - `SLB4MPI_ENABLE_Fortran` enables/disables MPI load balancers for Fortran language (requires Fortran 2003) - `SLB4MPI_WITH_MPI` enables/disables support of MPI for MPI/non-MPI builds -See example for [Fortran](examples/Fortran/CMakeLists.txt) and [C++](examples/CXX/CMakeLists.txt). +See examples for [Fortran](examples/Fortran/CMakeLists.txt) and [C++](examples/CXX/CMakeLists.txt). **NOTE:** The library does not provide ILP64 support. From a75890566ac10c21a106133925b5aa0d226691b8 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 7 Jul 2025 02:51:20 +0200 Subject: [PATCH 2/2] MPI_COMM_WORLD -> mpi_comm in C++ API description --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 17a8862..8bf0c4b 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ Initialization can be done in the following manner, for example (`StaticLoadBala ```cpp #include ... -StaticLoadBalancer slb(MPI_COMM_WORLD, 1, 100, 2, 4); +StaticLoadBalancer slb(mpi_comm, 1, 100, 2, 4); ``` -That will initialize load balancer `slb` with range from lower bound (`1`) to upper bound (`100`) and with min (`2`) and max (`4`) chunk sizes which are optional which will work on communicator `comm`. +That will initialize load balancer `slb` with range from lower bound (`1`) to upper bound (`100`) and with min (`2`) and max (`4`) chunk sizes which are optional which will work on communicator `mpi_comm`. Simpler initialization is also possible with default min and max chuck sizes: ```cpp -StaticLoadBalancer slb(MPI_COMM_WORLD, 1, 100); +StaticLoadBalancer slb(mpi_comm, 1, 100); ``` This is a barrier for the whole communicator. @@ -39,7 +39,7 @@ Internally, it uses RAII, so it most of cases you do not think about destructing For `Runtime` load balancer, a proper load balancer must be specified via first argument during initialization: ```cpp std::string rlbtype = std::string("dynamic"); -RuntimeLoadBalancer rlb(rlbtype, MPI_COMM_WORLD, 1, 100, 2, 4); +RuntimeLoadBalancer rlb(rlbtype, mpi_comm, 1, 100, 2, 4); ``` See possible values in the next section.