<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-postmall17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Yiheng,</p>
<p><br>
</p>
<p>I guess you already set the number of nodes to one (32 cores) in your submission script and that cannot be overridden by subsequent resource requisitions. Your job runs with all the cores on a node (thankfully it doesn't abort) but not the 35 you wished
 for, unless you request for more a priori. This is my "loud thought" <span>😊, please ask the NSC admins and share their response. For parallel computing, it might be possible to request for all available cores on a node but my memory about this is foggy ...</span></p>
<p><br>
</p>
<p>Best wishes,<br>
</p>
<p>Jude.<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Bi-users <bi-users-bounces@lists.nsc.liu.se> on behalf of Du Yiheng <yiheng.du@smhi.se><br>
<b>Sent:</b> 01 December 2022 10:02:06<br>
<b>To:</b> bi-users@lists.nsc.liu.se<br>
<b>Subject:</b> [Bi-users] Number of cores</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US">Good morning!<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US">I have a question regarding how many cores can be used for parallel work. In my script I accidentally set the ncores as 35, which is larger than the core number of a node (detectCores() gives
 32).<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US">But the script still works without problem. How does it happen, should I set a limit for the number of cores used for parallel work (for example, 31) or it doesn’t matter?<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US">Thank you very much!<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.2pt"><span lang="EN-US">/Yiheng<o:p></o:p></span></p>
</div>
</div>
</body>
</html>