The SSM environment

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher

The "SSM environment"

The "SSM environment" is build on SSM, Simple Software Management.

The same SSM environment is available on guillimin and colosse as well as on the UQAM servers st1/2/3, skynet1/2/3, beluga, robert, zwack and glacier but not on marvin.

Using the SSM environment means one now subscribes to domaines and packages using s.ssmuse.dot to aquire access to certain directories, scripts, binaries, etc.. This includes for example all tools to treat RPN files and the CRCM5 model itself.
In general the s.ssmuse.dot will add directories to your $PATH, $LD_LIBRARY_PATH, etc. and set some environment variables.

To get a list of all the available domaines and packages type:
    s.list_ssm_shortcuts

Your own personal aliases, exports, s.ssmuse.dot etc. for interactive use will go into the file
    ~/.profile.d/.interactive_profile
which you will have to create.

There is nothing you have to do on the UQAM servers to set up the environment - it has already been set up at the creation of your account.
But on Compute Canada clusters you will have to do the little "setup" below once.

Setup the SSM environment

To use the SSM environment on Compute Canada clusters you will first (and only once) have to do the following little "setup".
(I strongly suggest to use copy->paste!!! There are dots and spaces that are easy to miss when typing the commands by hand.)

If one or both of the following two files exist remove them or change their name, for example to:
    mv ~/.bash_profile ~/.bash_profile-
    mv ~/.bashrc ~/.bashrc-

On Beluga, to use the old Beluga environment, create the file ~/.modulerc:
cat > ~/.modulerc <<+
module-version StdEnv/2018.3 default
+

Then create the file ~/.profile:
cat > ~/.profile <<+
umask 022
type module 2>/dev/null 1>/dev/null || . /etc/profile
taskset -cp 0-128 \$\$
module swap intel/2018.3 gcc/7.3.0 2>/dev/null
. /home/armnssm/ssm-domains-base/ssm_10.151/etc/ssm.d/profile
. env-setup.dot
module list 2>&1 | grep '[()]'
+

Log out and back in.

Then I suggest you create a link to our common '.group_profile'.
This will give you some basic aliases I find quite useful. Have a look at them if you like.
I will keep adding aliases and exports to this file.
    ln -s ~winger/.published_profile.d/.group_profile   ~/.profile.d/.group_profile

Your own personal aliases, exports, s.ssmuse.dot etc. for interactive use will go into the file
    ~/.profile.d/.interactive_profile
which you will have to create.

Then you either log out and back in again or source the new .profiles.