Before you can use the compiler, you must first set the environment variables by sourcing the environment script using the initialization utility. This initializes all the tools in one step.
Invoke the compiler from the command line using the following syntax:
C/C++
{icx|icpx} [options] file1 [file2...]
SYCL
icpx -fsycl [options] file1 [file2...]
For example, the sample SYCL code provided in this guide is compiled with the following command:
icpx -fsycl simple-sycl-app.cpp -o simple-sycl-app
For more information about compiler drivers, visit Invoke the Compiler
Follow these steps to invoke the compiler from within the Eclipse* CDT.
Install the Intel® Compiler Eclipse CDT plugin.
Build a new project or open an existing project.
Set build configurations.
Follow the steps in Compile and Execute Sample SYCL Code to test your compiler installation.