For PowerShell and Unix-like shells, here are example scripts to load and use Intel oneAPI.
Last active
May 20, 2024 18:46
-
-
Save scivision/196cfa0df761ad4fcace8ff269128f7b to your computer and use it in GitHub Desktop.
oneAPI source scripts for Linux, macOS and Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Env:CC="icx" | |
$Env:FC="ifx" | |
$Env:CXX="icx" | |
& $Env:comspec /c '"%PROGRAMFILES(X86)%\Intel\oneAPI\2024.1\oneapi-vars.bat" && pwsh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version=2024.1 | |
prefix=/opt | |
source ${prefix}/intel/oneapi/${version}/oneapi-vars.sh | |
export FC=ifx CC=icx CXX=icpx | |
export MPI_ROOT=$I_MPI_ROOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment