Skip to Content.
Sympa Menu

charm - [charm] Message not making it

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] Message not making it


Chronological Thread 
  • From: "Geoff D. Hilyard" <gdhilyard AT RegalDecision.com>
  • To: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
  • Subject: [charm] Message not making it
  • Date: Wed, 19 Sep 2012 08:30:40 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

 

Hello charm users.  I’m back J

 

I’ve progressed a bit further than last time, but I’ve hit another wall.

 

My test program is trying to read in ( from a binary file ) grid x,y,z locations ( among other stuff ) for about 6000 grid points.  As a test, I’m making each their own chare ( CCharmGridPoint, with CProxy_CCharmGridPoint being used for my array ).  I’m using CkPrintf in several places, just to make sure things are making it to where its suppose to be, and that correct values are being set.  In my CCharmEntry class ( My “Main” class ), I am reading in the number of grid points.  I make an array of grid points using CCharmGridPoint::ckNew ( numGridPoints ).  In my next step, I loop on the number of grid points and call ReadFromFile ( A protected function of CCharmEntry ).  This function reads the values from the file, puts them into a message ( class msgSetGridPointValues ), and calls gridPointArray[iGridPointNumber].SetVars(tmpMessage).  If I have a CkPrintf statement BEFORE and after, they are correctly printed out in the Cygwin window.  However, any CkPrintf statements inside CCharmGridPoint::SetVars ( msgSetGridPointValues * theMessage ) will never be printed, even if it’s the very first line.  Everything appears to be setup correctly with the corresponding .CI files.  I have also put a CkPrintf statement after the loop, and that will print out just fine.

 

Shouldn’t a CkPrintf echo something to the screen?  Since I’m using “standalone mode”, there are no network issues to use, and only one processor.  I can’t think of why the message wouldn’t get to the gridpoint in question.  I’m pretty sure the function is not being called in the first place.  I have a loop after reading the files where I wait for all grid points to report back that they are done.  The counter never get incremented, and so it gets stuck in an infinite loop.

 

Any help is appreciated.

 

Geoff Hilyard

Lead Softward Developer

Regal Decision Systems, Inc.




Archive powered by MHonArc 2.6.16.

Top of Page