Visible to Intel only — GUID: GUID-7E760BFF-219E-4455-AA2D-AD3F92013E11
Visible to Intel only — GUID: GUID-7E760BFF-219E-4455-AA2D-AD3F92013E11
Automating the Process of Setting Environment Variables
To automate setting of environment variables for Intel® oneAPI Math Kernel Library (oneMKL), add env/vars.sh to your shell profile so that each time you log in, the script automatically runs and sets the paths to the appropriate Intel® oneAPI Math Kernel Library (oneMKL) directories. To do this with a local user account, edit the following files by adding the appropriate script to the path manipulation section right before exporting variables:
Shell |
Files |
Commands |
---|---|---|
bash |
~/.bash_profile, |
# setting up oneMKL environment for bash . <absolute_path_to_installed_oneMKL>/env/vars.sh [mod [lp64|ilp64]] |
sh |
~/.profile |
# setting up oneMKL environment for sh . <absolute_path_to_installed_oneMKL>/env/vars.sh [mod [lp64|ilp64]] |
If you have super user permissions, you can add the same commands to a general-system file in /etc/profile .
Before uninstalling Intel® oneAPI Math Kernel Library (oneMKL), remove the above commands from all profile files where the script execution was added. Otherwise you may experience problems logging in.