[mpich-discuss] Sending Dynamically Allocated Data

Dave Goodell goodell at mcs.anl.gov
Mon Apr 26 12:14:53 CDT 2010


On Apr 26, 2010, at 11:53 AM, Duro, Joao wrote:

> 1) I am currently using MPICH1.2

The backtrace that you posted is from HP-MPI, definitely not MPICH2.   
You can tell by several different ways, including the function names  
("hpmp_*"), shared library name ("libmpi.so.1"), and the fact that the  
shared lib is installed in "/opt/hpmpi/".

-------8<--------
Core was generated by `/lustre/scratch/c119470/mopsocd_MPI2/./Debug/ 
mopsocd_MPI2 200'.
Program terminated with signal 11, Segmentation fault.
[New process 16130]
#0  0x000000341df71873 in memcpy () from /lib64/tls/libc.so.6
(gdb) backtrace
#0  0x000000341df71873 in memcpy () from /lib64/tls/libc.so.6
#1  0x0000002a9577b0b2 in hpmp_dtcpy () from /opt/hpmpi/lib/ 
linux_amd64/libmpi.so.1
#2  0x0000002a9577ae8f in hpmp_dtsendrecv () from /opt/hpmpi/lib/ 
linux_amd64/libmpi.so.1
#3  0x0000002a957529c9 in hpmp_sbuf2rbuf () from /opt/hpmpi/lib/ 
linux_amd64/libmpi.so.1
#4  0x0000002a95753436 in hpmp_allgatherv () from /opt/hpmpi/lib/ 
linux_amd64/libmpi.so.1
#5  0x0000002a9574b41a in VMPI_Allgather () from /opt/hpmpi/lib/ 
linux_amd64/libmpi.so.1
#6  0x0000000000403a56 in main (argc=2, argv=0x7fbfffe048) at /lustre/ 
scratch/c119470/mopsocd_MPI2/mopso.c:479
(gdb)
-------8<--------

If you wish to use MPICH2 instead, please check your $PATH and ensure  
that the MPICH2 installation "bin" dir is earlier in your path than  
the "/opt/hpmpi" utilities.  Also, make sure that you use the  
"mpicc" (and similar) compiler wrappers.

-Dave



More information about the mpich-discuss mailing list