Skip to Content.
Sympa Menu

charm - Re: [charm] Dynamically obtaining the number of array elements from its proxy

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Dynamically obtaining the number of array elements from its proxy


Chronological Thread 
  • From: Alexander Frolov <alexndr.frolov AT gmail.com>
  • To: Phil Miller <mille121 AT illinois.edu>
  • Cc: "Mikida, Eric P" <mikida2 AT illinois.edu>, "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
  • Subject: Re: [charm] Dynamically obtaining the number of array elements from its proxy
  • Date: Thu, 22 Dec 2016 02:17:47 +0300



On Thu, Dec 22, 2016 at 2:04 AM, Phil Miller <mille121 AT illinois.edu> wrote:
On Wed, Dec 21, 2016 at 4:46 PM, Mikida, Eric P <mikida2 AT illinois.edu> wrote:
Unfortunately, the proxy does not carry any size information about its associated chare array.

To elaborate on this, from the system's perspective, the number of elements in a chare array is a distributed, dynamic property. Sequential code running on any one processor literally cannot provide a correct value.

For arrays that are static because the application knows so, the application can just as easily preserve and communicate that information by its own means.

Yep, the question arose when I needed to get that information inside library which receives only proxies of chare arrays (created in user code).  




Archive powered by MHonArc 2.6.19.

Top of Page