numba-mpi 0.40__py3-none-any.whl → 0.43__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
numba_mpi/__init__.py CHANGED
@@ -1,4 +1,6 @@
1
- """ Numba @njittable MPI wrappers tested on Linux, macOS and Windows """
1
+ """
2
+ .. include::../README.md
3
+ """
2
4
 
3
5
  from importlib.metadata import PackageNotFoundError, version
4
6
 
numba_mpi/api/requests.py CHANGED
@@ -34,6 +34,9 @@ def wait(request):
34
34
  """Wrapper for MPI_Wait. Returns integer status code (0 == MPI_SUCCESS).
35
35
  Status is currently not handled. Requires 'request' parameter to be a
36
36
  c-style pointer to MPI_Request (such as returned by 'isend'/'irecv').
37
+
38
+ Uninitialized contents of 'request' (e.g., from numpy.empty()) may
39
+ cause invalid pointer dereference and segmentation faults.
37
40
  """
38
41
 
39
42
  status_buffer = create_status_buffer()
@@ -64,6 +67,9 @@ def waitall(requests):
64
67
  """Wrapper for MPI_Waitall. Returns integer status code (0 == MPI_SUCCESS).
65
68
  Status is currently not handled. Requires 'requests' parameter to be an
66
69
  array or tuple of MPI_Request objects.
70
+
71
+ Uninitialized contents of 'requests' (e.g., from numpy.empty()) may
72
+ cause invalid pointer dereference and segmentation faults.
67
73
  """
68
74
  if isinstance(requests, np.ndarray):
69
75
  return _waitall_array_impl(requests)
@@ -123,6 +129,9 @@ def waitany(requests):
123
129
  status; second - the index of request that was completed. Status is
124
130
  currently not handled. Requires 'requests' parameter to be an array
125
131
  or tuple of MPI_Request objects.
132
+
133
+ Uninitialized contents of 'requests' (e.g., from numpy.empty()) may
134
+ cause invalid pointer dereference and segmentation faults.
126
135
  """
127
136
 
128
137
  if isinstance(requests, np.ndarray):
@@ -167,6 +176,9 @@ def test(request):
167
176
  flag that indicates whether given request is completed. Status is currently
168
177
  not handled. Requires 'request' parameter to be a c-style pointer to
169
178
  MPI_Request (such as returned by 'isend'/'irecv').
179
+
180
+ Uninitialized contents of 'request' (e.g., from numpy.empty()) may
181
+ cause invalid pointer dereference and segmentation faults.
170
182
  """
171
183
 
172
184
  status_buffer = create_status_buffer()
@@ -203,6 +215,9 @@ def testall(requests):
203
215
  flag that indicates whether given request is completed. Status is currently
204
216
  not handled. Requires 'requests' parameter to be an array or tuple of
205
217
  MPI_Request objects.
218
+
219
+ Uninitialized contents of 'requests' (e.g., from numpy.empty()) may
220
+ cause invalid pointer dereference and segmentation faults.
206
221
  """
207
222
  if isinstance(requests, np.ndarray):
208
223
  return _testall_array_impl(requests)
@@ -269,6 +284,9 @@ def testany(requests):
269
284
  that indicates whether any of requests is completed, and index of request
270
285
  that is guaranteed to be completed. Requires 'requests' parameter to be an
271
286
  array or tuple of MPI_Request objects.
287
+
288
+ Uninitialized contents of 'requests' (e.g., from numpy.empty()) may
289
+ cause invalid pointer dereference and segmentation faults.
272
290
  """
273
291
 
274
292
  if isinstance(requests, np.ndarray):
@@ -0,0 +1,179 @@
1
+ Metadata-Version: 2.1
2
+ Name: numba-mpi
3
+ Version: 0.43
4
+ Summary: Numba @njittable MPI wrappers tested on Linux, macOS and Windows
5
+ Home-page: https://github.com/numba-mpi/numba-mpi
6
+ Author: https://github.com/numba-mpi/numba-mpi/graphs/contributors
7
+ License: GPL v3
8
+ Project-URL: Tracker, https://github.com/numba-mpi/numba-mpi/issues
9
+ Project-URL: Documentation, https://numba-mpi.github.io/numba-mpi
10
+ Project-URL: Source, https://github.com/numba-mpi/numba-mpi
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: numba
15
+ Requires-Dist: numpy
16
+ Requires-Dist: mpi4py
17
+ Requires-Dist: psutil
18
+ Provides-Extra: tests
19
+ Requires-Dist: pytest <8.0.0 ; extra == 'tests'
20
+
21
+ # <img src="https://raw.githubusercontent.com/numba-mpi/numba-mpi/main/.github/numba_mpi_logo.svg" style="height:50pt" alt="numba-mpi logo"> numba-mpi
22
+
23
+ [![Python 3](https://img.shields.io/static/v1?label=Python&logo=Python&color=3776AB&message=3)](https://www.python.org/)
24
+ [![LLVM](https://img.shields.io/static/v1?label=LLVM&logo=LLVM&color=gold&message=Numba)](https://numba.pydata.org)
25
+ [![Linux OK](https://img.shields.io/static/v1?label=Linux&logo=Linux&color=yellow&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Linux)
26
+ [![macOS OK](https://img.shields.io/static/v1?label=macOS&logo=Apple&color=silver&message=%E2%9C%93)](https://en.wikipedia.org/wiki/macOS)
27
+ [![Windows OK](https://img.shields.io/static/v1?label=Windows&logo=Windows&color=white&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Windows)
28
+ [![Github Actions Status](https://github.com/numba-mpi/numba-mpi/workflows/tests+pypi/badge.svg?branch=main)](https://github.com/numba-mpi/numba-mpi/actions/workflows/tests+pypi.yml)
29
+ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/numba-mpi/numba-mpi/graphs/commit-activity)
30
+ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
31
+ [![PyPI version](https://badge.fury.io/py/numba-mpi.svg)](https://pypi.org/project/numba-mpi)
32
+ [![Anaconda-Server Badge](https://anaconda.org/conda-forge/numba-mpi/badges/version.svg)](https://anaconda.org/conda-forge/numba-mpi)
33
+ [![AUR package](https://repology.org/badge/version-for-repo/aur/python:numba-mpi.svg)](https://aur.archlinux.org/packages/python-numba-mpi)
34
+ [![DOI](https://zenodo.org/badge/316911228.svg)](https://zenodo.org/badge/latestdoi/316911228)
35
+
36
+ ### Overview
37
+ numba-mpi provides Python wrappers to the C MPI API callable from within [Numba JIT-compiled code](https://numba.readthedocs.io/en/stable/user/jit.html) (@njit mode).
38
+
39
+ Support is provided for a subset of MPI routines covering: `size`/`rank`, `send`/`recv`, `allreduce`, `bcast`, `scatter`/`gather` & `allgather`, `barrier`, `wtime`
40
+ and basic asynchronous communication with `isend`/`irecv` (only for contiguous arrays); for request handling including `wait`/`waitall`/`waitany` and `test`/`testall`/`testany`.
41
+
42
+ The API uses NumPy and supports both numeric and character datatypes (e.g., `broadcast`).
43
+ Auto-generated docstring-based API docs are published on the web: https://numba-mpi.github.io/numba-mpi
44
+
45
+ Packages can be obtained from
46
+ [PyPI](https://pypi.org/project/numba-mpi),
47
+ [Conda Forge](https://anaconda.org/conda-forge/numba-mpi),
48
+ [Arch Linux](https://aur.archlinux.org/packages/python-numba-mpi)
49
+ or by invoking `pip install git+https://github.com/numba-mpi/numba-mpi.git`.
50
+
51
+ numba-mpi is a pure-Python package.
52
+ The codebase includes a test suite used through the GitHub Actions workflows ([thanks to mpi4py's setup-mpi](https://github.com/mpi4py/setup-mpi)!)
53
+ for automated testing on: Linux ([MPICH](https://www.mpich.org/), [OpenMPI](https://www.open-mpi.org/doc/)
54
+ & [Intel MPI](https://www.intel.com/content/www/us/en/developer/tools/oneapi/mpi-library.html)),
55
+ macOS ([MPICH](https://www.mpich.org/) & [OpenMPI](https://www.open-mpi.org/doc/)) and
56
+ Windows ([MS MPI](https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi)).
57
+
58
+ Features that are not implemented yet include (help welcome!):
59
+ - support for non-default communicators
60
+ - support for `MPI_IN_PLACE` in `[all]gather`/`scatter` and `allreduce`
61
+ - support for `MPI_Type_create_struct` (Numpy structured arrays)
62
+ - ...
63
+
64
+ ### Hello world send/recv example:
65
+ ```python
66
+ import numba, numba_mpi, numpy
67
+
68
+ @numba.njit()
69
+ def hello():
70
+ src = numpy.array([1., 2., 3., 4., 5.])
71
+ dst_tst = numpy.empty_like(src)
72
+
73
+ if numba_mpi.rank() == 0:
74
+ numba_mpi.send(src, dest=1, tag=11)
75
+ elif numba_mpi.rank() == 1:
76
+ numba_mpi.recv(dst_tst, source=0, tag=11)
77
+
78
+ hello()
79
+ ```
80
+
81
+ ### Example comparing numba-mpi vs. mpi4py performance:
82
+
83
+ The example below compares `Numba`+`mpi4py` vs. `Numba`+`numba-mpi` performance.
84
+ The sample code estimates $\pi$ by numerical integration of $\int_0^1 (4/(1+x^2))dx=\pi$
85
+ dividing the workload into `n_intervals` handled by separate MPI processes
86
+ and then obtaining a sum using `allreduce` (see, e.g., analogous [Matlab docs example](https://www.mathworks.com/help/parallel-computing/numerical-estimation-of-pi-using-message-passing.html)).
87
+ The computation is carried out in a JIT-compiled function `get_pi_part()` and is repeated
88
+ `N_TIMES`. The repetitions and the MPI-handled reduction are done outside or
89
+ inside of the JIT-compiled block for `mpi4py` and `numba-mpi`, respectively.
90
+ Timing is repeated `N_REPEAT` times and the minimum time is reported.
91
+ The generated plot shown below depicts the speedup obtained by replacing `mpi4py`
92
+ with `numba_mpi`, plotted as a function of `N_TIMES / n_intervals` - the number of MPI calls per
93
+ interval. The speedup, which stems from avoiding roundtrips between JIT-compiled
94
+ and Python code is significant (150%-300%) in all cases. The more often communication
95
+ is needed (smaller `n_intervals`), the larger the measured speedup. Note that nothing
96
+ in the actual number crunching (within the `get_pi_part()` function) or in the employed communication logic
97
+ (handled by the same MPI library) differs between the `mpi4py` or `numba-mpi` solutions.
98
+ These are the overhead of `mpi4py` higher-level abstractions and the overhead of
99
+ repeatedly entering and leaving the JIT-compiled block if using `mpi4py`, which can be
100
+ eliminated by using `numba-mpi`, and which the measured differences in execution time
101
+ stem from.
102
+ ```python
103
+ import timeit, mpi4py, numba, numpy as np, numba_mpi
104
+
105
+ N_TIMES = 10000
106
+ RTOL = 1e-3
107
+
108
+ @numba.jit
109
+ def get_pi_part(n_intervals=1000000, rank=0, size=1):
110
+ h = 1 / n_intervals
111
+ partial_sum = 0.0
112
+ for i in range(rank + 1, n_intervals, size):
113
+ x = h * (i - 0.5)
114
+ partial_sum += 4 / (1 + x**2)
115
+ return h * partial_sum
116
+
117
+ @numba.jit
118
+ def pi_numba_mpi(n_intervals):
119
+ pi = np.array([0.])
120
+ part = np.empty_like(pi)
121
+ for _ in range(N_TIMES):
122
+ part[0] = get_pi_part(n_intervals, numba_mpi.rank(), numba_mpi.size())
123
+ numba_mpi.allreduce(part, pi, numba_mpi.Operator.SUM)
124
+ assert abs(pi[0] - np.pi) / np.pi < RTOL
125
+
126
+ def pi_mpi4py(n_intervals):
127
+ pi = np.array([0.])
128
+ part = np.empty_like(pi)
129
+ for _ in range(N_TIMES):
130
+ part[0] = get_pi_part(n_intervals, mpi4py.MPI.COMM_WORLD.rank, mpi4py.MPI.COMM_WORLD.size)
131
+ mpi4py.MPI.COMM_WORLD.Allreduce(part, (pi, mpi4py.MPI.DOUBLE), op=mpi4py.MPI.SUM)
132
+ assert abs(pi[0] - np.pi) / np.pi < RTOL
133
+
134
+ plot_x = [x for x in range(1, 11)]
135
+ plot_y = {'numba_mpi': [], 'mpi4py': []}
136
+ for x in plot_x:
137
+ for impl in plot_y:
138
+ plot_y[impl].append(min(timeit.repeat(
139
+ f"pi_{impl}(n_intervals={N_TIMES // x})",
140
+ globals=locals(),
141
+ number=1,
142
+ repeat=10
143
+ )))
144
+
145
+ if numba_mpi.rank() == 0:
146
+ from matplotlib import pyplot
147
+ pyplot.figure(figsize=(8.3, 3.5), tight_layout=True)
148
+ pyplot.plot(plot_x, np.array(plot_y['mpi4py'])/np.array(plot_y['numba_mpi']), marker='o')
149
+ pyplot.xlabel('number of MPI calls per interval')
150
+ pyplot.ylabel('mpi4py/numba-mpi wall-time ratio')
151
+ pyplot.title(f'mpiexec -np {numba_mpi.size()}')
152
+ pyplot.grid()
153
+ pyplot.savefig('readme_plot.svg')
154
+ ```
155
+
156
+ ![plot](https://github.com/numba-mpi/numba-mpi/releases/download/tip/readme_plot.png)
157
+
158
+
159
+ ### MPI resources on the web:
160
+
161
+ - MPI standard and general information:
162
+ - https://www.mpi-forum.org/docs
163
+ - https://en.wikipedia.org/wiki/Message_Passing_Interface
164
+ - MPI implementations:
165
+ - OpenMPI: https://www.open-mpi.org
166
+ - MPICH: https://www.mpich.org
167
+ - MS MPI: https://learn.microsoft.com/en-us/message-passing-interface
168
+ - Intel MPI: https://intel.com/content/www/us/en/developer/tools/oneapi/mpi-library-documentation.html
169
+ - MPI bindings:
170
+ - Python: https://mpi4py.readthedocs.io
171
+ - Julia: https://juliaparallel.org/MPI.jl
172
+ - Rust: https://docs.rs/mpi
173
+ - C++: https://boost.org/doc/html/mpi.html
174
+ - R: https://cran.r-project.org/web/packages/Rmpi
175
+
176
+ ### Acknowledgements:
177
+
178
+ Development of numba-mpi has been supported by the [Polish National Science Centre](https://ncn.gov.pl/en) (grant no. 2020/39/D/ST10/01220).
179
+
@@ -1,4 +1,4 @@
1
- numba_mpi/__init__.py,sha256=mpW16BzokTCNGHClW6K4qGvMIRqPrw0K2OHNSCSml5Y,781
1
+ numba_mpi/__init__.py,sha256=VkDzjRJcaS6j739oHdCqhdUcZLBlMFxfcn58zDjevoQ,741
2
2
  numba_mpi/common.py,sha256=2JJoUrd3Qa6GIFk6Zlt2NudS7ZurPxpVwBLRGSkCg5E,2266
3
3
  numba_mpi/utils.py,sha256=gfGFuzmGgs4FnBqzPI91ftAq4UHgXb_HFkvxrVWkcIo,1866
4
4
  numba_mpi/api/__init__.py,sha256=Zj5df4lWeGpxAXV8jKGFnmtLBQ50HwNU8dPf-os06X8,51
@@ -11,13 +11,13 @@ numba_mpi/api/isend.py,sha256=2mpP4FhMk0GrikjDluKwRnpVywdLj9RD4HVVEMSj9A8,1080
11
11
  numba_mpi/api/operator.py,sha256=3VTPZAdOP05bxdqt3lA0hRDICM-iaBMa4m-krEdO91s,342
12
12
  numba_mpi/api/rank.py,sha256=pqayxw-5QDJ7VJ3gKrvuu1G0sBlYEZt1juhnaDi_JD8,549
13
13
  numba_mpi/api/recv.py,sha256=YsYK-q7PNfi3zt0ftVddM363VsnJ4XFfmgMq8aeCr-o,1260
14
- numba_mpi/api/requests.py,sha256=oDe85ZQ4xFbHWlNdrDhqVLvCkcQHs_9upUf3ms8x58k,8300
14
+ numba_mpi/api/requests.py,sha256=5EhgFyeQCGP8YclSPwxP95c2AhBo19CLlShK0TxCR2U,9114
15
15
  numba_mpi/api/scatter_gather.py,sha256=goZn4BxMKakWQHjfXIOdjzK3DJ-lTeaiQQwgnyQeZ_s,2410
16
16
  numba_mpi/api/send.py,sha256=jn1hPw0YHBHOaeJop_ZbjaBChaqgfw3nM1xGhW9sabI,909
17
17
  numba_mpi/api/size.py,sha256=fYLeUrygvz_XcxIDsLiZlMtS-aiWfp58Zi7aIOAgaj8,549
18
18
  numba_mpi/api/wtime.py,sha256=qrTqlefW7K7hqnAQKkGYm8kgdiRGuSAGiHmPcTrhLzE,279
19
- numba_mpi-0.40.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
20
- numba_mpi-0.40.dist-info/METADATA,sha256=Ps3MqS8YJUUvQOXTGjPJdaKZCr-Ta8ah-9VncEAi5DY,4038
21
- numba_mpi-0.40.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
22
- numba_mpi-0.40.dist-info/top_level.txt,sha256=yb_ktLmrfuhOZS0rjS81FFNC-gK_4c19WbLG2ViP73g,10
23
- numba_mpi-0.40.dist-info/RECORD,,
19
+ numba_mpi-0.43.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
20
+ numba_mpi-0.43.dist-info/METADATA,sha256=oMga9o3BuVvyY-f-9tCWPqkYjj06J7cIbhLZHGZgW4g,8995
21
+ numba_mpi-0.43.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
22
+ numba_mpi-0.43.dist-info/top_level.txt,sha256=yb_ktLmrfuhOZS0rjS81FFNC-gK_4c19WbLG2ViP73g,10
23
+ numba_mpi-0.43.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,66 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: numba-mpi
3
- Version: 0.40
4
- Summary: Numba @njittable MPI wrappers tested on Linux, macOS and Windows
5
- Home-page: https://github.com/numba-mpi/numba-mpi
6
- Author: https://github.com/numba-mpi/numba-mpi/graphs/contributors
7
- License: GPL v3
8
- Project-URL: Tracker, https://github.com/numba-mpi/numba-mpi/issues
9
- Project-URL: Documentation, https://numba-mpi.github.io/numba-mpi
10
- Project-URL: Source, https://github.com/numba-mpi/numba-mpi
11
- Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
- Requires-Dist: numba
14
- Requires-Dist: numpy
15
- Requires-Dist: mpi4py
16
- Requires-Dist: psutil
17
- Provides-Extra: tests
18
- Requires-Dist: pytest <8.0.0 ; extra == 'tests'
19
-
20
- # <img src="https://raw.githubusercontent.com/numba-mpi/numba-mpi/main/.github/numba_mpi_logo.svg" style="height:50pt" alt="numba-mpi logo"> numba-mpi
21
-
22
- [![Python 3](https://img.shields.io/static/v1?label=Python&logo=Python&color=3776AB&message=3)](https://www.python.org/)
23
- [![LLVM](https://img.shields.io/static/v1?label=LLVM&logo=LLVM&color=gold&message=Numba)](https://numba.pydata.org)
24
- [![Linux OK](https://img.shields.io/static/v1?label=Linux&logo=Linux&color=yellow&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Linux)
25
- [![macOS OK](https://img.shields.io/static/v1?label=macOS&logo=Apple&color=silver&message=%E2%9C%93)](https://en.wikipedia.org/wiki/macOS)
26
- [![Windows OK](https://img.shields.io/static/v1?label=Windows&logo=Windows&color=white&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Windows)
27
- [![Github Actions Status](https://github.com/numba-mpi/numba-mpi/workflows/tests+pypi/badge.svg?branch=main)](https://github.com/numba-mpi/numba-mpi/actions/workflows/tests+pypi.yml)
28
- [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/numba-mpi/numba-mpi/graphs/commit-activity)
29
- [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
30
- [![PyPI version](https://badge.fury.io/py/numba-mpi.svg)](https://pypi.org/project/numba-mpi)
31
- [![Anaconda-Server Badge](https://anaconda.org/conda-forge/numba-mpi/badges/version.svg)](https://anaconda.org/conda-forge/numba-mpi)
32
- [![AUR package](https://repology.org/badge/version-for-repo/aur/python:numba-mpi.svg)](https://aur.archlinux.org/packages/python-numba-mpi)
33
- [![DOI](https://zenodo.org/badge/316911228.svg)](https://zenodo.org/badge/latestdoi/316911228)
34
-
35
- #### Numba @njittable MPI wrappers
36
- - covering: `size`/`rank`, `send`/`recv`, `allreduce`, `bcast`, `scatter`/`gather` & `allgather`, `barrier` and `wtime`
37
- - basic asynchronous communication with `isend`/`irecv` (only for contiguous arrays); for request handling including `wait`/`waitall`/`waitany` and `test`/`testall`/`testany`
38
- - not yet implemented: support for non-default communicators, ...
39
- - API based on NumPy and supporting numeric and character datatypes
40
- - auto-generated docstring-based API docs on the web: https://numba-mpi.github.io/numba-mpi
41
- - pure-Python implementation with packages available at [PyPI](https://pypi.org/project/numba-mpi), [Conda Forge](https://anaconda.org/conda-forge/numba-mpi) and for [Arch Linux](https://aur.archlinux.org/packages/python-numba-mpi)
42
- - CI-tested on: Linux ([MPICH](https://www.mpich.org/), [OpenMPI](https://www.open-mpi.org/doc/) & [Intel MPI](https://www.intel.com/content/www/us/en/developer/tools/oneapi/mpi-library.html)), macOS ([MPICH](https://www.mpich.org/) & [OpenMPI](https://www.open-mpi.org/doc/)) and Windows ([MS MPI](https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi))
43
-
44
- Hello world example:
45
- ```python
46
- import numba, numba_mpi, numpy
47
-
48
- @numba.njit()
49
- def hello():
50
- print(numba_mpi.rank())
51
- print(numba_mpi.size())
52
-
53
- src = numpy.array([1., 2., 3., 4., 5.])
54
- dst_tst = numpy.empty_like(src)
55
-
56
- if numba_mpi.rank() == 0:
57
- numba_mpi.send(src, dest=1, tag=11)
58
- elif numba_mpi.rank() == 1:
59
- numba_mpi.recv(dst_tst, source=0, tag=11)
60
-
61
- hello()
62
- ```
63
-
64
- For information on MPI, see:
65
- - https://www.mpi-forum.org/docs/
66
- - https://mpi4py.readthedocs.io/en/stable/