unite_python_mpi_4_py
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| unite_python_mpi_4_py [2026/04/10 13:41] – nshegunov | unite_python_mpi_4_py [2026/04/10 13:49] (current) – nshegunov | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| This example shows a NumPy-based ping-pong benchmark using the '' | This example shows a NumPy-based ping-pong benchmark using the '' | ||
| + | |||
| + | ===== Instructions ===== | ||
| + | |||
| + | To run this example, create the Python script and Slurm batch script provided below. | ||
| + | |||
| + | The Python script uses the mpi4py library to measure MPI communication performance with the classic ping-pong benchmark. The Slurm script loads the required modules and submits the job across 2 nodes. | ||
| + | |||
| + | Optional interactive testing: | ||
| + | <code bash> | ||
| + | srun --partition=short --ntasks=2 --gres=gpu: | ||
| + | </ | ||
| + | |||
| + | Use this command to request an interactive session on a single node for experimentation. | ||
| === Python Script (pingpong_mpi4py.py) ==== | === Python Script (pingpong_mpi4py.py) ==== | ||
unite_python_mpi_4_py.txt · Last modified: 2026/04/10 13:49 by nshegunov
