Commit 9cfd7d7
authored
Add missing __opencl_c_atomic_scope_device guards (#775)
The OpenCL 3.0 specification states that:
functions that do not have memory_scope argument have the same
semantics as the corresponding functions with the memory_scope
argument set to memory_scope_device.
and that memory_scope_device requires:
[...] OpenCL C 3.0 or newer and the __opencl_c_atomic_scope_device
feature.
The fix for issue #357 added the `__opencl_c_atomic_scope_device`
feature macro to most atomic builtin functions that do not take a
scope argument, but not for the scope-less overloads of
atomic_compare_exchange_strong/weak_explicit.1 parent 3f1f3e2 commit 9cfd7d7
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7079 | 7079 | | |
7080 | 7080 | | |
7081 | 7081 | | |
7082 | | - | |
| 7082 | + | |
| 7083 | + | |
7083 | 7084 | | |
7084 | 7085 | | |
7085 | 7086 | | |
| |||
7117 | 7118 | | |
7118 | 7119 | | |
7119 | 7120 | | |
7120 | | - | |
7121 | | - | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
7122 | 7124 | | |
7123 | 7125 | | |
7124 | 7126 | | |
| |||
7208 | 7210 | | |
7209 | 7211 | | |
7210 | 7212 | | |
7211 | | - | |
| 7213 | + | |
| 7214 | + | |
7212 | 7215 | | |
7213 | 7216 | | |
7214 | 7217 | | |
| |||
7246 | 7249 | | |
7247 | 7250 | | |
7248 | 7251 | | |
7249 | | - | |
7250 | | - | |
| 7252 | + | |
| 7253 | + | |
| 7254 | + | |
7251 | 7255 | | |
7252 | 7256 | | |
7253 | 7257 | | |
| |||
0 commit comments