Skip to content

Commit 65fb1b9

Browse files
committed
[Doc][SYCL] Fix bugs in driver modes doc
Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent 67b24d4 commit 65fb1b9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

sycl/doc/SYCLCompilerAndRuntimeDesign.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,26 @@ targets like SPIR-V).
154154

155155
#### Enable SYCL offload
156156

157-
To enable compilation following the SYCL specification, a special option
157+
To enable compilation following single-source multiple compiler-passes (SMCP)
158+
technique which described in the SYCL specification, a special option
158159
must be passed to the clang driver:
159160

160161
`-fsycl`
161162

162163
With this option specified, the driver will invoke the host SYCL compiler and a
163164
number of device compilers for targets specified in the `-fsycl-targets`
164-
option. If this option is not specified, then single SPIR-V target is assumed,
165-
and single device compiler for this target is invoked.
165+
option. If `-fsycl-targets` is not specified, then single SPIR-V target is
166+
assumed, and single device compiler for this target is invoked.
166167

167168
In the driver, the following bools are defined to determine the compilation
168169
mode in SYCL:
169170

170-
* IsSYCL : True if the user has passed `-fsycl-device-only` to the compilation
171-
* IsSYCLOffloadDevice: True if calling clang to set up a device compilation
172-
* IsSYCLHost: True if setting up a call to clang to do a host compilation
171+
* IsSYCL : True if the user has passed `-fsycl` to the compilation
172+
* IsSYCLOffloadDevice: True if setting up a call to clang to do a device
173+
compilation and user has passed `-fsycl` option to the compilation
174+
* IsSYCLDevice : True if the user has passed `-fsycl-device-only` option to the
175+
driver. Also true when IsSYCLOffloadDevice is true
176+
173177

174178
The option `-sycl-std` allows specifying which version of
175179
the SYCL standard will be used for the compilation.

0 commit comments

Comments
 (0)