source: TOOLS/MachineEnvironment/irene/bashrc @ 6891

Last change on this file since 6891 was 6753, checked in by jgipsl, 4 months ago

Change path to modipsl on svn (now forge.ipsl.fr instead of forge.jussieu.fr)

Also commit older changes:

  • jeanzay/env_atlas_jeanzay : Previously changed modules done in october 2020
  • irene-amd : removed after homogenization between modules used at skylake and amd in 2023
  • irene : new modules used since change to redhat8 in april 2023
  • Property svn:executable set to *
File size: 1015 bytes
Line 
1if [[ ${-} != *i*  ||  ( ${TERM} != xterm* && ${TERM} != screen ) || ${TERM}  = "su" || ${TERM}  = "dumb" || ${TERM}  = "network" || -z ${TERM} ]] ; then
2        return 0
3fi
4
5#####################################
6# This file, ~/.bashrc, should be sourced by your ~/.bash_profile
7#
8# Below, source ~/.basrch_curie or ~/.bashrc_irene depending on the computer
9# This file should be in your home
10
11u_s=$(uname -s) ; u_n=$(uname -n) ; u_r=$(uname -r) ; u_m=$(uname -m)
12
13case ${u_n} in
14    ( irene* )
15    if [[ $(lscpu | grep "Intel(R) Xeon(R) Platinum") ]] ; then
16        if [[ "$(ccc_os)" = "Atos_7__x86_64" ]] ; then
17            . ~/.bashrc_irene_prev
18        fi
19        if [[ "$(ccc_os)" = "Rhel_8__x86_64" ]] ; then
20           . ~/.bashrc_irene
21        fi
22    fi
23   
24   
25    if [[ $(lscpu | grep "AMD") ]] ; then
26        if [[ "$(ccc_os)" = "Atos_7__x86_64" ]] ; then
27            . ~/.bashrc_irene-amd_prev
28        fi
29        if [[ "$(ccc_os)" = "Rhel_8__x86_64" ]] ; then
30            . ~/.bashrc_irene
31        fi
32    fi
33    ;;
34 
35esac
36#####################################
37
Note: See TracBrowser for help on using the repository browser.