Skip to Content.
Sympa Menu

charm - Re: [charm] Packed messages in Chare constructors

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Packed messages in Chare constructors


Chronological Thread 
  • From: Phil Miller <mille121 AT illinois.edu>
  • To: James Bordner <jobordner AT gmail.com>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] Packed messages in Chare constructors
  • Date: Tue, 22 May 2018 16:58:28 -0500
  • Authentication-results: illinois.edu; spf=pass smtp.mailfrom=unmobile AT gmail.com; dkim=pass header.d=gmail.com header.s=20161025; dkim=pass header.d=illinois-edu.20150623.gappssmtp.com header.s=20150623; dmarc=none header.from=illinois.edu

Try adding prints to the constructor and destructor as well, and include the value of the 'this' pointer in all of them. I bet what you're seeing is copying of the message for each element receiving it.

On Tue, May 22, 2018 at 4:36 PM, James Bordner <jobordner AT gmail.com> wrote:
I'm trying to track down a memory leak related to creating chare array elements using a constructor that has a custom packed message argument.   I would expect the message's pack() and unpack()  methods not to get called if run on a single processor; however, they are not only called, but called multiple times per element inserted.  Specifically, pack(), unpack(), pack(), unpack(), unpack().  The chare array is derived from another base chare array, so perhaps that's causing the multiple pack()/unpack() calls.  But I don't know why the extra "unpack()" at the end, or why pack() and unpack() are getting called at all given it's a single processor run.

Thanks,
James




Archive powered by MHonArc 2.6.19.

Top of Page