<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Greg,<br>
<br>
The Swift resume mechanism can't do this, as its driven by internal
variables name within a Swift run, not by external file existence.<br>
<br>
The best way to do what you describe below is to write an external
input file mapper (e.g. a simple shell or py script) that returns
only the files that still need to be produced or processed. (This
is the "ext" mapper:
<a class="moz-txt-link-freetext" href="http://swift-lang.org/guides/release-0.94/userguide/userguide.html#_external_mapper">http://swift-lang.org/guides/release-0.94/userguide/userguide.html#_external_mapper</a>
)<br>
<br>
You can also call a local app to determine what files need to be
produced, then use readData() to read those file names into an
array, and array_mapper to map an array of remaining work to do.<br>
<br>
Would one of these approaches meet your needs?<br>
<br>
- Mike<br>
<br>
<br>
<div class="moz-cite-prefix">On 5/16/14, 12:35 PM, Bronevetsky, Greg
wrote:<br>
</div>
<blockquote
cite="mid:8635C0D1735D2C4BA6E571FD97486FF172EC8E71@PRDEXMBX-05.the-lab.llnl.gov"
type="cite">
<pre wrap="">I have Swift scripts that scan some portion of a design space and after I have scanned a sub-space of all the possibilities I modify the script to target a different, overlapping portion of the design space. However, it seems that when I do this Swift ignores the fact that I've already computed many of the tasks in the new run when I performed the prior run, and re-executes them redundantly. Is there a way for me to avoid such redundant executions? Can the -resume flag be used in this case?
Greg Bronevetsky
Lawrence Livermore National Lab
(925) 424-5756
<a class="moz-txt-link-abbreviated" href="mailto:bronevetsky@llnl.gov">bronevetsky@llnl.gov</a><a class="moz-txt-link-rfc2396E" href="mailto:bronevetsky@llnl.gov"><mailto:bronevetsky@llnl.gov></a>
<a class="moz-txt-link-freetext" href="http://greg.bronevetsky.com">http://greg.bronevetsky.com</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Swift-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Swift-user@ci.uchicago.edu">Swift-user@ci.uchicago.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Wilde
Mathematics and Computer Science Computation Institute
Argonne National Laboratory The University of Chicago
</pre>
</body>
</html>