Skip to content

Commit 7cbce00

Browse files
committed
Simplify the conversion
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent a14673f commit 7cbce00

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sycl/include/CL/sycl/atomic.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,23 +205,15 @@ class atomic {
205205
_Space == addressSpace &&
206206
addressSpace == access::address_space::global_space>::type>
207207
atomic(const atomic<T, access::address_space::global_device_space> &RHS) {
208-
#ifdef __SYCL_DEVICE_ONLY__
209208
Ptr = RHS.Ptr;
210-
#else
211-
Ptr = reinterpret_cast<std::atomic<T> *>(RHS.Ptr);
212-
#endif
213209
}
214210

215211
template <access::address_space _Space = addressSpace,
216212
typename = typename std::enable_if<
217213
_Space == addressSpace &&
218214
addressSpace == access::address_space::global_space>::type>
219215
atomic(const atomic<T, access::address_space::global_device_space> &&RHS) {
220-
#ifdef __SYCL_DEVICE_ONLY__
221216
Ptr = RHS.Ptr;
222-
#else
223-
Ptr = reinterpret_cast<std::atomic<T> *>(RHS.Ptr);
224-
#endif
225217
}
226218

227219
void store(T Operand, memory_order Order = memory_order::relaxed) {

0 commit comments

Comments
 (0)