Skip to Content.
Sympa Menu

charm - Re: [charm] Charm++ & Qt4 & Converse

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Charm++ & Qt4 & Converse


Chronological Thread 
  • From: Filippo Gioachin <gioachin AT uiuc.edu>
  • To: "Sanchez, Denis" <dsanchez AT ceit.es>
  • Cc: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
  • Subject: Re: [charm] Charm++ & Qt4 & Converse
  • Date: Tue, 3 Aug 2010 12:39:14 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Please do not cast the callback to a CmiHandler, they are not the same thing.
CcsRegisterHandler accepts a callback as second parameter (for an example look at tests/charm++/python/server.C)
Filippo

On Tue, Aug 3, 2010 at 02:51, Sanchez, Denis <dsanchez AT ceit.es> wrote:
Hello Fillippo,

I got the idea thank you, but I get a problem that I am not able to solve.

The situation is this one. I have a main.ci with a mainchare with 2 entry method void launch() and void done(). In each of those a simple CkPrintf is inside.

Knowing that int the Main::Main(CkArgMsg *msg) I create 2 CkCallback functions like this:

 CkCallback launchCB(CkIndex_Main::launch(),thisProxy);
 CkCallback doneCB(CkIndex_Main::done(),thisProxy);

But after creating this two callbacks, I can't get CcsRegisterHandler to work properly.

CcsRegisterHandler("launch",(CmiHandler)launchCB); //a example of the CcsRegisterHandler

What am I doing wrong??

Thank you in advance as always,

Denis
________________________________________
De: filippogioachin AT gmail.com [filippogioachin AT gmail.com] En nombre de Filippo Gioachin [gioachin AT uiuc.edu]
Enviado el: lunes, 02 de agosto de 2010 19:44
Para: Sanchez, Denis
CC: charm AT cs.uiuc.edu
Asunto: Re: [charm] Charm++ & Qt4 & Converse

Hello Denis,

any Charm++ application is automatically also a Converse application. CCS is already compiled in you application. You can put calls like CcsRegisterHandler directly into you charm++ code (say mainchare constructor). If you specify a CkCallback as destination, your desired entry method can be called via CCS.

Regards,
Filippo

On Mon, Aug 2, 2010 at 05:20, Sanchez, Denis <dsanchez AT ceit.es<mailto:dsanchez AT ceit.es>> wrote:
Hello to everybody,

I have been looking and reading about Converse Client-Server architecture and I think that, as some of you pointed out before, would be a perfect solution for my problem. I have looked to the converse examples and read the manual.

So I think that the architecture in my case should be a process in C++ and Qt4, and another "parallel process" in charm++ (I put "parallel process" because it will be multiple processes in a cluster in charm++). Thus, I can't just put converse code in Charm++. So, how do I become my Charm++ application in a type of Converse server, so as to communicate with my Qt4 Client??

Thank you in advance,

Denis
_______________________________________________
charm mailing list
charm AT cs.uiuc.edu<mailto:charm AT cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/charm




--
Filippo Gioachin
PhD Candidate
Department of Computer Science
University of Illinois at Urbana-Champaign
Ph: +1-217-333-4764



--
Filippo Gioachin
PhD Candidate
Department of Computer Science
University of Illinois at Urbana-Champaign
Ph: +1-217-333-4764



Archive powered by MHonArc 2.6.16.

Top of Page