[MPICH2-dev] Error creating custom MPI Type struct

Shankar, Shashank (US - New York) shashankar at deloitte.com
Thu Apr 27 09:55:55 CDT 2006


Hello David,

True, if it might have made my task easier, but one has to make do with
what's there.

Are there debug version's of the MPI libraries/dll's that once can get
their hand's on?

Thanks!
Regards,
Shashank Shankar
Consultant/Enterprise Business Integration/Technology Integration,
Deloitte Consulting LLP 
Tel: +1 212 618 4702 
Mobile: + 1 281 636 8712 

-----Original Message-----
From: David Ashton [mailto:ashton at mcs.anl.gov] 
Sent: Wednesday, April 26, 2006 4:56 PM
To: Shankar, Shashank (US - New York); 'Rajeev Thakur'; 'Rusty Lusk'
Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct

Shashank Shankar,

If you look at the error in your original you will see:
MPI_Type_struct(130): Invalid datatype

If you look at the source code for MPI_Type_struct on line 130 you will
see
that it is checking the input array of datatypes and finds one that is
invalid.

It is unfortunate that some useful data was not reported in the error
output.  It could have reported something like this:
MPI_Type_struct(130): Invalid datatype in old_types[40].  Value
0x00ab0046
is not an MPI datatype
That would have told you that entry 40 in your input array of datatypes
was
invalid.  But even without that information it gives you a starting
place to
look at.

-David Ashton

-----Original Message-----
From: Shankar, Shashank (US - New York) [mailto:shashankar at deloitte.com]

Sent: Wednesday, April 26, 2006 2:32 PM
To: Rajeev Thakur; Rusty Lusk
Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct

Thanks Rajeev. I shall try out Insure++.

Please do let me know if you can think of anything else.

Regards,
Shashank Shankar
Consultant/Enterprise Business Integration/Technology Integration,
Deloitte Consulting LLP 
Tel: +1 212 618 4702 
Mobile: + 1 281 636 8712 

-----Original Message-----
From: Rajeev Thakur [mailto:thakur at mcs.anl.gov] 
Sent: Wednesday, April 26, 2006 4:29 PM
To: Shankar, Shashank (US - New York); 'Rusty Lusk'
Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct

There is probably some kind of memory error in your big program that is
causing corruption of the datatype array. If the code is not too big,
you
could just look at it. Otherwise you can try using some tools like
Insure++.

Rajeev

> -----Original Message-----
> From: Shankar, Shashank (US - New York) 
> [mailto:shashankar at deloitte.com] 
> Sent: Wednesday, April 26, 2006 3:24 PM
> To: Rajeev Thakur; Rusty Lusk
> Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct
> 
> Hello Rajeev,
> 
> I was able to successfully run the program that you sent. So, 
> that means
> that the code works on Windows.
> 
> Is there anything else I can do, as in set a logging setting 
> to be able
> to better debug the error?
> 
> Thanks!
> Regards,
> Shashank Shankar
> Consultant/Enterprise Business Integration/Technology Integration,
> Deloitte Consulting LLP 
> Tel: +1 212 618 4702 
> Mobile: + 1 281 636 8712 
> 
> -----Original Message-----
> From: Rajeev Thakur [mailto:thakur at mcs.anl.gov] 
> Sent: Wednesday, April 26, 2006 4:14 PM
> To: Shankar, Shashank (US - New York); 'Rusty Lusk'
> Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct
> 
> If you run just the attached program, does it still give the 
> same error?
> (It's your code snippet in a runnable form.)
> 
> Rajeev
>  
> 
> > -----Original Message-----
> > From: owner-mpich2-dev at mcs.anl.gov 
> > [mailto:owner-mpich2-dev at mcs.anl.gov] On Behalf Of Shankar, 
> > Shashank (US - New York)
> > Sent: Wednesday, April 26, 2006 3:11 PM
> > To: Rajeev Thakur; Rusty Lusk
> > Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> > Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct
> > 
> > Hello Rajeev,
> > 
> > Yes, I am building the application on Windows (Server 2003, 
> > in case that
> > makes a difference).
> > 
> > I checked the mpi.h file for the mentioned #define's and they are
> > exactly the same as those you provided.
> > 
> > Thanks!
> > Regards,
> > Shashank Shankar
> > Consultant/Enterprise Business Integration/Technology Integration,
> > Deloitte Consulting LLP 
> > Tel: +1 212 618 4702 
> > Mobile: + 1 281 636 8712 
> > 
> > -----Original Message-----
> > From: Rajeev Thakur [mailto:thakur at mcs.anl.gov] 
> > Sent: Wednesday, April 26, 2006 4:00 PM
> > To: Shankar, Shashank (US - New York); 'Rusty Lusk'
> > Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> > Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct
> > 
> > This code runs on Linux without any problem. You are running 
> > on Windows
> > I
> > believe. I don't know about the Windows version. In the mpi.h 
> > file, just
> > check wether the #defines for the datatypes appear meaningful 
> > (not 0 for
> > example). In my Linux build, it looks something like:
> > 
> > #define MPI_CHAR           ((MPI_Datatype)0x4c000101)
> > #define MPI_SIGNED_CHAR    ((MPI_Datatype)0x4c000118)
> > #define MPI_UNSIGNED_CHAR  ((MPI_Datatype)0x4c000102)
> > #define MPI_BYTE           ((MPI_Datatype)0x4c00010d)
> > #define MPI_WCHAR          ((MPI_Datatype)0x4c00040e)
> > #define MPI_SHORT          ((MPI_Datatype)0x4c000203)
> > #define MPI_UNSIGNED_SHORT ((MPI_Datatype)0x4c000204)
> > #define MPI_INT            ((MPI_Datatype)0x4c000405)
> > #define MPI_UNSIGNED       ((MPI_Datatype)0x4c000406)
> > #define MPI_LONG           ((MPI_Datatype)0x4c000407)
> > #define MPI_UNSIGNED_LONG  ((MPI_Datatype)0x4c000408)
> > #define MPI_FLOAT          ((MPI_Datatype)0x4c00040a)
> > #define MPI_DOUBLE         ((MPI_Datatype)0x4c00080b)
> > #define MPI_LONG_DOUBLE    ((MPI_Datatype)0x4c000c0c)
> > #define MPI_LONG_LONG_INT  ((MPI_Datatype)0x4c000809)
> > #define MPI_UNSIGNED_LONG_LONG ((MPI_Datatype)0x4c000819)
> > #define MPI_LONG_LONG      MPI_LONG_LONG_INT
> > 
> > #define MPI_PACKED         ((MPI_Datatype)0x4c00010f)
> > #define MPI_LB             ((MPI_Datatype)0x4c000010)
> > #define MPI_UB             ((MPI_Datatype)0x4c000011)
> > 
> > 
> > Rajeev
> >  
> > 
> > > -----Original Message-----
> > > From: owner-mpich2-dev at mcs.anl.gov 
> > > [mailto:owner-mpich2-dev at mcs.anl.gov] On Behalf Of Shankar, 
> > > Shashank (US - New York)
> > > Sent: Wednesday, April 26, 2006 2:32 PM
> > > To: Rusty Lusk
> > > Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> > > Subject: RE: [MPICH2-dev] Error creating custom MPI Type struct
> > > 
> > > Hello Rusty,
> > > 
> > > As the custom datatype is slightly large, I am attaching 
> a text file
> > > that contains the code defining the c datatype, and the 
> function to
> > > create the MPI data type.
> > > 
> > > Thanks!
> > > Regards,
> > > Shashank Shankar
> > > Consultant/Enterprise Business Integration/Technology Integration,
> > > Deloitte Consulting LLP 
> > > Tel: +1 212 618 4702 
> > > Mobile: + 1 281 636 8712 
> > > 
> > > -----Original Message-----
> > > From: Rusty Lusk [mailto:lusk at mcs.anl.gov] 
> > > Sent: Wednesday, April 26, 2006 3:20 PM
> > > To: Shankar, Shashank (US - New York)
> > > Cc: mpich2-dev at mcs.anl.gov; mpich2-maint at mcs.anl.gov
> > > Subject: Re: [MPICH2-dev] Error creating custom MPI Type struct
> > > 
> > > Can you send the code that constructs and commits this 
> > > dataype?  Thanks.
> > > 
> > > From: "Shankar, Shashank (US - New York)" 
> <shashankar at deloitte.com>
> > > Subject: [MPICH2-dev] Error creating custom MPI Type struct
> > > Date: Wed, 26 Apr 2006 15:03:27 -0400
> > > 
> > > > Hello,
> > > > 
> > > > Thanks to John Vert, for answering my previous question!
> > > > 
> > > > I am trying to develop a distributed application utilizing 
> > > MPI as the
> > > > communication mechanism, and have run into an error while 
> > creating a
> > > > custom MPI Type struct for data transfer between MPI 
> processes. A
> > > > snippet from the mpiexec output is as:
> > > > 
> > > > ============
> > > > job aborted:
> > > > rank: node: exit code[: error message]
> > > > 0: socw3s4ap01.solnet.com: 13
> > > > 1: socw3s4ap01.solnet.com: 13: Fatal error in 
> > > MPI_Type_struct: Invalid
> > > > datatype, error stack:
> > > > MPI_Type_struct(191): MPI_Type_struct(count=365, 
> > > blocklens=0x0012EDAC,
> > > > indices=0x0012E244,
> > > >  old_types=0x0012E7F8, new_type_p=0x0046C854) failed
> > > > MPI_Type_struct(130): Invalid datatype
> > > > ============
> > > > 
> > > > Any help or suggestions in this regards will be very 
> appreciated.
> > > > 
> > > > Thanks!
> > > > Regards,
> > > > Shashank Shankar
> > > > Consultant/Enterprise Business Integration/Technology 
> Integration,
> > > > Deloitte Consulting LLP 
> > > > Tel: +1 212 618 4702 
> > > > Mobile: + 1 281 636 8712 
> > > > 
> > > > 
> > > > This message (including any attachments) contains confidential
> > > information intended for a specific individual and purpose, and is
> > > protected by law.  If you are not the intended recipient, 
> you should
> > > delete this message. 
> > > > 
> > > > 
> > > > Any disclosure, copying, or distribution of this message, or the
> > > taking of any action based on it, is strictly prohibited. [v.E.1]
> > > 
> > 
> > 
> 
> 





More information about the mpich2-dev mailing list