<div>I don&#39;t understand what &quot;allocatable&quot; and &quot;allocate&quot; do. It would seem that atob writes an integer (assigned by a(i) = i) to an address which had also been specified by the a(i)=i assignment, and was not necessarily allocated to a. That would be expected to generate random errors, and since the example has hardcoded numbers like 8460901, it could write to a range that **normally** is writeable in user space, but which is not guaranteed to be by the allocation.
</div>
<div>&nbsp;</div>
<div>If it were C like this:</div>
<div>&nbsp;</div>
<div>int *a;</div>
<div>a = malloc(10);</div>
<div>for(i = 0; i&lt; 10; i++) a[i] = i;</div>
<div>*(a[5]) = 5;</div>
<div>&nbsp;</div>
<div>that is, I&#39;m presuming that the contents at the address &quot;5&quot; can be written with the value 5, but &quot;5&quot; is not necessarily in the address space allocated by malloc.</div>
<div>&nbsp;</div>
<div>I&#39;m thinking this must not be what the subroutine ATOB does, maybe a call by reference instead of call by value confusion (to me). However, the example looks like it was written to show up a compiler dependency and not to stress test a CPU. In fact, it looks like it was written by a malicious C programmer :-) but I have an alibi.
</div>
<div>&nbsp;</div>
<div>Peter</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">James Cuff</b> &lt;<a href="mailto:james_cuff@harvard.edu">james_cuff@harvard.edu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi Orion,<br><br>I&#39;m thinking you may have bad memory/hardware on one of those nodes<br>here mate...
<br><br>Compiles and runs fine here in 32 bit ubuntu fiesty:<br><br>jcuff@harold:~$ uname -a<br>Linux harold 2.6.20-15-386 #2 Sun Apr 15 07:34:00 UTC 2007 i686 GNU/<br>Linux<br><br>jcuff@harold:~$ cat /proc/cpuinfo | grep &quot;model name&quot;
<br>model name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Intel(R) Pentium(R) 4 CPU 2.53GHz<br><br><br>jcuff@harold:~$ gfortran -O3 -o tt test.f90<br>jcuff@harold:~$ time ./tt<br>^C<br>real&nbsp;&nbsp;&nbsp;&nbsp;8m11.766s<br>user&nbsp;&nbsp;&nbsp;&nbsp;8m5.862s<br>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m4.280s<br><br><br>Also your 64 bit static compiled version runs fine even on a rather
<br>crappy &quot;64 bit&quot; Celeron I have on FC 5:<br><br>[jcuff@gw ~]$ cat /proc/cpuinfo&nbsp;&nbsp;| grep &quot;model name&quot;<br>model name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Intel(R) Celeron(R) CPU 2.93GHz<br><br>[jcuff@gw ~]$ uname -a
<br>Linux 2.6.20-1.2312.fc5 #1 SMP Tue Apr 10 15:14:58 EDT 2007 x86_64<br>x86_64 x86_64 GNU/Linux<br><br><br>[jcuff@gw ~]$ time ./testatob<br>^C<br>real&nbsp;&nbsp;&nbsp;&nbsp;5m5.794s<br>user&nbsp;&nbsp;&nbsp;&nbsp;3m38.785s<br>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m9.890s<br><br><br>Hope this helps.
<br><br>Best,<br><br>j.<br><br>--<br>James Cuff, D. Phil.<br>Director of Research Computing, Life Sciences Division.<br>Bauer Laboratory, 7 Divinity Avenue, Cambridge, MA. 02138<br>Tel: 617-384-5065&nbsp;&nbsp; Direct Dial: 617-384-7647
<br><br><br>On May 3, 2007, at 8:34 PM, &lt;<a href="mailto:orion@cora.nwra.com">orion@cora.nwra.com</a>&gt; wrote:<br><br>&gt; &gt;<br>&gt; &gt; Okay, I have a test case for the problem I reported before<br>&gt;<br>&gt; Statically compiled binary at 
<a href="http://www.cora.nwra.com/~orion/">http://www.cora.nwra.com/~orion/</a><br>&gt; testatob.bz2<br>&gt; for those of you without the PGF compiler to try.<br>&gt;<br>&gt; --<br>&gt; Orion Poplawski<br>&gt; Technical Manager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 303-415-9701 x222
<br>&gt; NWRA/CoRA Division&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FAX: 303-415-9702<br>&gt; 3380 Mitchell Lane&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:orion@cora.nwra.com">orion@cora.nwra.com</a><br>&gt; Boulder, CO 80301&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.cora.nwra.com">
http://www.cora.nwra.com</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; Beowulf mailing list, <a href="mailto:Beowulf@beowulf.org">Beowulf@beowulf.org</a><br>&gt; To change your subscription (digest mode or unsubscribe) visit
<br>&gt; <a href="http://www.beowulf.org/mailman/listinfo/beowulf">http://www.beowulf.org/mailman/listinfo/beowulf</a><br>&gt;<br><br>_______________________________________________<br>Beowulf mailing list, <a href="mailto:Beowulf@beowulf.org">
Beowulf@beowulf.org</a><br>To change your subscription (digest mode or unsubscribe) visit <a href="http://www.beowulf.org/mailman/listinfo/beowulf">http://www.beowulf.org/mailman/listinfo/beowulf</a><br></blockquote></div>
<br>


!DSPAM:463b491b69781396896698!