1.. _toolchain_intel_oneapi_toolkit:
2
3Intel oneAPI Toolkit
4####################
5
6#. Download `Intel oneAPI Base Toolkit
7   <https://software.intel.com/content/www/us/en/develop/tools/oneapi/all-toolkits.html>`_
8
9#. Assuming the toolkit is installed in ``/opt/intel/oneApi``, set environment
10   using::
11
12        # Linux, macOS:
13        export ONEAPI_TOOLCHAIN_PATH=/opt/intel/oneapi
14        source $ONEAPI_TOOLCHAIN_PATH/compiler/latest/env/vars.sh
15
16        # Windows:
17        > set ONEAPI_TOOLCHAIN_PATH=C:\Users\Intel\oneapi
18
19   To setup the complete oneApi environment, use::
20
21        source  /opt/intel/oneapi/setvars.sh
22
23   The above will also change the python environment to the one used by the
24   toolchain and might conflict with what Zephyr uses.
25
26#. Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``oneApi``.
27