Questions tagged [mpi]
Message Passing Interface (MPI) is a standardized and portable system for building distributed applications to run on parallel computing systems.
18
questions
0
votes
1
answer
131
views
Training a Reinforcement Learning algorithm
Problem:
I'm trying to reduce the computation time and optimize specific functions of a Reinforcement Learning algorithm in the training phase and observed that one block of code takes too much ...
2
votes
2
answers
80
views
Follow-up about computing lp norm with MPI
As pointed out in the answer by Victor Eijkhout to this question, the fact I am broadcasting the same vector to each process is against the MPI principles and, most importantly, will be a bottleneck ...
2
votes
1
answer
347
views
Compute lp-norm of a vector in parallel with MPI
I'm trying to solve the following exercise:
Compute in parallel with MPI the lp norm of a vector of a predefined size N ...
2
votes
1
answer
286
views
Matrix-vector multiplication with block-column distribution and MPI_Reduce_scatter
I'm studying MPI and I'm trying to solve the exercise (number 3.5) taken from Pacheco's book Introduction to parallel programming. Essentially the exercise is:
Write an MPI program that computes the ...
3
votes
1
answer
74
views
Bash script for automating HPC calculations
I'm a chemistry student working on a simple bash script to automate HPC density functional theory calculations using Quantum Espresso (pw.x). I am very much a novice at shell scripting and would ...
4
votes
1
answer
312
views
Open MPI: simple manager/workers pattern in C
I'm currently modifying a research project (massive test and benchmark of diverse conjectures to try and eventually solve the SSW conjecture) so that it can run on a big HPC architecture, which does ...
3
votes
1
answer
204
views
A matrix-vector multiply parallelized using boost::MPI
This program performs a matrix-vector multiply using MPI to split the computation up. It is not extremely robust (for example, it doesn't handle the case where the number of MPI processes does not ...
3
votes
1
answer
267
views
Using boost::mpi to take the Euclidean norm of a vector
I am learning MPI (via boost::mpi) and wrote this program that takes the euclidean norm of a 1-D vector (represented as an array here.) I want to make sure that I ...
2
votes
1
answer
748
views
Reconstructing Matrix scattered over many MPI ranks
I have a program that does some matrix computations using MPI (MPICH). Each rank has a slice of the matrix and does the computations on their slice to get a new slice of the matrix. Sometimes I need ...
6
votes
2
answers
193
views
MPI communicator creation exercise
I'm working on an assignment which entails creating communicators following the diagonals of an n x n process grid. I'm interested to get feedback regarding the correctness of the solution I developed ...
2
votes
0
answers
155
views
MPI BMP image comparison
I made a simple program in which I compare two images pixel by pixel and determine if the pictures are the same. I'm trying to adapt it to MPI, but I'm afraid that the communications are taking too ...
0
votes
1
answer
101
views
Python for HPC: Parse file, generate statistics, record output
I have a program which is designed to be highly parallelizable. I suspect that some processors are finishing this Python script sooner then other processors, which would explain behavior I observe ...
7
votes
1
answer
575
views
Gauss-Seidel+SOR
I am learning OpenMP+MPI hybrid programming. As an example I have chosen Gauss-Seidel+SOR. My implementation uses MPI_THREAD_FUNNELED style hybrid programming, ...
2
votes
2
answers
587
views
Monte Carlo Pi with R + Fortran + MPI
I created a R package to calculate Pi with a Monte Carlo simulation.
My goal is to optimize the parallel function SnowPi as much as possible. This is the ...
9
votes
2
answers
4k
views
Mandelbrot fractal with MPI
I'm not very familiar with MPI. I've written this little piece of code to draw the Mandelbrot fractal processing each row of the image in parallel. It works but it's really slow. I've written code to ...
6
votes
2
answers
178
views
Efficient communication across multiple processors for finite elements
I am implementing finite element code using MPI. Obviously, when using MPI I will have to include communication between different nodes so that all processors have all relevant information. As this is ...
2
votes
0
answers
61
views
Microcast algorithm
Following is the main file in the project (executing tasks). It uses the mpi4py module, and multiple processes execute the same code. Please review the code and ...
16
votes
2
answers
2k
views
Eratosthenes sieve and MPI
I wrote this sieve of Eratosthenes with MPI, but I'm not sure if it's good enough. Should I use MPI_Scatter and MPI_Gather ...