Visible to Intel only — GUID: GUID-15720605-FF26-4437-8B0F-B79299879FD8
Visible to Intel only — GUID: GUID-15720605-FF26-4437-8B0F-B79299879FD8
Set the oneAPI Environment Manually
Using Visual Studio Code* with Intel® oneAPI Toolkits
The oneAPI Environment can be automatically run using the VS Code Environment and Launch Configurator for Intel oneAPI Toolkits extension. For more information on extensions that work with Intel® oneAPI Toolkits, see Using the Environment Set up and Launch Configuration Extension.
As an alternative, you can manually run setvars:
Navigate to the install directory and source setvars.sh.
source <install_dir>/setvars.sh
The command above assumes you installed to the default folder. If you customized the installation folder, setvars.sh (or oneapi-vars.sh) is in your custom folder. See here for more information on setvars.sh.
Launch VS Code:
code
To run setvars for Windows*:
From a terminal window, run setvars.bat.
"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
The command above assumes you installed to the default folder. If you customized the installation folder, setvars.bat is in your custom folder.
From the same terminal window, launch VS Code:
"C:\Users\<username>\AppData\Local\Programs\Microsoft VS Code\Code.exe"
NOTE:For Windows PowerShell* users, execute this command: