Skip to content

Commit dbb22ad

Browse files
committed
Remove note about using atomic in host code
- atomic constructor requires multi_ptr - neither multi_ptr nor atomic are available to the host (Section 4.2) Using C++11 std::atomic may still make sense for the host device.
1 parent e6d6796 commit dbb22ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

latex/programming_interface.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,8 +3205,7 @@ \section{Synchronization and atomics}
32053205
library syntax. The only available ordering, due to constraints of the
32063206
OpenCL 1.2 memory model, is \codeinline{memory_order_relaxed}.
32073207
The SYCL atomic library may map directly to
3208-
the underlying C++11 library in host code, and must interact safely
3209-
with the host C++11 atomic library when used in host code. The SYCL
3208+
the underlying C++11 library on the host device. The SYCL
32103209
library must be used in device code to ensure that only the limited
32113210
subset of functionality is available. SYCL 1.2.1 device compilers should
32123211
give a compilation error on use of the \codeinline{std::atomic}

0 commit comments

Comments
 (0)