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.
107
107
double precision version, they can be used only when double precision is
108
108
supported by underlying device.
109
109
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:
116
112
.. code:
117
113
clang++ -fsycl main.cpp -o main.o
118
114
119
- To use double precision math functions:
120
- .. code:
121
- clang++ -fsycl -fsycl-device-lib=libm-fp64 main.cpp -o main.o
122
-
123
115
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:
126
117
.. code:
127
118
clang++ -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice \
128
119
main.cpp -o main.o
129
120
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
-
135
121
Example of usage
136
122
================
137
123
You can’t perform that action at this time.
0 commit comments