Selector-mpi (flory): Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
Line 19: Line 19:


== Example 1 ==
== Example 1 ==
To get a list of available MPI implementations:
{{Cmd|source selector-mpi -s}}


== Example 2 ==
== Example 2 ==
To get a list of package versions available for the gnu-openmpi MPI implementation:
{{Cmd|source selector-mpi -i gnu-openmpi -s}}


== Example 3 ==
== Example 3 ==
To use lammps version 20170101, qe version 5.0.2, and the default version for all other available packages for the gnu-openmpi MPI implementation:
{{Cmd|source  selector-mpi -i gnu-openmpi lammps/20170101 qe/5.0.2}}
== Example 4 ==
To use Open MPI compiled with the GNU compiler and the default version of all packages, add the following line to the bottom of the {{C|$HOME/.bashrc}} file:
{{GenericCmd|source selector-mpi -i gnu-openmpi -f -q}}
It is recommended to put (4) into all queue submission scripts to be sure which MPI implementation and package version is used.

Revision as of 13:14, 19 April 2017

The script selector-mpi, located in the /home/bgo/shared/bin directory, makes it easy to setup the environment for supported MPI implementations and packages.

Command line parameters

1Long form options are prefixed with --; 2Short form options are prefixed with -.
Long form1 Short form2 Option type Required? Description
implementation i string No Set MPI implementation
o No Shortcut for -i gnu-openmpi
show s No Shows available MPI implementations or package versions for implementation. To see package versions, -i or -o must specified first, otherwise MPI implementations will be shown.
fullclean f No Full (almost) clean of path. Cleans out extraneous path entries that the typical user does not need (e.g., sbin directories).
clean c No Cleans all paths by removing entries that this script adds, also does a -f for a full cleanup. NOTE: If this is specified, the script will clean the path and ignore all other options, except for verbose and quiet.
verbose v No Be verbose
quiet q No Be quiet.
help h No Show the help text.

package versions List of package versions to use. The default version will be used for any unspecified package. See examples below.

Examples

Example 1

To get a list of available MPI implementations:

user $source selector-mpi -s

Example 2

To get a list of package versions available for the gnu-openmpi MPI implementation:

user $source selector-mpi -i gnu-openmpi -s

Example 3

To use lammps version 20170101, qe version 5.0.2, and the default version for all other available packages for the gnu-openmpi MPI implementation:

user $source selector-mpi -i gnu-openmpi lammps/20170101 qe/5.0.2

Example 4

To use Open MPI compiled with the GNU compiler and the default version of all packages, add the following line to the bottom of the $HOME/.bashrc file:

source selector-mpi -i gnu-openmpi -f -q

It is recommended to put (4) into all queue submission scripts to be sure which MPI implementation and package version is used.