User Tools

Site Tools


allegrouserguide:computers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
allegrouserguide:computers [2024/11/21 10:30] almaallegrouserguide:computers [2024/11/21 10:46] (current) alma
Line 58: Line 58:
 </note> </note>
  
-Rather than sourcing this script manually, it is advised to add a small statement to your shell rc-file. The following lines will check for the computer you are currently logged in, and source the startup scripts if needed:+Rather than sourcing this script manually, it is advised to add a small statement to your shell rc-file. The following line will alias the startup scripts if needed:
  
   * **Bash** users should add these lines to their ''%%~/.bashrc%%'':<code bash>   * **Bash** users should add these lines to their ''%%~/.bashrc%%'':<code bash>
-lustreroot_file='/home/alma/etc/lustre_root' +alias allegro-setup 'source /almastorage/allegro/bin/allegro-user-setup.sh'
-if [[ -r $lustreroot_file ]]; then +
-  lustreroot=`cat $lustreroot_file` +
-else +
-  lustreroot='/lustre1' +
-fi +
-alg_user_setup=$lustreroot/allegro/bin/bashrc_user.sh +
-if [[ -r $alg_user_setup ]]; then +
-    . $alg_user_setup +
-fi+
 </code> </code>
 +
   * **C-Shell** (i.e. tcsh) users should add these lines to their ''%%~/.cshrc%%'':<code bash>   * **C-Shell** (i.e. tcsh) users should add these lines to their ''%%~/.cshrc%%'':<code bash>
-set lustre_root_file="/home/alma/etc/lustre_root" +alias allegro-setup 'source /almastorage/allegro/bin/allegro-user-setup.csh'
-if ( -r $lustre_root_file ) then +
-  set lustreroot=`cat $lustre_root_file` +
-else +
-  set lustreroot="/lustre1" +
-endif +
-set alg_user_setup=$lustreroot/allegro/bin/cshrc_user.csh +
-if ( -r $alg_user_setup ) then +
-    source $alg_user_setup +
-endif+
 </code> </code>
  
Line 101: Line 84:
 </note> </note>
  
 +Every time you log in to an Allegro computer, you need to type ''allegro-setup'' in order to have all of the correct paths and CASA versions available. 
  
 === CASA setup === === CASA setup ===
Line 136: Line 120:
  
 <code bash> <code bash>
-casapy-54+nice +10 casapy-580
 </code> </code>
-at the command line (on all machines but tebinquiche, which doesn't have it). Typing simply:+for (t)csh or 
 + 
 +<code bash> 
 +nice -n 10 casapy-580 
 +</code> 
 +for bash 
 + 
 +at the command line. Typing simply:
  
 <code bash> <code bash>
 casapy casapy
 </code> </code>
-will start up the Allegro default version. NOTE however that this is not necessarily the latest version of CASA.+will start up the Allegro default version. NOTE however that this is not necessarily the latest version of CASA and does not use the nice command, which you should use as these are shared resources. 
 + 
 +For CASA 6 and later, type 
 +<code bash> 
 +nice -n 10 env -u PYTHONPATH -u LD_LIBRARY_PATH casapy-641p 
 +</code> 
 + 
 +for bash or for (t)csh: 
 +<code bash> 
 +nice +10 env -u PYTHONPATH -u LD_LIBRARY_PATH casapy-641p 
 +</code>
  
 <note>**#HUIB: ADD CASA VERSIONS ON DIFFERENT COMPUTERS: see https://trello.com/c/L0BWiAf6/101-casa-versions-on-various-computers**</note> <note>**#HUIB: ADD CASA VERSIONS ON DIFFERENT COMPUTERS: see https://trello.com/c/L0BWiAf6/101-casa-versions-on-various-computers**</note>
allegrouserguide/computers.1732181435.txt.gz · Last modified: by alma

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki