<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV STYLE='font-family: "Times New Roman [monotype]", "Times [Adobe]", serif; font-size: 12pt'>Hi Paul,<BR><BR>I do not think you need "re-configure", just do "re-make". <BR> Because of that you replaced cpitime.c you should recompile the code. <BR> <BR>So, relax.<BR> <BR>Bests,<BR>Eyvaz.<BR><BR><DIV STYLE='font-family: "Times New Roman [monotype]", "Times [Adobe]", serif; font-size: 12pt'>----- Original Message ----<BR>From: Paul M. Grant <w2agz@pacbell.net><BR>To: pw_forum@pwscf.org<BR>Sent: Monday, April 9, 2007 10:06:24 AM<BR>Subject: [Pw_forum] CPU Timing<BR><BR><HEAD><STYLE> <!-- _filtered {font-family:"Comic Sans MS";panose-1:3 15 7 2 3 3 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink {color:blue;text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple;text-decoration:underline;} span.EmailStyle17 {font-family:Arial;color:windowtext;} _filtered {margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {} --> </STYLE></HEAD><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>To All (especially Paolo):</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>In February, Paolo sent me a “correction” to the standard distro of espresso-3.2 for cputime, listed below. I’ve now copied the new source of cputime.c to </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial
[monotype]"'>/clib in my espresso directory. I assume, of course, I have to re-“make,” but do I have to re-“configure” as well? Needless to say, I’m kind of nervous about all this.</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>/*</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> Copyright (C) 2002-2006 Quantum-Espresso group</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> This file is distributed under the terms of the</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> GNU General Public License. See the file
`License'</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> in the root directory of the present distribution,</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'><SPAN> or <A target="_blank" href="http://www.gnu.org/copyleft/gpl.txt">http://www.gnu.org/copyleft/gpl.txt</A> .</SPAN></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>*/</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>#include <sys/time.h></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial
[monotype]"'>#include <sys/resource.h></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>#include <unistd.h></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>#include "c_defs.h"</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>double F77_FUNC(cclock,CCLOCK)()</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN
STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>/* Return the second elapsed since Epoch (00:00:00 UTC, January 1, 1970)</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>*/</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>{</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> struct timeval tmp;</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> double sec;</SPAN></FONT></P><P
class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> gettimeofday( &tmp, (struct timezone *)0 );</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> sec = tmp.tv_sec + ((double)tmp.tv_usec)/1000000.0;</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> return sec;</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>}</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt;
font-family: "Arial [monotype]"'>double F77_FUNC(scnds,SCNDS) ( )</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>/* Return the cpu time associated to the current process</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>*/</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>{</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> static struct rusage T;</SPAN></FONT></P><P class="MsoNormal"><FONT
size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> getrusage(RUSAGE_SELF, &T);</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> return ((double)T.ru_utime.tv_sec + ((double)T.ru_utime.tv_usec)/1000000.0);</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>}</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'> </SPAN></FONT></P><P class="MsoNormal"><STRONG><B><I><FONT size="4" face="Comic Sans
MS"><SPAN STYLE='font-size: 13.50pt; font-family: "Comic Sans MS [microsoft]"; font-style: italic'>Paul M. Grant, PhD</SPAN></FONT></I></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>Principal, W2AGZ Technologies</SPAN></FONT></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>Visiting Scholar, Applied Physics, Stanford University</SPAN></FONT></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>EPRI Science Fellow (Retired)</SPAN></FONT></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'>IBM Research Staff Member Emeritus</SPAN></FONT></B></STRONG></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size:
10pt; font-family: "Arial [monotype]"'><A rel="nofollow" target="_blank" href="mailto:w2agz@pacbell.net"><STRONG><B><FONT color="#000000" face="Arial"><SPAN STYLE='font-family: "Arial [monotype]"; color: WindowText; text-decoration: none'>w2agz@pacbell.net</SPAN></FONT></B></STRONG></A></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN STYLE='font-size: 10pt; font-family: "Arial [monotype]"'><A rel="nofollow" target="_blank" href="http://www.w2agz.com/"><STRONG><B><FONT color="#000000" face="Arial"><SPAN STYLE='font-family: "Arial [monotype]"; color: WindowText; text-decoration: none'>http://www.w2agz.com</SPAN></FONT></B></STRONG></A></SPAN></FONT></P><P class="MsoNormal"><FONT size="3" face="Times New Roman"><SPAN STYLE='font-size: 12pt'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="3" face="Times New Roman"><SPAN STYLE='font-size: 12pt'> </SPAN></FONT></P><P class="MsoNormal"><FONT size="3" face="Times New Roman"><SPAN STYLE='font-size:
12pt'> </SPAN></FONT></P></DIV></DIV><BR></DIV></div><br>
<hr size=1>Need Mail bonding?<br>Go to the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">Yahoo! Mail Q&A</a> for <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">great tips from Yahoo! Answers</a> users.</body></html>