492 questions
0
votes
0
answers
23
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
88
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
42
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
45
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
0
answers
34
views
MPIPool() object can't be passed through multiple functions
I am not very familiar with MPI or schwimmbad, but I'm trying to edit this code that I've inherited and I can't seem to get it to work. The original code uses mpi4py and schwimmbad to pass an MPIPool (...
0
votes
1
answer
33
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
103
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
70
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
83
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
379
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
90
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....
0
votes
0
answers
122
views
Error when running mpi4py program on Linux.mpi
I am running Linux (Pop!_OS), and I am trying to run my program using mpi. However,
It doesn't work for python scripts (with mpi4py)
but it kinda works for C scripts. (with mpi.h)
To test it out I've ...
0
votes
0
answers
663
views
MPI misconfiguration, getting error: hwloc/linux: Ignoring PCI device wth non-16bit domain
I am trying to run a simple python program using mpi on Pop OS. I have installed MPICH
$ mpiexec --version
HYDRA build details:
Version: 4.2.1
Release Date: ...
0
votes
1
answer
210
views
Troubleshooting MPI4py Error When Using Numba-Accelerated Python Code
I'm attempting to accelerate a piece of Python code using Numba. Within this code, I'm also employing mpi4py for parallelization. However, I've encountered an error. I've attempted to provide a ...
0
votes
0
answers
33
views
MPI program using Python multiprocessing not terminating worker processes properly
Description of the Problem:
I'm working on an MPI program in Python to distribute image processing tasks to multiple nodes for parallel execution. The goal is to efficiently process multiple images ...