Skip to content

Commit f24e2a9

Browse files
authored
[SYCL][DOC] Update SYCL device library doc (#2920)
Signed-off-by: gejin <ge.jin@intel.com>
1 parent 65c719d commit f24e2a9

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

sycl/doc/extensions/C-CXX-StandardLibrary/C-CXX-StandardLibrary.rst

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,31 +107,17 @@ underlying device may not support double precision.
107107
double precision version, they can be used only when double precision is
108108
supported by underlying device.
109109

110-
All device libraries without double precision usage are linked by default and
111-
in order to use double precision device library, please add
112-
'-fsycl-device-lib=libm-fp64' or '-fsycl-device-lib=all'.
113-
114-
For example, no options need to be added to use `assert` or float precision
115-
math functions:
110+
All device libraries are linked by default. For example, no options need to be
111+
added to use `assert` or math functions:
116112
.. code:
117113
clang++ -fsycl main.cpp -o main.o
118114
119-
To use double precision math functions:
120-
.. code:
121-
clang++ -fsycl -fsycl-device-lib=libm-fp64 main.cpp -o main.o
122-
123115
For Ahead-Of-Time compilation (AOT), the steps to use device libraries is
124-
same, no options need to be added to use `assert` or float precision math
125-
functions:
116+
same, no options need to be added to use `assert` or math functions:
126117
.. code:
127118
clang++ -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice \
128119
main.cpp -o main.o
129120
130-
To use double precision math functions in AOT:
131-
.. code:
132-
clang++ -fsycl -fsycl-device-lib=libm-fp64 -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice \
133-
main.cpp -o main.o
134-
135121
Example of usage
136122
================
137123

0 commit comments

Comments
 (0)