<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Dear axel<br><br>Thank you very much for your help!<br><br>Just following your suggestion, I export OMP_NUM_THREADS=1, the calculation finish within several seconds!<br><br>Thank you very much for your help! <br><br>The machine I used is SGI-Altex-4700. After I download the code, I just do <br>1) configure<br>2) make all<br><br>I donot know if I still other set or configurations to optimize my calculation in SGI-Altex-4700?<br><br>Thanks<br><br>Xiangang Wan<br>Department of Physics<br>Nanjing University<br>P.R. China<br><br>&gt; Date: Mon, 10 Nov 2008 21:55:58 -0500<br>&gt; From: akohlmey@cmm.chem.upenn.edu<br>&gt; To: lo_wan_2005@hotmail.com<br>&gt; Subject: Re: [Pw_forum] Why my test-calculation is so slowly? SGI4700 for Si take about 1 hours<br>&gt; <br>&gt; On Tue, 11 Nov 2008, Lo_wan_2005XW wrote:<br>&gt; <br>&gt; XW&gt; <br>&gt; XW&gt; Dear PWscf users<br>&gt; <br>&gt; dear xw,<br>&gt; <br>&gt; please don't forget to specify your full name and affiliation.<br>&gt; <br>&gt; you are a victim of not overly smart sysadmins and the strange<br>&gt; choices of intel. you are most likely linking to MKL and as of<br>&gt; version 10.0 it automatically multi-threads across _all_ available<br>&gt; cpu 'cores'. on an SGI altix this has disasterous consequences<br>&gt; for the performance. you have to set OMP_NUM_THREADS=1 and<br>&gt; it will be _much_ less of a problem (check out the mailing list<br>&gt; archive for multiple occurances of this "feature".<br>&gt; <br>&gt; please not that the first test examples don't overly scale<br>&gt; as well (for testing, you may be better off with the contents<br>&gt; of the tests directory using only 2-4 processors.<br>&gt; <br>&gt; cheers,<br>&gt;    axel.<br>&gt; <br>&gt; p.s.: if your sysadmins are not totally ignorant, please<br>&gt; ask them to at export OMP_NUM_THREADS=1 to the default<br>&gt; environment, and they'll avoid a lot of problems with<br>&gt; jobs not running overly efficient.<br>&gt; <br>&gt; XW&gt; <br>&gt; XW&gt; I just download the code and install it in our SGI-4700 without any warnning or error.<br>&gt; XW&gt; <br>&gt; XW&gt; After that, I try to do the example-calculation (example01).<br>&gt; XW&gt; <br>&gt; XW&gt; My machine is SGI-Altex-4700, so I change the the following line in the file of run_example <br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; $PW_COMMAND &lt; si.scf.$diago.in &gt; si.scf.$diago.out<br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; to <br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; $PARA_PREFIX $PW_COMMAND &lt; si.scf.$diago.in &gt; si.scf.$diago.out<br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; I set <br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; PARA_PREFIX="mpirun -np 12"<br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; After that, I type ./run_example<br>&gt; XW&gt; <br>&gt; XW&gt; I can see the following in the screen:<br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; sgi4700:~/Quantum-Espresso/espresso-4.0.3/examples/example01&gt; ./run_example <br>&gt; XW&gt;  <br>&gt; XW&gt; /disk2/Quantum-Espresso/espresso-4.0.3/examples/example01 : starting<br>&gt; XW&gt;  <br>&gt; XW&gt; This example shows how to use pw.x to calculate the total energy and<br>&gt; XW&gt; the band structure of four simple systems: Si, Al, Cu, Ni.<br>&gt; XW&gt;  <br>&gt; XW&gt;   executables directory: /disk2/Quantum-Espresso/espresso-4.0.3/bin<br>&gt; XW&gt;   pseudo directory:      /disk2/Quantum-Espresso/espresso-4.0.3/pseudo<br>&gt; XW&gt;   temporary directory:   /disk2/tmp<br>&gt; XW&gt;   checking that needed directories and files exist... done<br>&gt; XW&gt;  <br>&gt; XW&gt;   running pw.x as: mpirun -np 12 /disk2/Quantum-Espresso/espresso-4.0.3/bin/pw.x -npool 4<br>&gt; XW&gt;   running bands.x as: mpirun -np 12 /disk2/Quantum-Espresso/espresso-4.0.3/bin/bands.x -npool 4<br>&gt; XW&gt;  <br>&gt; XW&gt;   cleaning /disk2/xgwan/tmp... done<br>&gt; XW&gt;   running the scf calculation for Si...<br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt;  <br>&gt; XW&gt; <br>&gt; XW&gt; By using "top", I can find there are 12 pw.x.  My machine take about 2 hours to finish this simple calculation. It is quite strange! <br>&gt; XW&gt; I compare the my output and the data saved in referece-directory, it shows that my result, like total energy, is right comparing with the referenced data.<br>&gt; XW&gt; <br>&gt; XW&gt; Attached pleased find my output data.<br>&gt; XW&gt; <br>&gt; XW&gt; I will appreciate if someone can kindly tell me the possible reason for it. <br>&gt; XW&gt; <br>&gt; XW&gt; Thanks<br>&gt; XW&gt; <br>&gt; XW&gt; XW<br>&gt; XW&gt; <br>&gt; XW&gt; _________________________________________________________________<br>&gt; XW&gt; MSN ÖÐÎÄÍø£¬×îÐÂʱÉÐÉú»î×ÊѶ£¬°×Áì¾Û¼¯ÃÅ»§¡£<br>&gt; XW&gt; http://cn.msn.com<br>&gt; <br>&gt; -- <br>&gt; =======================================================================<br>&gt; Axel Kohlmeyer   akohlmey@cmm.chem.upenn.edu   http://www.cmm.upenn.edu<br>&gt;    Center for Molecular Modeling   --   University of Pennsylvania<br>&gt; Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323<br>&gt; tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425<br>&gt; =======================================================================<br>&gt; If you make something idiot-proof, the universe creates a better idiot.<br><br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://im.live.cn/' target='_new'>立刻下载!</a></body>
</html>