Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

To use the SSM environment on Compute Canada 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.
(

Volet
borderWidth5
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 Compute Canada 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!

1) Rename old bash-profiles

If one or both of the following two files exist remove them or change their name, for example to:

Volet
mv ~/.bash_profile ~/.bash_profile-
mv ~/.bashrc ~/.bashrc-

2) Use old cluster environment

On Beluga (only on Beluga), to use the old Beluga environment, create the file ~/.modulerc:

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


On Narval : Make sure you do NOT have the file ~/.modulerc !!!, to use the old Narval environment, create the following file ~/.modulerc:

Volet

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


There is nothing to be done for this on Rorqual


3) Create or link ~/.profile

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

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

...

Volet

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
Replace 'professor' by the name of your PI.

4) In your Create the file ~/.profile you have to put with the following content (just copy-paste the 3 lines):

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


On Rorqual:

Volet
cd
ln -s /home/armnssm/envi/Profile/bin/.profile


Log out and back in.

4) Link to .group_profile

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.

On Beluga and Narval:

Volet
ln -s ~winger/.published_profile.d/.group_profile   ~/.profile.d/.group_profile

On Rorqual:


Volet
ln -s /home/armnssm/envi/Profile/bin/.group_profile   ~/.profile.d/.group_profile


5) Your own personal aliases, exports, etc.

Your own personal aliases, exports, s.ssmuse.dot etc. for interactive use will go into the file

Volet
~/.profile.d/.interactive_profile


which you will have to create.

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