[ExM Users] Return worker result to swift script

Justin M Wozniak wozniak at mcs.anl.gov
Fri Mar 29 14:10:48 CDT 2013


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/%7Eskrieder/>
>
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user


-- 
Justin M Wozniak



More information about the ExM-user mailing list