@@ -154,22 +154,26 @@ targets like SPIR-V).
154
154
155
155
#### Enable SYCL offload
156
156
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
158
159
must be passed to the clang driver:
159
160
160
161
` -fsycl `
161
162
162
163
With this option specified, the driver will invoke the host SYCL compiler and a
163
164
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.
166
167
167
168
In the driver, the following bools are defined to determine the compilation
168
169
mode in SYCL:
169
170
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
+
173
177
174
178
The option ` -sycl-std ` allows specifying which version of
175
179
the SYCL standard will be used for the compilation.
0 commit comments