Build and Run a Sample Project Using
Create a New Project Using Eclipse*
- Navigate to the Eclipse directory and source setvars.sh.For root or sudo installations:. /opt/intel/oneapi/setvars.shSee here for more information on setvars.sh.For normal user installations:. ~/intel/oneapi/setvars.sh
- Launch Eclipse from the folder where it was installed:./eclipse
- In Eclipse, select your workspace and create a project with. The wizard selection screen appears.If you do not see an Intel menu in Eclipse, see the section on Eclipse plug-ins in the Troubleshooting section.
- Enter a name for your project in the New Project Name field. Use the > arrow to select theIntel® oneAPI Base Toolkit.
- Select thegroup, then selectVector 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.
- TheVector Addsample opens in the C++ perspective and the sample will run. Check theProblemsview at the bottom. If there are any errors, they will display in theProblemstab.
- To build a project, select. 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.
- To run the application, click.