Click on the following link to learn more about the "SSM environment":

      The SSM environment


To use the SSM environment on clusters of the Alliance you will first (and only once) have to do the following little "setup". There is nothing to be done on our UQAM servers.

You need to follow all of the instructions below! You cannot skip any parts!
I strongly suggest to use copy->paste!!! There are dots and spaces that are easy to miss when typing the commands by hand.

First a little "warning":
By default, the "prompt" (beginning of a command line) on clusters of the Alliance looks like this:
    node n%
You first have the name of the login node, followed by the number of you command (which increases by 1 with each command you type), followed by the sign(!) '%'.
For example on narval1 (one of the login nodes on Narval) you might get:
    narval1 1%
The '%' here is not a 'percent of setup done' but just a sign to mark the end of the prompt!

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-

Use old cluster environment

On Beluga, to use the old Beluga environment, create the file ~/.modulerc:

cat > ~/.modulerc <<+
module-version StdEnv/2018.3 default
+


On Narval, to use the old Narval environment, create the following file ~/.modulerc:

cat > ~/.modulerc <<+
module-version StdEnv/2020 default
+


Then create the file ~/.profile:
On Beluga :

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 '[()]'
+

On Narval :

First you need to define a space which will get used as the default temporary disk space, ${TMPDIR}:

1) Create a directory which you would like to make your default temporary directory. I suggest you use the default directory of your PI, for example:
    mkdir ~/projects/def-professor/${USER}/tmp
Replace 'professor' by the name of your PI.

2) Create a directory in your home called 'tmp':
    mkdir ~/tmp

3) Inside this new directory create a link called 'narval' which points to the directory you created under 1). For example:
    ln -s ~/projects/def-professor/${USER}/tmp ~/tmp/narval

4) In your ~/.profile you have to put:

cat > ~/.profile <<+
source ~armnssm/narval/bin/.profile_no_scratch
+

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. I suggest you have a look at them to see which ones are available.
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.

  • Aucune étiquette
Écrire un commentaire...