Skip to content

Commit 1355aa6

Browse files
FznamznonArtem Gindinsonsergey-semenov
authored andcommitted
[SYCL][Doc] Add device code split options to user manual (#1056)
Signed-off-by: Mariya Podchishchaeva [email protected] Co-Authored-By: Artem Gindinson <[email protected]> Co-Authored-By: Sergey Semenov <[email protected]>
1 parent 306624e commit 1355aa6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

sycl/doc/SYCLCompilerUserManual.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,27 @@ your application.
8181
specified with `-foffload-static-lib` are treated as host libraries and are
8282
only used during the final host link.
8383

84+
**`-fsycl-device-code-split=<value>`**
85+
86+
Perform SYCL device code split. There are three possible values for this
87+
option:
88+
- per_kernel - a separate device code module is created for each SYCL
89+
kernel. Each device code module will contain a kernel and all its
90+
dependencies, i.e. called functions and used variables.
91+
- per_source - a separate device code module is created for each source
92+
(translation unit). Each device code module will contain a bunch of kernels
93+
grouped on per-source basis and all their dependencies, i.e. all used
94+
variables and called functions, including the `SYCL_EXTERNAL` macro-marked
95+
functions from other translation units.
96+
- off - no device code split.
97+
NOTE: By default device code split is 'off' - all kernels go into a
98+
single module.
99+
100+
**`-fsycl-device-code-split`**
101+
102+
Perform SYCL device code split in the per_source mode, i.e. create a
103+
separate device code module for each source (translation unit).
104+
84105
### Intel FPGA specific options
85106

86107
**`-fintelfpga`**

0 commit comments

Comments
 (0)