Niagara Quickstart: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 229: Line 229:
== Module spider == <!--T:63-->
== Module spider == <!--T:63-->


<!--T:64-->
= Available compilers and interpreters =
Oddly named, the module subcommand spider is the search-and-advise facility for modules.


<!--T:65-->
* For most compiled software, one should use the Intel compilers (<tt>icc</tt> for C, <tt>icpc</tt> for C++, and <tt>ifort</tt> for Fortran). Loading an <tt>intel</tt> module makes these available.  
Suppose one wanted to load the openmpi module.  Upon trying to load the module, one may get the following message:
* The GNU compiler suite (<tt>gcc, g++, gfortran</tt>) is also available, if you load one of the <tt>gcc</tt> modules.
<source lang="bash">nia-login07:~$ module load openmpi
* Open source interpreted, interactive software is also available:
Lmod has detected the error:  These module(s) exist but cannot be loaded as requested: "openmpi"
** [[Python]]
  Try: "module spider openmpi" to see how to load the module(s).</source>
** [[R]]
So while that fails, following the advice that the command outputs, the next command would be:
** Julia
</translate>
** Octave
<source lang="bash">nia-login07:~$ module spider openmpi
    
------------------------------------------------------------------------------------------------------
Please visit the [[Python]] or [[R]] page for details on using these tools. For information on running MATLAB applications on Niagara, visit [[MATLAB| this page]].
  openmpi:
------------------------------------------------------------------------------------------------------
    Versions:
        openmpi/2.1.3
        openmpi/3.0.1
        openmpi/3.1.0rc3
 
------------------------------------------------------------------------------------------------------
  For detailed information about a specific "openmpi" module (including how to load the modules) use
  the module s full name.
  For example:
 
    $ module spider openmpi/3.1.0rc3
------------------------------------------------------------------------------------------------------</source>
<translate>
<!--T:98-->
So this gives just more details suggestions on using the <tt>spider</tt> command. Following the advice again, one would type:
</translate>
<source lang="bash">nia-login07:~$ module spider openmpi/3.1.0rc3
------------------------------------------------------------------------------------------------------
  openmpi: openmpi/3.1.0rc3
------------------------------------------------------------------------------------------------------
    You will need to load all module(s) on any one of the lines below before the "openmpi/3.1.0rc3"
    module is available to load.
 
      NiaEnv/2018a  gcc/7.3.0
      NiaEnv/2018a  intel/2018.2
</source>
<translate>
<!--T:66-->
These are concrete instructions on how to load this particular openmpi module. Following these leads to a successful loading of the module.
</translate>
<source lang="bash">
nia-login07:~$ module load NiaEnv/2018a  intel/2018.2
nia-login07:~$ module load openmpi/3.1.0rc3
</source>
<source lang="bash">nia-login07:~$ module list
Currently Loaded Modules:
  1) NiaEnv/2018a (S)  2) intel/2018.2  3) openmpi/3.1.0.rc3
 
   Where:
  S: Module is Sticky, requires --force to unload or purge</source>
 
<translate>


= Running commercial software = <!--T:67-->
= Running commercial software = <!--T:67-->
cc_staff
290

edits