Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active May 20, 2024 18:46
Show Gist options
  • Save scivision/196cfa0df761ad4fcace8ff269128f7b to your computer and use it in GitHub Desktop.
Save scivision/196cfa0df761ad4fcace8ff269128f7b to your computer and use it in GitHub Desktop.
oneAPI source scripts for Linux, macOS and Windows

tiny scripts to load oneAPI environment

For PowerShell and Unix-like shells, here are example scripts to load and use Intel oneAPI.

$Env:CC="icx"
$Env:FC="ifx"
$Env:CXX="icx"
& $Env:comspec /c '"%PROGRAMFILES(X86)%\Intel\oneAPI\2024.1\oneapi-vars.bat" && pwsh'
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