The next section applies if you plan to use Microsoft Visual Studio* for cross-platform development. Although the CMake is not required by the oneAPI tools and toolkits, many oneAPI samples are provided as CMake projects and require CMake to build them. You can find this information in the sample's README.md.
Refer to CMake.org for installation instructions. For a list of components that support CMake, see Use CMake with oneAPI Applications.
To build oneAPI samples with CMake on Windows using Microsoft Visual Studio*, ensure the Desktop Development with C++ workload is installed in Visual Studio. This workload includes CMake and the necessary tools and compilers. To install the workload, use the following links:
If you installed an Intel® oneAPI toolkit before installing Visual Studio, the oneAPI plug-ins for Visual Studio may be absent. In this case, install Visual Studio and then refer to the Troubleshooting section of this documentation for instructions on how to fix or add the missing oneAPI plug-ins.
You can develop oneAPI applications using C++ and SYCL* that run on Intel, AMD*, or NVIDIA* GPUs.
To develop and run applications for specific GPUs, first install the corresponding drivers or plug-ins:
To use an Intel GPU, install the latest Intel GPU drivers.
To use an AMD GPU (Linux only):
To use an NVIDIA GPU (Linux and Windows):
Run a sample project using one of these methods: