File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ class atomic {
185
185
detail::GetSpirvMemoryScope<addressSpace>::scope;
186
186
187
187
public:
188
- using AtomicPtrType = typename detail::PtrValueType<T, addressSpace>::type;
189
188
template <typename pointerT>
190
189
#ifdef __SYCL_DEVICE_ONLY__
191
190
atomic (multi_ptr<pointerT, addressSpace> ptr)
@@ -212,7 +211,7 @@ class atomic {
212
211
typename = typename std::enable_if<
213
212
_Space == addressSpace &&
214
213
addressSpace == access::address_space::global_space>::type>
215
- atomic (const atomic<T, access::address_space::global_device_space> &&RHS) {
214
+ atomic (atomic<T, access::address_space::global_device_space> &&RHS) {
216
215
Ptr = RHS.Ptr ;
217
216
}
218
217
@@ -318,7 +317,7 @@ class atomic {
318
317
319
318
private:
320
319
#ifdef __SYCL_DEVICE_ONLY__
321
- AtomicPtrType *Ptr;
320
+ typename detail::PtrValueType<T, addressSpace>::type *Ptr;
322
321
#else
323
322
std::atomic<T> *Ptr;
324
323
#endif
You can’t perform that action at this time.
0 commit comments