charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "Kale, Laxmikant V" <kale AT cs.uiuc.edu>
- To: "Kunzman, David M" <kunzman2 AT illinois.edu>, Elliott Brossard <snowden AT cs.washington.edu>
- Cc: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>, "kale AT illinois.edu" <kale AT illinois.edu>
- Subject: Re: [charm] [ppl] Using [sync] entry methods
- Date: Thu, 18 Nov 2010 16:28:22 -0600
- 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>
Both David and Gengbin have given relevant information. I will only add that calling “sleep” or other such blocking calls from Charm++ entry methods is not a reasonable thing to do, in most circumstances, because you are blocking the whole processor, not just the chare (i.e. threaded entry method) you are calling from. If the sleep was meant to just demonmstrate an issue, I understand. But otherwise, it should not be used.
A threaded entry method should suspend only by some mechanism that returns control to the charm scheduler. These mechanisms include: waiting for a sync method invocation, waiting for a future, explicitly calling CThYield (which makes the thread available for resumption right away, but it sits behind other entities already in the queue, if its FIFO), or explicitly calling CThSuspend() (this is done after storing the threaded in some local variable, so another method can CThAwaken() the thread). That’s probably more comprehensive answer than you needed but I thought I’d describe it. (depends on what you want to use Charm’s threads for).
From: charm-bounces AT cs.uiuc.edu [mailto:charm-bounces AT cs.uiuc.edu] On Behalf Of David Kunzman
Hello Elliott, On Thu, Nov 18, 2010 at 2:30 PM, Elliott Brossard <snowden AT cs.washington.edu> wrote: Hello, both my advisor and I have been trying to use [sync] entry methods in Charm++ but without any luck. Here are the relevant bits of code:
|
- [charm] Using [sync] entry methods, Elliott Brossard, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, David Kunzman, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, Kale, Laxmikant V, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, Elliott Brossard, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, Kale, Laxmikant V, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, Gengbin Zheng, 11/18/2010
- Re: [charm] [ppl] Using [sync] entry methods, David Kunzman, 11/18/2010
Archive powered by MHonArc 2.6.16.