Hi Zhao,<br><br>[Quick spontaneous answer:]<br><br>I just tried to run a very simple script (attached relevant files zipped) and it worked without any errors for me. <br><br>May be you can try that and I will try yours to see what we can reproduce.<br>
<br>Sorry gmail doesnt like to attach so here is the link: <a href="http://www.mcs.anl.gov/~ketan/files/tmp.tgz">http://www.mcs.anl.gov/~ketan/files/tmp.tgz</a><br><br>Regards,<br>Ketan<br><br><br><div class="gmail_quote">
On Wed, Mar 30, 2011 at 5:47 PM, Zhao Zhang <span dir="ltr"><<a href="mailto:zhaozhang@uchicago.edu">zhaozhang@uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi guys,<br>
<br>
I am seeing something weird in swfit-0.92. Any idea about this?<br>
The swift script is very simple:<br>
<br>
zzhang@sandbox:~/workplace/Andrey> cat movies.swift<br>
type Pickle {}<br>
type History {}<br>
type Image {}<br>
<br>
app (History historyout) movie_graph (int rerun, int epochs, Pickle picklefile)<br>
{<br>
   movie_graph rerun epochs;<br>
}<br>
<br>
int arr[];<br>
iterate i<br>
{<br>
  arr[i] = i+1;<br>
}until(i == 1);<br>
<br>
int epochs;<br>
epochs = 3;<br>
Pickle picklefile <single_file_mapper; file="for_movies.pickled">;<br>
foreach a in arr{<br>
  History historyout <single_file_mapper; file=@strcat("output/rerun", a, "/histories.pickled-", a)>;<br>
  historyout = movie_graph(a, epochs, picklefile);<br>
}<br>
<br>
<br>
<br>
I ran the script with the latest 0.92 version, which is loaded as a module on beagle. The I saw this:<br>
zzhang@sandbox:~/workplace/Andrey> swift -tc.file ./tc.data movies.swift<br>
Variable epochs defined in scope 99878388 shadows variable of same name in scope 1813605401<br>
Variable picklefile defined in scope 99878388 shadows variable of same name in scope 1813605401<br>
Swift svn swift-r4157 cog-r3056<br>
<br>
RunID: 20110330-1636-ev8vm8gb<br>
Progress:<br>
Progress:  Selecting site:3  Active:1<br>
Progress:  Selecting site:3  Checking status:1<br>
Progress:  Selecting site:2  Stage in:1  Finished successfully:1<br>
Progress:  Selecting site:2  Active:1  Finished successfully:1<br>
Progress:  Selecting site:2  Active:1  Finished successfully:1<br>
Progress:  Selecting site:1  Stage in:1  Finished successfully:2<br>
Progress:  Selecting site:1  Active:1  Finished successfully:2<br>
Progress:  Selecting site:1  Checking status:1  Finished successfully:2<br>
The cache already contains localhost:movies-20110330-1636-ev8vm8gb/shared/output/rerun1/histories.pickled-1.<br>
<br>
Execution failed:<br>
        The cache already contains localhost:movies-20110330-1636-ev8vm8gb/shared/output/rerun1/histories.pickled-1.<br>
<br>
<br>
Then I switched to an older version, it worked well.<br>
zzhang@sandbox:~/workplace/Andrey> swift -tc.file ./tc.data movies.swift<br>
Variable epochs defined in scope 212602028 shadows variable of same name in scope 1538939834<br>
Variable picklefile defined in scope 212602028 shadows variable of same name in scope 1538939834<br>
Swift svn swift-r3291 (swift modified locally) cog-r2750 (cog modified locally)<br>
<br>
RunID: 20110330-1639-gmbyz1qa<br>
Progress:<br>
Progress:  Active:2<br>
Progress:  Active:1  Checking status:1<br>
Final status:  Finished successfully:2<br>
<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu" target="_blank">Swift-devel@ci.uchicago.edu</a><br>
<a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel</a><br>
</blockquote></div><br>