Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2161 Discussions

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

Guillaume_De_Nayer
379 Views
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
0 Kudos
2 Replies
Dmitry_K_Intel2
Employee
379 Views
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
0 Kudos
Guillaume_De_Nayer
379 Views
Thx Dmitry!
0 Kudos
Reply