Skip to content

Commit faa03d2

Browse files
committed
[SYCL][NATIVECPU] update docs for oneTBB integration
1 parent f6b68dc commit faa03d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sycl/doc/design/SYCLNativeCPU.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ in order to use a local checkout of the oneAPI Construction Kit. The CMake varia
6262

6363
The SYCL Native CPU device needs to be selected at runtime by setting the environment variable `ONEAPI_DEVICE_SELECTOR=native_cpu:cpu`.
6464

65+
# oneTBB integration
66+
67+
SYCL Native CPU can use oneTBB as an optional backend for task scheduling. oneTBB with SYCL Native CPU is enabled by setting `NATIVECPU_WITH_ONETBB=On` at configure time:
68+
69+
```
70+
python3 buildbot/configure.py \
71+
--native_cpu \
72+
--cmake-opt=-DNATIVECPU_WITH_ONETBB=On
73+
```
74+
75+
This will pull oneTBB into SYCL Native CPU via CMake `FetchContent` and DPC++ can be built as usual.
76+
77+
By default SYCL Native CPU implements its own scheduler whose only dependency is standard C++.
78+
6579
# Supported features and current limitations
6680

6781
The SYCL Native CPU flow is still WIP, not optimized and several core SYCL features are currently unsupported. Currently `barriers` are supported only when the oneAPI Construction Kit integration is enabled, several math builtins are not supported and attempting to use those will most likely fail with an `undefined reference` error at link time. Examples of supported applications can be found in the [runtime tests](https://github.com/intel/llvm/blob/sycl/sycl/test/native_cpu).

0 commit comments

Comments
 (0)