[ExM Users] Return worker result to swift script
Scott Krieder
skrieder at iit.edu
Sun Mar 31 16:59:52 CDT 2013
Hi Justin,
This makes sense, however I hope I don't have a design flaw in my
implementation. Right now, I never actually call that tcl fragment. Instead
I read that fragment name and implement the logic in the worker.
Would you be around Argonne tomorrow? Maybe I could stop by in the morning?
Thanks,
Scott
On Fri, Mar 29, 2013 at 2:10 PM, Justin M Wozniak <wozniak at mcs.anl.gov>wrote:
> Hi
> Your gemtc.swift header points gemtc_sleep() to this Tcl fragment:
> "set <<o>> [ gemtc::gemtc_sleep <<x>> ]". Thus, whatever this Tcl function
> returns will be stored in o and thus, int r.
> Justin
>
>
> On 3/29/2013 1:35 PM, Scott Krieder wrote:
>
>> I've created a modified worker that executes some work on a GPU:
>> /exm/apps/fake-gemtc/worker.**tcl
>>
>> But since I've replaced the eval $command with a GPU_eval $command I'm
>> not sure how to return my result back into the swift script.
>>
>> In my particular case I call:
>> int r = gemtc_sleep(1) from a .swift script. // where gemtc is the gpu
>> call
>>
>> The worker now has a local int variable with a result from the GPU run
>> but I'm not sure how to pass this back to the variable r in my .swift
>> script.
>>
>> Any tips on how I might do this? Does this require modifying other files?
>>
>> Thanks,
>> Scott
>>
>> --
>> Scott J. Krieder
>> C: 419-685-0410
>> E: skrieder at iit.edu <mailto:skrieder at iit.edu>
>> http://datasys.cs.iit.edu/~**skrieder/<http://datasys.cs.iit.edu/~skrieder/><
>> http://datasys.cs.iit.edu/%**7Eskrieder/<http://datasys.cs.iit.edu/%7Eskrieder/>
>> >
>>
>>
>> ______________________________**_________________
>> ExM-user mailing list
>> ExM-user at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/**mailman/listinfo/exm-user<https://lists.mcs.anl.gov/mailman/listinfo/exm-user>
>>
>
>
> --
> Justin M Wozniak
>
> ______________________________**_________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/**mailman/listinfo/exm-user<https://lists.mcs.anl.gov/mailman/listinfo/exm-user>
>
--
Scott J. Krieder
C: 419-685-0410
E: skrieder at iit.edu
http://datasys.cs.iit.edu/~skrieder/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20130331/88311c02/attachment.html>
More information about the ExM-user
mailing list