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:
- Click File > New > Project. The New Project wizard appears.
- Expand the C++ folder and select C++ Project and click Next.
- Add a name for your project.
- If you wish to change the default location, deselect the Use default location checkbox and specify a new location.
- In the Project Types area, select Executable > Empty Project.
- In the Toolchain area, select one of the available toolchains.
- Click Next.
- Select one or more of the available configurations.
- Click Finish.
Import an Existing Project
- Select File>Import.
From the pop up window expand the General option, select Existing Projects into Workspace and click the Next > button.
- Click Browse.
- 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.
- Select Debug As → Data Parallel C++ Application
- To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint
- The Debug Perspective will appear. You may use the stepping buttons at the top to review the output.