Skip to Content.
Sympa Menu

charm - Re: [charm] [ppl] Use of malloc in PUP...

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] [ppl] Use of malloc in PUP...


Chronological Thread 
  • From: Eric Bohm <ebohm AT illinois.edu>
  • To: Yogesh Sonawane <sonawane.yogesh19 AT gmail.com>
  • Cc: charm AT cs.uiuc.edu
  • Subject: Re: [charm] [ppl] Use of malloc in PUP...
  • Date: Thu, 12 Apr 2012 09:13:20 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Yes.  You can use any allocator in an isUnpacking() block.  Just exercise the usual care to be consistent in your use of the matching destructor (free instead of delete) in your destructor.


On 04/12/2012 05:22 AM, Yogesh Sonawane wrote: Hello,
   
      Can we use malloc to allocate memory in PUP routine instead of new operator,...?

     
Thank you..
Yogesh.


_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm


_______________________________________________
ppl mailing list
ppl AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/ppl




Archive powered by MHonArc 2.6.16.

Top of Page