Using the Eclipse* IDE with Intel® oneAPI Toolkits

ID 763160
Date 11/07/2023
Public

Developing an Eclipse Project

Create a Blank Project

If you do not have the Intel Samples plug-in installed, you can create a blank project in Eclipse:

  1. Click File > New > Project. The New Project wizard appears.
  2. Expand the C++ folder and select C++ Project and click Next.
  3. Add a name for your project.
  4. If you wish to change the default location, deselect the Use default location checkbox and specify a new location.
  5. In the Project Types area, select Executable > Empty Project.
  6. In the Toolchain area, select one of the available toolchains.
  7. Click Next.
  8. Select one or more of the available configurations.
  9. Click Finish.

Import an Existing Project

  1. Select File>Import.
  2. From the pop up window expand the General option, select Existing Projects into Workspace and click the Next > button.

  3. Click Browse.
  4. Find the project, select it and click OK.

Debugging with Eclipse

A Data Parallel C++ program can be debugged simply by right clicking on the Java editor class file from Package explorer.

  1. Select Debug As → Data Parallel C++ Application
  2. To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint
  3. The Debug Perspective will appear. You may use the stepping buttons at the top to review the output.