Get Started

  • 0.09
  • 09/09/2020
  • Public Content

Build and Run a Sample Project Using

Intel® oneAPI Base Toolkit
Intel® oneAPI
integrates with third-party IDEs on
to provide a seamless GUI experience for software development.
If you are using
with FPGA, see the Intel
oneAPI DPC++ FPGA Workflows on Third-Party IDEs
An internet connection is required to download the samples for oneAPI toolkits. If you are using an offline system, download the samples from a system that is internet connected and transfer the sample files to your offline system. If you are using an IDE for development, you will not be able to use the oneAPI CLI Samples Browser while you are offline. Instead, download the samples and extract them to a directory. Then open the sample with your IDE. The samples can be downloaded from here:

Create a New Project Using Eclipse*

You can access the entire suite using Eclipse* (see the release notes for minimum required version). Once oneAPI is installed, the tools are integrated into the menus. If you do not see an Intel menu in Eclipse, see the section on Eclipse plug-ins in the Troubleshooting section.
To watch a video presentation of how to create a project, see Intel® oneAPI Eclipse Samples Plugin.
  1. Navigate to the Eclipse directory and source
    source <install_dir>/
    See here for more information on
  2. Launch Eclipse from the folder where it was installed:
  3. In Eclipse, select your workspace and create a project with
    Browse Intel oneAPI Samples
    . The wizard selection screen appears.
  4. Enter a name for your project in the New Project Name field. Use the > arrow to select the
    Intel® oneAPI Base Toolkit
  5. Select the
    Intel® oneAPI DPC++/C++ Compiler
    CPU, GPU and FPGA
    group, then select
    Vector Add
    . Vector Add is a simple test application that will help verify that the tools are setup correctly and can access your system's GPU.
  6. The
    Vector Add
    sample opens in the C++ perspective and the sample will run. Check the
    view at the bottom. If there are any errors, they will display in the
  7. To build a project, select
    Build Project
    . When building, the Eclipse Console view (usually in the lower right) will show you a build log, along with any errors or warnings. In this example, no errors were found.
  8. To run the application, click
For more information on using VSCode with Intel oneAPI toolkits, see:

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804