Skip to content

[Doc][SYCL] Remove low-level implementation details from the doc #1022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions sycl/doc/SYCLCompilerAndRuntimeDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,22 +154,16 @@ targets like SPIR-V).

#### Enable SYCL offload

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

`-fsycl`

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

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

* IsSYCL : True if the user has passed `-fsycl-device-only` to the compilation
* IsSYCLOffloadDevice: True if calling clang to set up a device compilation
* IsSYCLHost: True if setting up a call to clang to do a host compilation
option. If `-fsycl-targets` is not specified, then single SPIR-V target is
assumed, and single device compiler for this target is invoked.

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