The SSM environment : Différence entre versions

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher
m (Setup the SSM environment)
m (Setup the SSM environment)
Ligne 19: Ligne 19:
 
To use the SSM environment on Compute Canada clusters you will first (and only once) have to do the following little "setup":  
 
To use the SSM environment on Compute Canada clusters you will first (and only once) have to do the following little "setup":  
  
#Create two links in your HOME<br> This part depends on the machine on which you are setting up the SSM environment.<br><br>
+
This part depends on the machine on which you are setting up the SSM environment.<br>
  
If one ot both of the following two files exist remove them or change their name, for example to: <br>'''
+
If one or both of the following two files exist remove them or change their name, for example to: <br>
&nbsp;&nbsp;&nbsp; mv ~/.bash_profile ~/.bash_profile-<br>
+
'''&nbsp;&nbsp;&nbsp; mv ~/.bash_profile ~/.bash_profile-'''<br>
&nbsp;&nbsp;&nbsp; mv ~/.bashrc ~/.bashrc-'''
+
'''&nbsp;&nbsp;&nbsp; mv ~/.bashrc ~/.bashrc-'''
  
<br><br>On '''Guillimin''':<br>
+
Then create the file ~/.profile:<br>
'''&nbsp;&nbsp;&nbsp; ln -s /sb/software/areas/armnssm/ssm-domains-base/setup/v_001&nbsp; ~/ECssm''' <br>
 
'''&nbsp;&nbsp;&nbsp; ln -fs ECssm/dot-profile-setup_1.0_multi/bin/.profile&nbsp; ~/.profile'''<br><br>
 
 
 
On '''Cedar''':<br>
 
 
'''cat > ~/.profile <<+''' <br>
 
'''cat > ~/.profile <<+''' <br>
 
'''type module 2>/dev/null 1>/dev/null || . /etc/profile''' <br>
 
'''type module 2>/dev/null 1>/dev/null || . /etc/profile''' <br>
Ligne 35: Ligne 31:
 
'''. env-setup.dot<br>ulimit -S -l 64000'''<br>
 
'''. env-setup.dot<br>ulimit -S -l 64000'''<br>
 
'''+'''<br>
 
'''+'''<br>
Log out and back in. <br><br><br>
 
  
 +
Log out and back in. <br>
 +
 +
The 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>
 +
'''&nbsp; &nbsp; ln -s ~winger/.published_profile.d/.group_profile&nbsp;&nbsp; ~/.profile.d/.group_profile'''<br><br>
 +
 +
Your own personal aliases, exports, s.ssmuse.dot etc. for '''interactive''' use will go into the file<br>
 +
'''&nbsp;&nbsp;&nbsp; ~/.profile.d/.interactive_profile '''<br>
 +
which you will have to create.<br>
  
#At '''UQAM''' and on '''Guillimin''' and '''Cedar''' I suggest you create a link to the '.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>&nbsp; &nbsp; ln -s ~winger/.published_profile.d/.group_profile&nbsp;&nbsp; ~/.profile.d/.group_profile'''<br><br>
+
Then you either log out and back in again or source the new .profiles. <br>
#Your own personal aliases, exports, s.ssmuse.dot etc. for '''interactive''' use will go into the file<br>'''&nbsp;&nbsp;&nbsp; ~/.profile.d/.interactive_profile '''<br>which you will have to create.<br><br>Since you now have to acquire packages with ''s.ssmuse.dot'' to get access to them I suggest you acquire the basic packages by default and add the following line to your ''~/.profile.d/.interactive_profile'':<br>&nbsp;&nbsp;&nbsp; On '''Guillimin''':<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''. s.ssmuse.dot ovbin diagtools difftools runtools vistools pre_dot'''<br><br>Have a look at my .profile.d if you like (The files are hidden files, so do not forget the '-a'): <br>'''&nbsp; &nbsp; ls -al ~winger/.profile.d '''<br><br>Then you either log out and back in again or source the new .profiles. <br>
 

Version depuis le 3 de mai 2019 à 14:47

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":

This part depends on the machine on which you are setting up the SSM environment.

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-

Then create the file ~/.profile:
cat > ~/.profile <<+
type module 2>/dev/null 1>/dev/null || . /etc/profile
. /home/valin/ECssm-domains-base/ssm_10.151/etc/ssm.d/profile
. env-setup.dot
ulimit -S -l 64000

+

Log out and back in.

The 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.