mpi4py-examples
mpi4py-examples copied to clipboard
Executed the code but the error pops up.
When i executed the code, I got the error as stated below:
Traceback (most recent call last):
File "MPI_Multiplication.py", line 75, in :), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
Can anyone help me in solving this issue?
Thanks in advance.
in line 53 should cast result of divided to integer, as below
else:
slice = int(numberRows / (worldSize-1))
@mymindd As suggested, I have changed in the code, however another error pops up as below:
Traceback (most recent call last):
File "/home/lokesh/PycharmProjects/mpi/MPI_Multiplication.py", line 118, in
Can you help me in this?