meta-intel/dynamic-layers
Naveen Saini 555a2f97f3 intel-oneapi-dpcpp-cpp: add Intel(R) oneAPI DPC++/C++ Compiler
The Intel® oneAPI DPC++/C++ Compiler provides optimizations
that help your applications run faster on Intel® 64 architectures with support
for the latest C, C++, and SYCL language standards. This compiler produces
optimized code that can run significantly faster by taking advantage of the
ever-increasing core count and vector register width in Intel® Xeon® processors
and compatible processors.

https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler.html

The compiler binaries are installed in /opt and can be invoked to compile
on target or using the SDK.

Currently dpcpp icx identify only x86_64-oe-linux triple, so it should be tested
with 'nodistro' DISTRO.
DISTRO ?= "nodistro"

To run SYCL program, it has dependencies on OpenCL components.
IMAGE_INSTALL:append = " intel-compute-runtime intel-graphics-compiler clang"

To install icx toolchain and runtime libraries
IMAGE_INSTALL:append = " intel-oneapi-dpcpp-cpp-runtime intel-oneapi-dpcpp-cpp-runtime-dev "
IMAGE_INSTALL:append = " intel-oneapi-dpcpp-cpp intel-oneapi-dpcpp-cpp-dev "

Once image is built and boots, an env script needs to be run to setup compiler environment and
also required to create dynamic linker symlink at /lib64

$ source /opt/intel/oneapi/compiler/2022.1.0/env/vars.sh
$ mkdir -p /lib64
$ ln -sf /lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2

To build an SYCL sample application, following command should be used
$ icpx --target=x86_64-oe-linux -fsycl simple-sycl-app.c -o simple-sycl-app

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-11-23 10:17:19 +08:00
..
clang-layer onednn : upgrade 2.6.2 -> 2.7.1 2022-11-08 15:04:26 +08:00
meta-python/recipes-opencv/dldt openvino-model-optimizer: upgrade 2022.1.1 -> 2022.2.0 2022-10-25 14:35:32 +08:00
openembedded-layer intel-oneapi-dpcpp-cpp: add Intel(R) oneAPI DPC++/C++ Compiler 2022-11-23 10:17:19 +08:00