File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -205,23 +205,15 @@ class atomic {
205
205
_Space == addressSpace &&
206
206
addressSpace == access::address_space::global_space>::type>
207
207
atomic (const atomic<T, access::address_space::global_device_space> &RHS) {
208
- #ifdef __SYCL_DEVICE_ONLY__
209
208
Ptr = RHS.Ptr ;
210
- #else
211
- Ptr = reinterpret_cast <std::atomic<T> *>(RHS.Ptr );
212
- #endif
213
209
}
214
210
215
211
template <access::address_space _Space = addressSpace,
216
212
typename = typename std::enable_if<
217
213
_Space == addressSpace &&
218
214
addressSpace == access::address_space::global_space>::type>
219
215
atomic (const atomic<T, access::address_space::global_device_space> &&RHS) {
220
- #ifdef __SYCL_DEVICE_ONLY__
221
216
Ptr = RHS.Ptr ;
222
- #else
223
- Ptr = reinterpret_cast <std::atomic<T> *>(RHS.Ptr );
224
- #endif
225
217
}
226
218
227
219
void store (T Operand, memory_order Order = memory_order::relaxed) {
You can’t perform that action at this time.
0 commit comments