<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Re: [mpich2-maint] #428: [mpich-discuss] MPI_Win_fence memoryconsumption</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2> Hi,<BR>
A contiguous MPI derived type consisting of 3 MPI_DOUBLEs is not equivalent to a C structure with 3 doubles. Try using an array of 3 doubles (double[3]) or using an equivalent MPI datatype (eg: MPI_Type_create_struct()).<BR>
Let us know if it works for you.<BR>
<BR>
Regards,<BR>
Jayesh<BR>
<BR>
-----Original Message-----<BR>
From: mpich-discuss-bounces@mcs.anl.gov [<A HREF="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>] On Behalf Of Rajeev Thakur<BR>
Sent: Friday, February 27, 2009 9:07 PM<BR>
To: mpich-discuss@mcs.anl.gov<BR>
Subject: Re: [mpich-discuss] MPI_Win_fence memory consumption<BR>
<BR>
OK, thanks. We will look into it.<BR>
<BR>
Rajeev<BR>
<BR>
> -----Original Message-----<BR>
> From: mpich-discuss-bounces@mcs.anl.gov<BR>
> [<A HREF="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>] On Behalf Of Dorian Krause<BR>
> Sent: Friday, February 27, 2009 7:44 PM<BR>
> To: mpich-discuss@mcs.anl.gov<BR>
> Subject: Re: [mpich-discuss] MPI_Win_fence memory consumption<BR>
><BR>
> Rajeev Thakur wrote:<BR>
> > Does that happen only with Nemesis or even with ch3:sock?<BR>
> > <BR>
><BR>
> The behaviour is the same with the configure flag<BR>
> --with-device=ch3:sock.<BR>
><BR>
> Dorian<BR>
><BR>
> > Rajeev<BR>
> ><BR>
> > <BR>
> >> -----Original Message-----<BR>
> >> From: mpich-discuss-bounces@mcs.anl.gov<BR>
> >> [<A HREF="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>] On Behalf Of<BR>
> Dorian Krause<BR>
> >> Sent: Friday, February 27, 2009 7:16 AM<BR>
> >> To: mpich-discuss@mcs.anl.gov<BR>
> >> Subject: [mpich-discuss] MPI_Win_fence memory consumption<BR>
> >><BR>
> >> Hi List,<BR>
> >><BR>
> >> the attached test program uses<BR>
> MPI_Accumulate/MPI_Win_fence for one<BR>
> >> sided communication with derived datatype.<BR>
> >> The program runs fine with mpich2-1.1a2 except for my debugging<BR>
> >> version of MPICH2 compiled with<BR>
> >><BR>
> >> ./configure --with-device=ch3:nemesis --enable-g=dbg,mem,meminit<BR>
> >><BR>
> >> In this case the MPI_Win_fence on the target side comuses<BR>
> about 90%<BR>
> >> of main memory (e.g. > 3 GB). As the behaviour is completely<BR>
> >> different for predefined datatypes, I suspect that the memory<BR>
> >> consumption is related to the construction of the derived<BR>
> datatype on<BR>
> >> the target side.<BR>
> >><BR>
> >> Is there a workaround for this?<BR>
> >><BR>
> >> Thanks + Best regards,<BR>
> >> Dorian<BR>
> >><BR>
> >><BR>
> >><BR>
> >><BR>
> >><BR>
> >> <BR>
><BR>
><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>