Intel® HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2153 Discussions

need your help - MPI library - a simple matrix multiplication program

ericqian
Beginner
436 Views
Hi,
I'm new to this MPI library. and I need your help.
I'm trying to use the library to test the below example code abouta simple matrix multiplication program. AxB=C

  1. Matrix A is copied to every processor. Matrix B is divided into blocks and
    distributed among processors

  2. The data is distributed among the workers who
    perform the actual multiplication in smaller blocks and send back their
    results to the master.
This is the example source code:
http://www.nccs.gov/wp-content/training/mpi-examples/C/matmul.c

I was able to run A (200_200) * B (200_180). But I could not increase the number of rows / columns anymore.
If I runA (200_200) * B (200_200) for 2 processors, I will get the following error message:
job aborted:
rank: node: exit code[: error message]
0: hostname_here: 123
1: hostname_here: -1073741571: process 1 exited without calling finalize
job aborted:rank: node: exit code[: error message]0:hostname_here: 1231:hostname_here: -1073741571: process 1 exited without calling finalize
Thanks in advance.
/Eric
0 Kudos
4 Replies
Dmitry_K_Intel2
Employee
436 Views
Hi Eric,

What MPI version do you use?

Regards!
Dmitry
0 Kudos
ericqian
Beginner
436 Views
I just downloaded 3 days ago from Intel web site.
I saw the following C:\Program Files\Intel\MPI\4.0.0.012>

So should be Intel MPI Library 4.0
0 Kudos
Dmitry_K_Intel2
Employee
436 Views
Hi Eric,

Yeah, this is 4.0 libary. Could you provide the command line, start the test case with I_MPI_DEBUG=9 and provide the ouptut.

Regards!
Dmitry
0 Kudos
ericqian
Beginner
436 Views
I used the command line, including "-env I_MPI_DEBUG 9".It simply crashed... No output. But If I use the program with less number of rows... I got it through.
Can you try to reproduce the issue on your side?
My env:
-Vista SP1
-MS Visual C++ 2009 Express
- source code // in my init post
For your convenience, I have attached two executable files. One has 100_100 and the other one has more rows. Please use at least n=2 for the test.
0 Kudos
Reply