Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ronald_G_Intel
Moderator
357 Views

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

PSXE 2020 macOS zsh:  compilervars.sh currently does not support zsh. 

Simplest workaround is:

bash -c 'source /opt/intel/bin/compilervars.sh intel64 ; exec zsh'

Which will end up with a new zsh instance, so if you exit from the new instance you will lose the env vars.

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

Same method as above:

# 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'

0 Replies