Skip to Content.
Sympa Menu

charm - Re: [charm] Distribution of chares on PEs

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Distribution of chares on PEs


Chronological Thread 
  • From: Sam White <white67 AT illinois.edu>
  • To: Nikhil Jain <nikhil.jain AT acm.org>
  • Cc: Alexander Frolov <alexndr.frolov AT gmail.com>, "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
  • Subject: Re: [charm] Distribution of chares on PEs
  • Date: Thu, 25 Feb 2016 18:24:52 -0600

You can always add a print statement to your chare array element constructor with a call to CkMyPe() to find out what PE it is created on. CkMyPe() and related functions are covered in the manual here:

http://charm.cs.illinois.edu/manuals/html/charm++/2.html#SECTION01191000000000000000

And you might find this section of the manual on defining new static mappings with CkArrayMaps useful:

http://charm.cs.illinois.edu/manuals/html/charm++/13.html#SECTION02422000000000000000

-Sam

On Thu, Feb 25, 2016 at 5:45 PM, Nikhil Jain <nikhil.jain AT acm.org> wrote:
Hi Alex,

Assuming the array was created statically in one go, the default distribution for dense arrays is based on a blocked mapping, i.e. chare with index i goes to PE number (i / (total_chares/numPes)). If this is not your case, please tell us what it is.

--Nikhil

February 25, 2016 at 14:01 via Postbox
Hi!

Sorry for asking probably very simple question. But anyway.. 

I would like to use number of PEs not equal to power of 2. How is array (array[1D]) distributed among PEs?

Thank you!

Best, 
   Alex   

--
Nikhil Jain, nikhil.jain AT acm.orghttp://charm.cs.uiuc.edu/people/nikhil
Doctoral Candidate @ CS, UIUC




Archive powered by MHonArc 2.6.16.

Top of Page