Skip to content

Commit 115808f

Browse files
asudarsabader
andauthored
[SYCL][Doc] Update design doc for new offloading model (#11182)
Adds information about the following options: 1. sycl-post-link-options 2. llvm-spirv-options Thanks Sincerely --------- Signed-off-by: Sudarsanam, Arvind <[email protected]> Co-authored-by: Alexey Bader <[email protected]>
1 parent 00fa367 commit 115808f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

sycl/doc/design/OffloadDesign.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ the driver. The driver is also responsible for letting the
189189

190190
| Option | Expected Behavior |
191191
|--------------------------------------|-----------------------|
192-
| `--sycl-device-libraries=<arg>` | A comma separated list of device libraries that are linked during the device link. |
192+
| `--sycl-device-libraries=<arg>` | A comma separated list of device libraries that are linked during the device link |
193193
| `--sycl-device-library-location=<arg>` | The location in which the device libraries reside |
194194

195195
*Table: Options to pass device libraries to the clang-linker-wrapper*
@@ -208,9 +208,17 @@ The `sycl-post-link` tool is used after the device link is performed,
208208
applying any changes such as optimizations and code splitting before passing
209209
off to the `llvm-spirv` tool, which translates the LLVM-IR to SPIR-V.
210210

211-
At this point, the SPIR-V binary is sent to the Ahead of Time compilation
212-
step to produce the final device binary or is wrapped before being linked into
213-
the final executable.
211+
| Option | Expected Behavior |
212+
|--------------------------------------|-----------------------|
213+
| `--sycl-post-link-options=<arg>` | Options that will control sycl-post-link step |
214+
| `--llvm-spirv-options=<arg>` | Options that will control llvm-spirv step |
215+
216+
*Table: Options to pass sycl-post-link and llvm-spirv options to the clang-linker-wrapper*
217+
218+
Options that will be used by clang-linker-wrapper when invoking the `sycl-post-link`
219+
tool are provided by the driver via the `--sycl-post-link-options=<arg>` option.
220+
Options that will be used by clang-linker-wrapper when invoking the `llvm-spirv`
221+
tool are provided by the driver via the `--llvm-spirv-options=<arg>` option.
214222

215223
### Ahead Of Time Compilation
216224

0 commit comments

Comments
 (0)