File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
sycl/doc/extensions/C-CXX-StandardLibrary Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -107,31 +107,17 @@ underlying device may not support double precision.
107107double precision version, they can be used only when double precision is
108108supported 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
You can’t perform that action at this time.
0 commit comments