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: "Mikida, Eric P" <mikida2 AT illinois.edu>
  • To: Alexander Frolov <alexndr.frolov AT gmail.com>
  • Cc: "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
  • Subject: Re: [charm] Dynamically obtaining the number of array elements from its proxy
  • Date: Wed, 21 Dec 2016 22:46:22 +0000
  • Accept-language: en-US

Hi Alexander,

Unfortunately, the proxy does not carry any size information about its associated chare array.

Eric

On Dec 21, 2016, at 4:41 PM, Alexander Frolov <alexndr.frolov AT gmail.com> wrote:

Hi all!

I know of ckGetArraySize which can be used to read number of array elements from the inside of the [array] chare class. But is it possible to know the number of array elements just from its initialized proxy? 

Best, 
   Alexander

...
CProxy_array proxy_array;
MainChare::MainChare() {
   proxy_array = CProxy_array::ckNew(N);
void foo() {
    // smth like this:
    proxy_array.ckArraySize(); //?
}
...






Archive powered by MHonArc 2.6.19.

Top of Page