Skip to content
Snippets Groups Projects
Commit 924d6d05 authored by Boman Romain's avatar Boman Romain
Browse files

ld_library_path + gnome

parent 7ddaf9f7
No related branches found
No related tags found
No related merge requests found
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -z "$MKLROOT" ]; then
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
fi
if [ -z "$TBBROOT" ]; then
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -n "$BASH_VERSION" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
fi
\ No newline at end of file
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -z "$MKLROOT" ]; then
if [ -d /opt/intelCommunity2017 ] ; then
. /opt/intelCommunity2017/mkl/bin/mklvars.sh intel64
fi
if [ -z "$TBBROOT" ]; then
. /opt/intelCommunity2017/tbb/bin/tbbvars.sh intel64
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -n "$BASH_VERSION" ]; then
. /opt/intelCommunity2017/mkl/bin/mklvars.sh intel64
. /opt/intelCommunity2017/tbb/bin/tbbvars.sh intel64
if [ -d /opt/intelCommunity2017 ] ; then
. /opt/intelCommunity2017/mkl/bin/mklvars.sh intel64
. /opt/intelCommunity2017/tbb/bin/tbbvars.sh intel64
fi
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
# 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
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# 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 [ -z "$MKLROOT" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
# 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
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# 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
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
fi
add2env LD_LIBRARY_PATH "/opt/mumps/lib"
#add2env LD_LIBRARY_PATH "/opt/mumps/lib"
add2env LIB "/opt/mumps/lib"
add2env INCLUDE "/opt/mumps/include"
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -z "$MKLROOT" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
......
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -n "$BASH_VERSION" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -z "$MKLROOT" ]; then
. /opt/intel/bin/compilervars.sh intel64
if [ -d /opt/intel ] ; then
. /opt/intel/bin/compilervars.sh intel64
fi
fi
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -n "$BASH_VERSION" ]; then
. /opt/intel/bin/compilervars.sh intel64 # mets intel mpi par defaut!
fi
if [ -d /opt/intel ] ; then
. /opt/intel/bin/compilervars.sh intel64 # mets intel mpi par defaut!
fi
fi
\ No newline at end of file
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -z "$MKLROOT" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
......
# Intel compiler and/or TBB/MKL
#
# EXPLANATIONS [RB]:
# In practise, the call to "compilervars.sh" or ("mklvars.sh", etc) should be done in .profile
# (it sets PATH, LD_LIBRARY_PATH, etc.)
#
# BUT, if the login shell is dash, it does not work (we cannot add an extra argument to a sourced script with dash).
# => 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)
# => duplicates are finally removed by loop.sh
# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
if [ -n "$BASH_VERSION" ]; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
if [ -d /opt/intel ] ; then
. /opt/intel/mkl/bin/mklvars.sh intel64
. /opt/intel/tbb/bin/tbbvars.sh intel64
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment