Hello all,

I am new to MPI and I'm trying to create a simple Matrix Multiplication program with MPI in Python using multiple cores by generating the random values into matrices. My code works for single core (in which case it does normal matrix multiplication, I mean there's no work to split up if you only run on one rank anyway).

FYI: I am using Ubuntu 18.04.3 LTS which supports 4 cores, Python 3.6.8, mpiexec 3.3 version.

I execute this code by : mpiexec -n 1 python3 matrix.py

The code and the error can be seen in the attached text file.

Any suggestions would be helpful.

Thanks in Advance !!

More Lokesh Pullagura's questions See All
Similar questions and discussions