<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:217330082;
mso-list-type:hybrid;
mso-list-template-ids:-1820938926 201981953 201981955 201981957 201981953 201981955 201981957 201981953 201981955 201981957;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:53.4pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:89.4pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:125.4pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:161.4pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:197.4pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:233.4pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:269.4pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:305.4pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:341.4pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:1372682563;
mso-list-type:hybrid;
mso-list-template-ids:-478904926 201981953 201981955 201981957 201981953 201981955 201981957 201981953 201981955 201981957;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2
{mso-list-id:1820614406;
mso-list-type:hybrid;
mso-list-template-ids:1697810176 201981953 201981955 201981957 201981953 201981955 201981957 201981953 201981955 201981957;}
@list l2:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="ES" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My environment is this:<o:p></o:p></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l2 level1 lfo1">Users are using “bash” as the default shell<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l2 level1 lfo1">A sample of one of my environment modules is this:<o:p></o:p></li></ul>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">#%Module1.0<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">##<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">## modules modulefile<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">##<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">## modulefiles/modules. Generated from modules.in by configure.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">##<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">set ModulesVersion "3.2.10"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">proc ModulesHelp { } {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"> global version prefix<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"> puts stderr "\tOpenMPI - $version"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"> puts stderr "\n\tThis adds $prefix/* to several of the"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"> puts stderr "\tenvironment variables."<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"> puts stderr "\n\tVersion $version\n"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">module-whatis "Loads OpenMPI 3.0.0 environment"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"># for Tcl script use only<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">set version 3.0.0<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">set prefix /soft/openmpi-${version}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">set exec_prefix ${prefix}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">set datarootdir ${prefix}/share<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">prepend-path PATH ${exec_prefix}/bin<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">prepend-path LD_LIBRARY_PATH ${prefix}/lib<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt">prepend-path INCLUDE_PATH ${prefix}/include<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3">“module” command itself is processed in /etc/profile.d/modules.sh with this script:<o:p></o:p></li></ul>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">#----------------------------------------------------------------------#<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"># system-wide profile.modules #<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"># Initialize modules for all sh-derivative shells #<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">#----------------------------------------------------------------------#<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">trap "" 1 2 3<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">MODULES=/soft/modules-3.2.10/Modules/3.2.10/init/<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">case "$0" in<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"> -bash|bash|*/bash) . $MODULES/bash ;;<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"> -ksh|ksh|*/ksh) . $MODULES/ksh ;;<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"> -sh|sh|*/sh) . $MODULES/sh ;;<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"> *) . $MODULES/sh ;; # default for scripts<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">esac<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"># Update MODULESPATH environment. /usr/share/modules/init/.modulepath<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">MMODS=/soft/modules-3.2.10<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">module use $MMODS/compilers $MMODS/parallel<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">module use $MMODS/libraries $MMODS/applications $MMODS/tools<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">#module unuse /usr/share/modules /usr/share/modulefiles<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"># load site specific modules<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">module load modules<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"># source .modules in the user's home directory, if it exists<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">if [ -r ~/.modules ]; then<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">. ~/.modules<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">fi<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt">trap - 1 2 3<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:70.8pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3">In the SLURM submit scripts, users have to add an explicit “<i>source /soft/modules-3.2.10/Modules/3.2.10/init/bash</i>”, and after this line, users can load modules in the way “module
load foo/version”<o:p></o:p></li></ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there any bad configuration??<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<span style="font-size:12.0pt;mso-fareast-language:ES">
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>