Environment Configurator Extension
The Environment Configurator for Intel® oneAPI Toolkits extension is a lightweight extension that provides control of the oneAPI development environment and makes it easier to configure oneAPI projects for build, run, and debug.
To install the extension:
- Open the Extension Marketplace in VS Code and search foroneAPI.
- Install the extension titledEnvironment Configurator for Intel oneAPI Toolkits.
Set oneAPI Environment
With this extension, you can set your environment from VS Code:
- Press Ctrl+Shift+P ( or View -> Command Palette… ) to open the Command Palette.
- TypeIntel oneAPIto view options of the installed extensions.
- Click onIntel oneAPI: Initialize environment variables. If you see a prompt to locate a file, navigate to where yoursetvarsscript is located:
- Linux:<install_dir>/intel/oneapi/.
- Windows:<install_dir>\Intel\oneAPI\
- All tasks, launches, and terminals created from VS Code will now contain the oneAPI environment. If you make a new connection such as ssh, repeat the steps above to configure the environment again.
Next, run a sample project
locally, over
SSH or in a
container, or read about the
Launch & Intellisense Configurator extension.
When you have completed working on your oneAPI project and want to remove the oneAPI environment, select open the Command Palette again and select
Clear environment variables
. The next time you want to initialize the oneAPI environment you will need to repeat the steps above.