<div dir="ltr">Hi Justin,<div><br></div><div>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.</div>

<div><br></div><div style>Would you be around Argonne tomorrow? Maybe I could stop by in the morning?</div><div style><br></div><div style>Thanks,</div><div style>Scott</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Fri, Mar 29, 2013 at 2:10 PM, Justin M Wozniak <span dir="ltr"><<a href="mailto:wozniak@mcs.anl.gov" target="_blank">wozniak@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi<br>
    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.<br>


    Justin<div><div class="h5"><br>
<br>
On 3/29/2013 1:35 PM, Scott Krieder wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I've created a modified worker that executes some work on a GPU:<br>
/exm/apps/fake-gemtc/worker.<u></u>tcl<br>
<br>
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.<br>
<br>
In my particular case I call:<br>
int r = gemtc_sleep(1) from a .swift script. // where gemtc is the gpu call<br>
<br>
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.<br>
<br>
Any tips on how I might do this? Does this require modifying other files?<br>
<br>
Thanks,<br>
Scott<br>
<br>
-- <br>
Scott J. Krieder<br>
C: <a href="tel:419-685-0410" value="+14196850410" target="_blank">419-685-0410</a><br></div></div>
E: <a href="mailto:skrieder@iit.edu" target="_blank">skrieder@iit.edu</a> <mailto:<a href="mailto:skrieder@iit.edu" target="_blank">skrieder@iit.edu</a>><br>
<a href="http://datasys.cs.iit.edu/~skrieder/" target="_blank">http://datasys.cs.iit.edu/~<u></u>skrieder/</a> <<a href="http://datasys.cs.iit.edu/%7Eskrieder/" target="_blank">http://datasys.cs.iit.edu/%<u></u>7Eskrieder/</a>><br>


<br>
<br>
______________________________<u></u>_________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/exm-user</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Justin M Wozniak<br>
<br>
______________________________<u></u>_________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/exm-user</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="Times" size="3">Scott J. Krieder<br></font><div><div><font face="Times" size="3">C: 419-685-0410<br></font><div><font face="Times" size="3">E: <a href="mailto:skrieder@iit.edu" target="_blank">skrieder@iit.edu</a><br>

</font><div><font face="Times" size="3"><a href="http://datasys.cs.iit.edu/~skrieder/" target="_blank">http://datasys.cs.iit.edu/~skrieder/</a></font></div></div></div></div>
</div>