Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dimitrios_p_
Beginner
53 Views

Installing Parallel Studio 2017 on Debian Linux - Problem with paths and variables

Hello,

I am a student which I have successfully qualified for academic licence. I would like to use Intel C++ compiler in conjuction to IntelMPI. I have installed (as root user) Intel Parallel Studio under /home/intel (because I didn't have enough free space in / ). Afterwards, I run

source /home/intel/compilers_and_libraries_2017.4.196/linux/bin/compilervars.sh intel64

as root user (compilervars.sh failed and I should run under source).

Up to now, everything seems ok. LD_LIBRARY_PATH is set and I can compile programs as I should do. But when I return to an ordinary (non root) user, the enviromental variables are not set. So, I include in the ~/.bashrc file the following lines

PATH=".:$PATH:/home/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin:/home/intel/debugger_2017/gdb/intel64_mic/bin:/home/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin:/home/intel/debugger_2017/gdb/intel64_mic/bin"
export LD_LIBRARY_PATH=/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64:/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/intel64/lib:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/mic/lib:/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin:/home/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin:/home/intel/compilers_and_libraries_2017.4.196/linux/tbb/lib/intel64/gcc4.7:/home/intel/debugger_2017/iga/lib:/home/intel/debugger_2017/libipt/intel64/lib:/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64:/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/intel64/lib:/home/intel//compilers_and_libraries_2017.4.196/linux/mpi/mic/lib:/home/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin:/home/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin:/home/intel/compilers_and_libraries_2017.4.196/linux/tbb/lib/intel64/gcc4.7:/home/intel/debugger_2017/iga/lib:/home/intel/debugger_2017/libipt/intel64/lib

source /home/intel/compilers_and_libraries_2017/linux/bin/compilervars.sh intel64

From now on, the mpiicpc, icc etc points to the right point. But mpirun is not the Intel's MPI but the MVAPICH2 installation which comes bundle with debian and Gnu. As root user, the mpirun points to the correct intel's executable.

What should I do in order to be able to use as a user (not root) the Intel C++ compiler and IntelMPI without explicitly set the enviromental variables? In the case of the mpirun, this should point to the correct one and maybe an enviromental variable will be needed there (to switch between MVAPICH2 and IntelMPI).

Thank you in advance

0 Kudos
0 Replies
Reply