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!

...

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

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 , to use the old Narval environment, create the following file ~/.modulerc !!!:

Volet

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


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

On Narval :

Either...

...

Use environment created by Michel Valin but using /scratch, which is often not working! When this environment is used and when /scratch is NOT working one will not be able to log on to Narval and simulations are not able to start.

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

First you

...or...

Volet

Use environment avoiding /scratch. This environment should not be affected by a not working /scratch but is still in test phase.
To use this environment you first need to define a space which will get used instead of /scratch 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-pausataprofessor/${USER}/tmp ~/tmp/narval

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

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


...

which you will have to create.

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