<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      Also, Samuel, if you are still having trouble with blobs you can
      send us a C function prototype and we can help with the blob
      management. <br>
      <br>
      On 07/14/2014 05:13 PM, Tim Armstrong wrote:<br>
    </div>
    <blockquote
cite="mid:CAC0jiV636eLb2HVVviQnXJkxvDgdddEAvbLBq2rVKFE+J38fiw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi Samuel,<br>
            </div>
            <div><br>
              1. We have floor, ceil and round in the math library
              depending on what rounding mode you want.<br>
            </div>
            2. I think that having a single reference point for those is
            a good idea.  LEAF and WORKER are actually synonyms.  You
            should use WORKER, we're deprecating LEAF going forward
            because it wasn't a particularly appropriate name.  Thanks
            for catching the reference in the docs, I was able to fix
            that.<br>
          </div>
          3. The 0.6.0 release will happen this week with many
          improvements.  A lot of the work focused on major improvements
          in performance and scalability, but there are a number of
          user-facing improvement, such as more and easier ways to
          integrate user code into the scripts.  We don't have a public
          roadmap at this stage: we're working on an improved web
          presence for Swift/T at the moment.  Maybe we can get in touch
          with you off-list to talk a bit more?<br>
          <br>
        </div>
        - Tim<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Jul 14, 2014 at 4:42 PM,
          Knight, Samuel <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:sknigh@sandia.gov" target="_blank">sknigh@sandia.gov</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div
style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
              <div>
                <div>Thanks for the speedy response.</div>
                <div>We are currently building 0.5.0 from source.</div>
                <div><br>
                </div>
                <div>I have three additional questions;</div>
                <ol>
                  <li>Is there a float -> int function? I crating a
                    workaround by casting float -> string ->
                    (parse on decimal) string -> int. It is wasteful,
                    and it only works when there is no exponential
                    component.</li>
                  <li>Is there a single, comprehensive place to read
                    about the '@' directives? For example, I cannot
                    determine the difference between '@dispatch=WORKER'
                    and '@dispatch=LEAF' from the documentation I have
                    found.</li>
                  <li>Is a roadmap posted online? It is relevant to my
                    project to know about this programming-model's
                    direction. It would be particularly helpful to know
                    when 0.6.0 and 1.0 are planned for release and what
                    will be added to the implementation.</li>
                </ol>
                <div>Thank You, </div>
              </div>
              <div>Samuel Knight</div>
              <div><br>
              </div>
              <span>
                <div
                  style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium
                  none;BORDER-LEFT:medium
                  none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df
                  1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
                  <span style="font-weight:bold">From: </span>Tim
                  Armstrong <<a moz-do-not-send="true"
                    href="mailto:tim.g.armstrong@gmail.com"
                    target="_blank">tim.g.armstrong@gmail.com</a>><br>
                  <span style="font-weight:bold">Date: </span>Monday,
                  July 14, 2014 at 2:08 PM<br>
                  <span style="font-weight:bold">To: </span>Justin M
                  Wozniak <<a moz-do-not-send="true"
                    href="mailto:wozniak@mcs.anl.gov" target="_blank">wozniak@mcs.anl.gov</a>><br>
                  <span style="font-weight:bold">Cc: </span>"<a
                    moz-do-not-send="true"
                    href="mailto:exm-user@lists.mcs.anl.gov"
                    target="_blank">exm-user@lists.mcs.anl.gov</a>" <<a
                    moz-do-not-send="true"
                    href="mailto:exm-user@lists.mcs.anl.gov"
                    target="_blank">exm-user@lists.mcs.anl.gov</a>><br>
                  <span style="font-weight:bold">Subject: </span>[EXTERNAL]
                  Re: [ExM Users] Generating Blobs in Swift/T<br>
                </div>
                <div><br>
                </div>
                <div>
                  <div>
                    <div>
                      <div class="h5">
                        <div dir="ltr">
                          <div>I just wanted to add that if you built
                            the release from source you can safely
                            comment out the offending line (line 2178 of
                            tcl-adlb.c, I believe, if you are using the
                            exm-0.5.0 release).  As Justin said, this
                            made it into the release on accident and
                            doesn't have any useful purpose.<br>
                            <br>
                          </div>
                          Regards,<br>
                          Tim<br>
                        </div>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">
                        <div>
                          <div class="h5">On Mon, Jul 14, 2014 at 4:05
                            PM, Justin M Wozniak <span dir="ltr">
                              <<a moz-do-not-send="true"
                                href="mailto:wozniak@mcs.anl.gov"
                                target="_blank">wozniak@mcs.anl.gov</a>></span>
                            wrote:<br>
                          </div>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF">
                            <div>
                              <div class="h5">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
                                <div>
                                  <div><br>
                                    <br>
                                    <div>On 07/14/2014 03:52 PM, Knight,
                                      Samuel wrote:<br>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div class="h5">
                                  <div>
                                    <div>
                                      <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
                                            style="white-space:pre-wrap"></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
                                          moz-do-not-send="true"
                                          href="http://www.mcs.anl.gov/exm/local/guides/leaf.html"
                                          target="_blank">
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></fieldset>
                                      <br>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <pre>_______________________________________________
ExM-user mailing list
<a moz-do-not-send="true" href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a><a moz-do-not-send="true" href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><span></span></pre>
                              <span></span></blockquote>
                            <span><font color="#888888"><br>
                                <span class="HOEnZb"><font
                                    color="#888888">
                                    <pre cols="72">-- 
Justin M Wozniak
</pre>
                                  </font></span></font></span></div>
                          <div class="">
                            <br>
_______________________________________________<br>
                            ExM-user mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:ExM-user@lists.mcs.anl.gov"
                              target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
                            <a moz-do-not-send="true"
                              href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user"
                              target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><br>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </div>
              </span>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Justin M Wozniak</pre>
  </body>
</html>