Skip to content

Commit 4792c47

Browse files
committed
mark -f[no-]sycl-device-lib-online-link as experimental and all doc for the option
Signed-off-by: jinge90 <[email protected]>
1 parent 1c768ba commit 4792c47

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4856,10 +4856,10 @@ def fno_sycl_device_lib_EQ : CommaJoined<["-"], "fno-sycl-device-lib=">, Group<s
48564856
"are libc, libm-fp32, libm-fp64, all">;
48574857
def fsycl_device_lib_online_link : Flag<["-"], "fsycl-device-lib-online-link">,
48584858
Group<sycl_Group>, Flags<[NoArgumentUnused, CoreOption]>, HelpText<"Enables "
4859-
"sycl device library online link">;
4859+
"sycl device library online link (experimental)">;
48604860
def fno_sycl_device_lib_online_link : Flag<["-"], "fno-sycl-device-lib-online-link">,
48614861
Group<sycl_Group>, Flags<[NoArgumentUnused, CoreOption]>, HelpText<"Disables "
4862-
"sycl device library online link">;
4862+
"sycl device library online link (experimental)">;
48634863
def fsycl_fp32_prec_sqrt : Flag<["-"], "fsycl-fp32-prec-sqrt">, Group<sycl_Group>, Flags<[CC1Option]>,
48644864
HelpText<"SYCL only. Specify that single precision floating-point sqrt is correctly rounded.">,
48654865
MarshallingInfoFlag<CodeGenOpts<"SYCLFp32PrecSqrt">>;

sycl/doc/UsersManual.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ and not recommended to use in production environment.
191191
libm-fp32, libm-fp64, libc, all. Use of 'all' will enable/disable all of
192192
the device libraries.
193193

194+
**`-f[no-]sycl-device-lib-online-link`** [EXPERIMENTAL]
195+
196+
Enables/disables online link mechanism for SYCL device library in JIT
197+
compilation. If online link is enabled, all required device libraries will
198+
be linked with user's device image by SYCL runtime during execution time,
199+
otherwise the link will happen in build time, online link is disabled by
200+
default currently and this option is ignored in AOT compilation.
201+
194202
## Intel FPGA specific options
195203

196204
**`-fintelfpga`**

0 commit comments

Comments
 (0)