For PowerShell and Unix-like shells, here are example scripts to load and use Intel oneAPI on Windows and Linux.
Optionally, the version can be specified.
- Linux:
source oneapi.shorsource oneapi.sh 2025.3 - Windows
. .\oneapi.shor. .\oneapi.sh 2025.3
If the lines ending in "vars.bat" below aren't seen, probably oneAPI is not correctly installed. Ensure that before installing oneAPI that Visual Studio Desktop Development with C++ workload was installed. If needed, do that, then "Repair" the oneAPI install.
> . .\oneapi.ps1
:: initializing oneAPI environment...
Initializing Visual Studio command-line environment...
Visual Studio version 18.3.0 environment configured.
"C:\Program Files\Microsoft Visual Studio\18\Community\"
Visual Studio command-line environment initialized for: 'x64'
: compiler -- latest
: dev-utilities -- latest
: dpl -- latest
: mkl -- latest
: mpi -- latest
: ocloc -- latest
: tbb -- latest
: umf -- latest
:: oneAPI environment initialized ::
Note oneAPI works on ARM64 on Windows via Prism, and will report Intel CPU arch