Thank you for all the answers.. now the subject is clearer. And I thought that I knew something about comp. architecture... Thanks!<br><br>Ivan<br><br><div><span class="gmail_quote">2006/11/22, Richard Walsh &lt;<a href="mailto:rbw@ahpcrc.org">
rbw@ahpcrc.org</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Ivan Paganini wrote:<br>&gt; Hello everybody at beowulf. Sorry about the _really_ newbie question,<br>&gt; but after doing some tests and researching a little, a question arose<br>&gt; when fooling around with amd64 (more precisely, an amd64 Athlon 4200
<br>&gt; X2) and gcc and sun studio 11. The architecture has 64 bits integer<br>&gt; registers and 128 bits floating point registers, but my test programs<br>&gt; in C just gave me the same precision that I got with an old athlon
<br>&gt; 2400 xp (32bits), that is, long double go only to 1x10^ 4961, even<br>&gt; with the -m64 flag. I always imagined that I would get the double<br>&gt; precision without the long double declaration (or, maybe, 40bits
<br>&gt; precision). What am I missing here? Is the compiler (gcc 4.1, sun<br>&gt; studio express 11), the operating system (ubuntu 64bits edgy), or just<br>&gt; an error in my logic?<br>&gt;<br>Ivan,<br><br>A common confusion ... x86_64 changes nothing about the precision of
<br>floats or doubles in<br>C or Fortran.&nbsp;&nbsp;They remain the same format as does the basic inner<br>workings of the functional<br>units.&nbsp;&nbsp;The 64-ness refers to the added memory addressibility provided<br>by the larger address
<br>registers.&nbsp;&nbsp;This potential itself is not fully utilized as I believe<br>only 40-bits are used (the socket<br>F series may have bumped this up to 48-bits).<br><br>So computed epsilons on on either platform should be the same.&nbsp;&nbsp;Long
<br>doubles, which would<br>need to be supported in software, would be need to get more.<br><br>rbw<br><br>PS&nbsp;&nbsp;In his note, Mark Hahn makes reference to the different extended<br>precisions inside<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the processor of the SIMD floating-point units versus the
<br>old-style floating point.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Results are truncated to 64-bits when stored to memory, but a<br>path through the SIMD<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units could produce slightly different results in &quot;vectorized&quot;<br>code from the non-vector
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; old-style functional unit.<br><br>&gt;<br>&gt; --<br>&gt; -----------------------------------------------------------<br>&gt; Ivan S. P. Marin<br>&gt; Laboratório de Física Computacional<br>&gt; <a href="http://lfc.ifsc.usp.br">
lfc.ifsc.usp.br</a> &lt;<a href="http://lfc.ifsc.usp.br">http://lfc.ifsc.usp.br</a>&gt;<br>&gt; Instituto de Física de São Carlos - USP<br>&gt; ----------------------------------------------------------<br>&gt; ------------------------------------------------------------------------
<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 
<a href="http://www.beowulf.org/mailman/listinfo/beowulf">http://www.beowulf.org/mailman/listinfo/beowulf</a><br>&gt;<br><br><br>--<br><br>Richard B. Walsh<br><br>&quot;The world is given to me only once, not one existing and one
<br> perceived. The subject and object are but one.&quot;<br><br>Erwin Schroedinger<br><br>Project Manager<br>Network Computing Services, Inc.<br>Army High Performance Computing Research Center (AHPCRC)<br><a href="mailto:rbw@ahpcrc.org">
rbw@ahpcrc.org</a>&nbsp;&nbsp;|&nbsp;&nbsp;612.337.3467<br><br>-----------------------------------------------------------------------<br>This message (including any attachments) may contain proprietary or<br>privileged information, the use and disclosure of which is legally
<br>restricted.&nbsp;&nbsp;If you have received this message in error please notify<br>the sender by reply message, do not otherwise distribute it, and delete<br>this message, with all of its contents, from your files.<br>-----------------------------------------------------------------------
<br><br></blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------------<br>Ivan S. P. Marin<br>Laboratório de Física Computacional<br><a href="http://lfc.ifsc.usp.br">lfc.ifsc.usp.br
</a><br>Instituto de Física de São Carlos - USP<br>----------------------------------------------------------