494 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
87
views
How do I import mpi4py.MPI in a frozen executable?
I have a Python module that I would like to be able to run from the console, hence why I'm using pyinstaller. My module uses MPI and runs fine normally. Then I run the following:
pyinstaller my_script....
1
vote
1
answer
66
views
Debugging parallel python program in interruptible sleep
I have a mpi4py program, which runs well with mpiexec -np 30 python3 -O myscript.py at 100% CPU usage on each of the 30 CPUs.
Now I am launching 8 instances with mpiexec -np 16 python3 -O myscript.py. ...
1
vote
0
answers
53
views
How to send/recv from a specific index in mpi4py
Here is a translation of an C+MPI example in Python+Numpy+mpi4py. The goal of this example was to show that the message received is put in memory and that memory is in one dimension
from mpi4py import ...
0
votes
1
answer
78
views
mpi4py: only rank 0 participating in scipy minimize after first iteration
Given the code below, I am unable to remedy the fact that only rank 0 participates in evaluations of Objective after the first iteration of the (SciPy) minimizer. Obviously the rank!=0 workers finish ...
1
vote
2
answers
110
views
mpi4py deadlock with scipy.minimize
I am trying to do something similar as described in Parallelize a function call with mpi4py
But there are some things there that make me skeptical of the provided answer. Additionally, I have a class ...
0
votes
0
answers
47
views
VSCode pylance not detecting matplotlib and mpi4py
This is the problem in VSCode:
import matplotlib.pyplot as plt # Import "matplotlib.pyplot" could not be resolved from sourcePylancereportMissingModuleSource
from mpi4py import MPI # No ...
0
votes
0
answers
176
views
Running pyscf parallelly using mpi4py
I am trying to use PySCF for electronic structure calculations and was curious about the parallelization schemes available to get the best performance.
I've installed PySCF via Spack, which included ...
0
votes
0
answers
66
views
How can I get MS-MPI to connect with a GMKtec running Windows 11 from my computer?
I am entirely new with MPI and MS-MPI, so this will be the utmost basic of questions that will hopefully have a simple answer.
I am trying to run a Python script that incorporates mpi4py to distribute ...
0
votes
0
answers
62
views
mpi4py one-sided MPI test script
I am trying to install mpi-sppy and am stuck with running a basic test script to make sure that the one-sided MPI calls work. I am using MPICH on Ubuntu 22.04 on Windows 11 by WSL2. The versions are ...
0
votes
1
answer
40
views
Using MPI reduce (lowercase) for dynamic process management
I'm wondering whether it is possible in Python to use MPI's reduce function (lowercase) when doing DPM.
Currently I have a working code that explicitly uses memory buffers with Reduce (uppercase). Is ...
0
votes
1
answer
172
views
Using MPI correctly with multithreaded NumPy functions
After reading the mpi4py documentation, I can't find any information about the use of MPI with multithreaded NumPy applications. That is, most of the mpi4py documentation related to NumPy involve data ...
0
votes
1
answer
85
views
Not able to correctly use `comm.Gatherv()` to gather uneven sized numpy arrays
I am learning MPI4Py and I wanted to implement a simple program.
Explanation
Here, each rank has a send_array of size rank+1 and values equal to rank+1 respectively.
rank0 = [1]
rank1 = [2 2]
rank2 = [...
0
votes
1
answer
102
views
Capture KeyboardInterrupt in context manager when OpenMPI run is manually terminated
I am running code in parallel using mpi4py. I've noticed that if I run the code and perform a keyboard interrupt, my context manager __exit__ will run if I run the code as python file.py but will not ...
1
vote
1
answer
509
views
MPI comm.size is always 1
My MPI comm.size is always 1. I ran the following python script (test_mpi.py) to check if MPI was working properly.
mpirun -np 4 python test_mpi.py
from mpi4py import MPI
import mpi4py
comm = MPI....
0
votes
1
answer
137
views
MS-MPI and MPI4PY don't work on a real PC cluster
My LAN is composed of 1 PC Windows 10 Pro (manager) and 3 PCs Windows 11 Pro (workers). I installed on the PCs (manager and workers) MSMPI Microsoft MPI Startup Program Version 10.1.12498.52, MPI4PY v....