The SSM environment : Différence entre versions
m (Created page with "= The "SSM environment" = The "SSM environment" is build on SSM, <u>S</u>imple <u>S</u>oftware <u>M</u>anagement. This means one now subscribes to domaines and packages using...") |
m (→Setup the SSM environment) |
||
(48 révisions intermédiaires par 3 utilisateurs non affichées) | |||
Ligne 3: | Ligne 3: | ||
The "SSM environment" is build on SSM, <u>S</u>imple <u>S</u>oftware <u>M</u>anagement. | The "SSM environment" is build on SSM, <u>S</u>imple <u>S</u>oftware <u>M</u>anagement. | ||
− | + | 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.<br> | |
− | + | 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. <br>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:<br> s.list_ssm_shortcuts<br> |
− | + | Your own '''personal aliases, exports''', s.ssmuse.dot etc. for '''interactive''' use will go into the file<br>''' ~/.profile.d/.interactive_profile '''<br>which you will have to create.<br> | |
− | + | 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. <br>But '''on Compute Canada clusters you will have to do the little "setup" below''' once. | |
+ | <br> | ||
+ | <br> | ||
− | + | = <span id="Setup_to_use_new_environment" class="mw-headline">Setup the SSM environment</span> = | |
− | <br> | + | To use the SSM environment on Compute Canada clusters you will first (and only once) have to do the following little "setup". <br> |
+ | (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: <br> | |
+ | ''' mv ~/.bash_profile ~/.bash_profile-'''<br> | ||
+ | ''' mv ~/.bashrc ~/.bashrc-''' | ||
− | + | On Beluga, to use the old Beluga environment, create the file ~/.modulerc:<br> | |
+ | '''cat > ~/.modulerc <<+ <br>''' | ||
+ | '''module-version StdEnv/2018.3 default<br>''' | ||
+ | '''+<br>''' | ||
− | + | Then create the file ~/.profile:<br> | |
− | + | '''cat > ~/.profile <<+ <br>''' | |
− | + | '''umask 022<br>''' | |
− | + | '''type module 2>/dev/null 1>/dev/null || . /etc/profile<br>''' | |
− | + | '''taskset -cp 0-128 \$\$<br>''' | |
− | + | '''module swap intel/2018.3 gcc/7.3.0 2>/dev/null<br>''' | |
+ | '''. /home/armnssm/ssm-domains-base/ssm_10.151/etc/ssm.d/profile<br>''' | ||
+ | '''. env-setup.dot<br>''' | ||
+ | '''module list 2>&1 | grep '[()]'<br>''' | ||
+ | '''+<br>''' | ||
− | <br> | + | Log out and back in. <br> |
+ | |||
+ | Then I suggest you create a link to our common '.group_profile'.<br> | ||
+ | This will give you some basic aliases I find quite useful. Have a look at them if you like. <br> | ||
+ | I will keep adding aliases and exports to this file.<br> | ||
+ | ''' ln -s ~winger/.published_profile.d/.group_profile ~/.profile.d/.group_profile'''<br><br> | ||
+ | |||
+ | Your own personal aliases, exports, s.ssmuse.dot etc. for '''interactive''' use will go into the file<br> | ||
+ | ''' ~/.profile.d/.interactive_profile '''<br> | ||
+ | which you will have to create.<br> | ||
− | + | Then you either log out and back in again or source the new .profiles. <br> |
Version actuelle datée du 16 de juin 2021 à 22:16
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.