ictvars.sh and friends add many times the same path to environment variables

ictvars.sh and friends add many times the same path to environment variables

Hi,

When I execute ictvars.sh (and consequently his friends) I see that the same path is added many times. For example:

CPATH=/opt/intel/composerxe-2011.0.084/mkl/include:/opt/intel/composerxe-2011.0.084/mkl/include:/opt/intel/composerxe-2011.0.084/mkl/include

or

LIBRARY_PATH=/opt/intel/composerxe-2011.0.084/compiler/lib/intel64:/opt/intel/composerxe-2011.0.084/mkl/lib/intel64:/opt/intel/composerxe-2011.0.084/compiler/lib/intel64:/opt/intel/composerxe-2011.0.084/compiler/lib/intel64:/opt/intel/composerxe-2011.0.084/mkl/lib/intel64:/opt/intel/composerxe-2011.0.084/compiler/lib/intel64:/opt/intel/composerxe-2011.0.084/compiler/lib/intel64:/opt/intel/composerxe-2011.0.084/mkl/lib/intel64

Is it a bug or a feature ? ;)

I'm writing module file to modify our cluster environment in order that the users don't have to use the ictvars.sh. So I would like to know if I have to had 3 times the same path for CPATH for example.

Best regards

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Guillaume,

Of cause this is a feature! :-)
ictvars.sh just run a few other xxxvars.sh scripts for compilers, mkl, mpi and so on. And each of them can add the same directory to an environment variable. If you can create a script which will include one directory only once feel free to do it - it's not so difficult.
Having a module file is a good idea!

Regards!
Dmitry

Thx Dmitry!

Login to leave a comment.