[MPICH2-dev] problem with multithreaded version of MPI_Comm_split() in mpich2-1.03

Ryzhykh, Alexey alexey.ryzhykh at intel.com
Mon Jun 26 07:35:13 CDT 2006


Hi,

I am working at Intel Parallel System & Applications group

I used mpich2-1.03 with sock device to run some MPI multithreaded
application.

Mpich2-10.3 was built to support MPI_THREAD_MULTIPLE level.

The application creates the communicator for each thread by means of
MPI_Comm_split() function.

This communicator is needed in order to MPI messages on one thread don't
intersect with messages on other thread.

But sometimes I see that the field context_id  is the same for different
thread communicators.

I created the test (see enclosed file test.tgz) to demonstrate the
problem. But this test  uses internal mpich2-1.03  definitions to check
the value of context_id.

Sometimes it fails as below:

nthreads=32

nthreads=32

[0] context_id=184 i=6 j=12

[1] context_id=184 i=6 j=12

 test failed, number of errors is 1

 test failed, number of errors is 1

The failure shows that context_id is the same for different
communicators.

 

I have prepared the simple fix of this bug. See in attachment enclosed
file commutil.c.diff

I believe that the bug is be fixed  after applying this patch to the
source file  mpich2-1.0.3/src/mpi/comm/commutil.c

 

With best regards,

Alexey Ryzhykh,

---

Intel, Sarov

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/mpich2-dev/attachments/20060626/7f453415/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tgz
Type: application/x-compressed
Size: 1720 bytes
Desc: test.tgz
URL: <https://lists.mcs.anl.gov/mailman/private/mpich2-dev/attachments/20060626/7f453415/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commutil.c.diff
Type: application/octet-stream
Size: 339 bytes
Desc: commutil.c.diff
URL: <https://lists.mcs.anl.gov/mailman/private/mpich2-dev/attachments/20060626/7f453415/attachment.obj>


More information about the mpich2-dev mailing list