diff --git a/cfg/spirou/compilers.bashrc b/cfg/spirou/compilers.bashrc new file mode 100644 index 0000000000000000000000000000000000000000..9655075107eac4c2acf3bdd2e939f0917a6b04bf --- /dev/null +++ b/cfg/spirou/compilers.bashrc @@ -0,0 +1,25 @@ +# Intel compiler and/or TBB/MKL +# +# EXPLANATIONS [RB]: +# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) sets PATH, LD_LIBRARY_PATH. +# If we want these variables to be set system-wide, it should be run in .profile +# +# BUT +# 1. the gnome display manager unset LD_LIBRARY_PATH +# +# 2. if the login shell is "dash", the script cannot be called +# (we cannot add an extra argument to a sourced script with dash). +# THEN +# => we call the scripts in both places (.bashrc & .profile) +# => the env is cleaned in "loop.sh", removing duplicates if the .profile was actually read by bash +# +# SPECIAL CASE: "at" job +# => the environment is OK and kept, but "LD_LIBRARY_PATH" is set to nothing by "at" +# => the .profile is then rerun manually in our scripts (with bash) +# should we run also .bashrc as LD_LIBRARY_PATH should be set here on systems with gnome? +# => duplicates are finally removed by loop.sh + +if [ -d /opt/intel ] ; then + . /opt/intel/mkl/bin/mklvars.sh intel64 + . /opt/intel/tbb/bin/tbbvars.sh intel64 +fi diff --git a/cfg/spirou/compilers.profile b/cfg/spirou/compilers.profile new file mode 100644 index 0000000000000000000000000000000000000000..47e39800223c0e0c05d8d2bfc5ccd3056985944c --- /dev/null +++ b/cfg/spirou/compilers.profile @@ -0,0 +1,27 @@ +# Intel compiler and/or TBB/MKL +# +# EXPLANATIONS [RB]: +# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) sets PATH, LD_LIBRARY_PATH. +# If we want these variables to be set system-wide, it should be run in .profile +# +# BUT +# 1. the gnome display manager unset LD_LIBRARY_PATH +# +# 2. if the login shell is "dash", the script cannot be called +# (we cannot add an extra argument to a sourced script with dash). +# THEN +# => we call the scripts in both places (.bashrc & .profile) +# => the env is cleaned in "loop.sh", removing duplicates if the .profile was actually read by bash +# +# SPECIAL CASE: "at" job +# => the environment is OK and kept, but "LD_LIBRARY_PATH" is set to nothing by "at" +# => the .profile is then rerun manually in our scripts (with bash) +# should we run also .bashrc as LD_LIBRARY_PATH should be set here on systems with gnome? +# => duplicates are finally removed by loop.sh + +if [ -n "$BASH_VERSION" ]; then + if [ -d /opt/intel ] ; then + . /opt/intel/mkl/bin/mklvars.sh intel64 + . /opt/intel/tbb/bin/tbbvars.sh intel64 + fi +fi diff --git a/cfg/spirou/misc.bashrc b/cfg/spirou/misc.bashrc new file mode 100644 index 0000000000000000000000000000000000000000..d3fa8f40d87fa6473db96d08edcb9a179181679f --- /dev/null +++ b/cfg/spirou/misc.bashrc @@ -0,0 +1,3 @@ +alias a2ps='a2ps --pro=color --line-numbers=5 --medium=A4' +alias plotdigitizer='java -Xmx256m -jar /opt/PlotDigitizer/PlotDigitizer.jar' +alias open='xdg-open'