Environment Configurator for Intel® oneAPI Toolkits*

Using Visual Studio Code* with Intel® oneAPI Toolkits
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:
  1. Open the Extension Marketplace in VS Code and search for
    oneAPI
    .
  2. Install the extension titled
    Environment Configurator for Intel oneAPI Toolkits
    .
    Note: You may also install this extension with the
    Extension Pack for Intel® oneAPI Toolkits
    .

Set oneAPI Environment

With this extension, you can set your environment from VS Code:
  1. Press
    Ctrl+Shift+P
    ( or
    View -> Command Palette…
    ) to open the Command Palette.
  2. Type
    Intel oneAPI
    to view options of the installed extensions.
    image0
  3. Click on
    Intel oneAPI: Initialize environment variables
    . If you see a prompt to locate a file, navigate to where your
    setvars
    script is located:
    • Linux:
      <install_dir>/intel/oneapi/
      .
    • Windows:
      <install_dir>\Intel\oneAPI\
  4. 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.

Clear Environment Variables

To clear environment variables:
  1. Press
    Ctrl+Shift+P
    ( or
    View -> Command Palette…
    ) to open the Command Palette.
  2. Type
    Intel oneAPI: Clear environment variables
    and click on that command.

Switch Environment

If you are using multiple workspaces, you can quickly switch environments:
  1. Press
    Ctrl+Shift+P
    ( or
    View -> Command Palette…
    ) to open the Command Palette.
  2. Type
    Intel oneAPI: Switch environment
    and click on that command.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.