<span name="Alin M Elena" class="gD">Dear </span>Sandeep and <span name="Alin M Elena" class="gD">Elena</span><br><br>I tested both methods provided by you.<br>Both works well on my Fedora.<br><br>
Thank you very much.<br><br>WANG Riping<br>2012.10.11<br><br><br><div class="gmail_quote">On 11 October 2012 04:54, Alin M Elena <span dir="ltr"><<a href="mailto:alinm...@gmail.com" target="_blank">alinm...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:'DejaVu Sans';font-size:10pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Wang,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">you can set the threads in your case by using OMP_NUM_THREADS variable... by default openmp uses all the threads available... </p>
<p style="margin:0px;text-indent:0px">Usually I prefer to set it inline</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">OMP_NUM_THREADS=6 cp2k.ssmp input.file > output.file</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">The other two variables that Sandeep suggested do not apply to your case, as I doubt that the cp2k in red hat repos is linked against intel MKL (second variable), third variable is related to intel implementation of mpi and has nothing to do whatsoever with openmp...</p>

<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">regards,</p>
<p style="margin:0px;text-indent:0px">Alin</p><div><div class="h5">
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">On Thursday 11 Oct 2012 14:03:52 Sandeep Kumar Reddy wrote:<br></p>
<p style="margin:12px 40px;text-indent:0px">Hi,</p>
<p style="margin:0px 40px;text-indent:0px">    To set the no. of threads,</p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">use </p>
<p style="margin:0px 40px;text-indent:0px">export OMP_NUM_THREADS=n</p>
<p style="margin:0px 40px;text-indent:0px">export MKL_NUM_THREADS=n</p>
<p style="margin:0px 40px;text-indent:0px">export I_MPI_PIN=disable</p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">where n is the no. of threads. </p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">And run with</p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">mpirun -np  xx  cp2k.psmp <a href="http://yy.in" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">yy.in</span></a> </p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">where   xx*n =  no. of cores</p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">Wishes,<br>Sandeep</p>
<p style="margin:0px 40px;text-indent:0px"><br><br></p>
<p style="margin:0px 40px;text-indent:0px">On Thu, Oct 11, 2012 at 1:59 PM, Riping Wang <<a href="mailto:wang.ri...@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">wang.ri...@gmail.com</span></a>> wrote:<br>
</p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">Hi Dominik,<br><br><br>I installed with 'yum install cp2k*' on my Fedora system.<br>There are cp2k.sopt and cp2k.ssmp appearing, respectively for single and parallel. <br>
They works well, as I run test examples.<br><br>There is one small problem.<br>As I use intel mechine, It has 12 threads, but in fact only 6 core.<br>The  cp2k.ssmp used up all the threads.<br>But this is slow, because to use 6 thread is the fast.<br>
So my question is:<br>How to set thread when install with yum?<br>Or is there any other way to set the thread to work?<br><br>Thank you very much.<span style="color:rgb(136,136,136)"><br><br>WANG Riping<br>2012.10.11</span></p>

<p style="margin:0px 40px 0px 46px;text-indent:0px"><br> <br><br><br><br><br><br><br><br></p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">On 10 October 2012 18:20, Dominik 'Rathann' Mierzejewski <<a href="mailto:rat...@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">rat...@gmail.com</span></a>> wrote:<br>
</p>
<p style="margin:0px 40px 0px 52px;text-indent:0px">Hi Riping,<br></p>
<p style="margin:0px 40px 0px 52px;text-indent:0px"><br>On Wednesday, 26 September 2012 at 10:51, Riping Wang wrote:<br>> Dear developers,<br>><br>> Compiler gfortran + mpich2 + scalapack is convenient to install in linux,<br>
> as just with "yum install".<br>> But there is no such kind of selection in installation arch.<br>> There is only two series selection for gfortran: sdbg and sopt at present.<br>><br>> Any one can give me hints?<br>
<br></p>
<p style="margin:0px;text-indent:0px">Since you mentioned "yum install", I assume you're using Fedora, RedHat<br>Enterprise Linux or one of its derivatives.<br><br>Have you tried the cp2k package available in Fedora? It's also available<br>
for RHEL-compatibles from the EPEL repository.<br><br>You can get the mpich2+scalapack build using<br><br>yum install cp2k-mpich2<br><br>Let me know how it works for you.<br><br>Regards,<br>Dominik<br><span style="color:rgb(136,136,136)"><br>
--<br>Fedora </span><a href="http://fedoraproject.org/wiki/User:Rathann" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://fedoraproject.org/wiki/User:Rathann</span></a><span style="color:rgb(136,136,136)"><br>
RPMFusion </span><a href="http://rpmfusion.org" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://rpmfusion.org</span></a><span style="color:rgb(136,136,136)"> | MPlayer </span><a href="http://mplayerhq.hu" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://mplayerhq.hu</span></a><span style="color:rgb(136,136,136)"><br>
"Faith manages."<br>        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"<br></span></p>
<p style="margin:0px 40px 0px 52px;text-indent:0px"><br>--<br>You received this message because you are subscribed to the Google Groups "cp2k" group.<br>To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">cp...@googlegroups.com</span></a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">cp2k+uns...@googlegroups.com</span></a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://groups.google.com/group/cp2k?hl=en</span></a>.<br>
<br></p>
<p style="margin:0px;text-indent:0px"><br><br><br></p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">-- <br></p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">******************************************************************************<br>WANG Riping<br>Ph.D student, </p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">Institute for Study of the Earth's Interior,Okayama University,<br>827 Yamada, Misasa, Tottori-ken 682-0193, Japan<br>Tel: <a href="tel:%2B81-858-43-3739" value="+81858433739" target="_blank">+81-858-43-3739</a>(Office), <a href="tel:%2B81-858-43-1215" value="+81858431215" target="_blank">+81-858-43-1215</a>(Inst)</p>

<p style="margin:0px 40px 0px 46px;text-indent:0px">E-mail: <a href="mailto:wang.ri...@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">wang.ri...@gmail.com</span></a><br>******************************************************************************<br>
<br><br></p>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">-- <br>You received this message because you are subscribed to the Google Groups "cp2k" group.<br>To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">cp...@googlegroups.com</span></a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">cp2k+uns...@googlegroups.com</span></a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://groups.google.com/group/cp2k?hl=en</span></a>.<br>
</p>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px;text-indent:0px">-- <br>You received this message because you are subscribed to the Google Groups "cp2k" group.<br>To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank">http://groups.google.com/group/cp2k?hl=en</a>.<br>
</p>
<p style="margin:0px;text-indent:0px"><br><br></p></div></div></div><div class="HOEnZb"><div class="h5">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank">http://groups.google.com/group/cp2k?hl=en</a>.<br>


</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>******************************************************************************<br>WANG Riping<br>Ph.D student, </div>
<div>Institute for Study of the Earth's Interior,Okayama University,<br>827 Yamada, Misasa, Tottori-ken 682-0193, Japan<br>Tel: +81-858-43-3739(Office), +81-858-43-1215(Inst)</div>
<div>E-mail: <a href="mailto:wang.ri...@gmail.com" target="_blank">wang.ri...@gmail.com</a><br>******************************************************************************<br><br><br></div><br>