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

How to use zsh, csh, or tcsh with oneAPI setvars.sh, vars.sh

Ron_Green
중재자
3,572 조회수
 

oneAPI:  setvars.sh or compiler/latest/vars.sh and other shells:

Simplest workaround is:

# oneAPI setvars.sh use in zsh
bash -c 'source /opt/intel/oneapi/setvars.sh ; exec zsh'
# oneAPI compiler vars.sh use in zsh
bash -c 'source /opt/intel/oneapi/compiler/latest/env/vars.sh ; exec zsh'

# oneAPI setvars.sh use in csh/tcsh
bash -c 'source /opt/intel/oneapi/setvars.sh ; exec csh'
# oneAPI compiler vars.sh use in csh/tcsh
bash -c 'source /opt/intel/oneapi/compiler/latest/env/vars.sh ; exec csh'

WARNING - do not put these in your shell "rc" dot file, for example, ~/.cshrc.  Your shell RC is invoked with each new shell - and notice "exec csh" in this workaround - this will start a subshell, invoke .cshrc, which execs a new shell, the new shell runs .cshrc and you get into an infinite loop.

레이블 (1)
0 포인트
0 응답
응답