<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi<br>
<br>
Sorry- that message is a debugging line that unfortunately made it
into the release. It is already removed from our trunk and will not
be in the next release- you can just remove it from your source. <br>
<br>
I will fix the blob doc issue now but feel free to post any
additional questions here in the meantime...<br>
<br>
Justin<br>
<br>
<div class="moz-cite-prefix">On 07/14/2014 03:52 PM, Knight, Samuel
wrote:<br>
</div>
<blockquote cite="mid:CFE99110.3879%25sknigh@sandia.gov" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hello,</div>
<div><br>
</div>
<div>I am writing a program in Swift/T that generates blob objects
inside a leaf function. Binary data is generated with a
Swig-wrapped C function, and the blob construct is produced by
making a list out of the pointer and length in the Tcl wrapper.</div>
<div><br>
</div>
<div>Here is a sample from my Tcl script:</div>
<div><br>
</div>
<div>
<div>proc c_initVect { s o } {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>set
len [ expr $s * [blobutils_sizeof_int32] ]</div>
<div> set ptr [ blobutils_malloc $len ]</div>
<div> initVect [blobutils_cast_to_int_ptr $ptr] $s $o # C
leaf function</div>
<div><br>
</div>
<div> return [ list [ blobutils_cast_to_int $ptr] $len ]
# creating the blob</div>
<div>}</div>
</div>
<div><br>
</div>
<div>When I run the program with this snippet, my output fills
with 'uncache_blob' messages.</div>
<div><br>
</div>
<div>Here is an example:</div>
<div>uncache_blob: 67376368 4000 3uncache_blob: 67380384 4000 4</div>
<div>Which is the output from a program that generates 2 blobs
with the function above.</div>
<div><br>
</div>
<div>The output is automatically generated by the runtime, and I
have no control over when blobs are uncached.</div>
<div><br>
</div>
<div>I've traced that output to ADLB_Local_Blob_Free_Cmd function
in src/tcl/adlb/tcl-adlb.c</div>
<div><br>
</div>
<div>For programs that allocate a large number of blobs, the
output from the runtime becomes overwhelming, and I am starting
to think my snippet is generating blobs incorrectly. So far, the
only example I can find that generates blobs that are returned
to Swift/T is a the fortran example from the leaf functions
guide (Section 3.4 <a class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/exm/local/guides/leaf.html">www.mcs.anl.gov/exm/local/guides/leaf.html</a>).
There is a promising link in Section 3.3.3 of the leaf guide
that explains blobs, but when I click on it I get a 403 error.</div>
<div><br>
</div>
<div>Is anyone aware of additional examples or tutorials that
explain how to generate and manage blobs in Swift/T.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Samuel Knight</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ExM-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Justin M Wozniak
</pre>
</body>
</html>