File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ class atomic {
206
206
addressSpace == access::address_space::global_space>::type>
207
207
atomic (const atomic<T, access::address_space::global_device_space> &RHS) {
208
208
#ifdef __SYCL_DEVICE_ONLY__
209
- Ptr = RHS.getPtr () ;
209
+ Ptr = RHS.Ptr ;
210
210
#else
211
- Ptr = reinterpret_cast <std::atomic<T> *>(RHS.getPtr () );
211
+ Ptr = reinterpret_cast <std::atomic<T> *>(RHS.Ptr );
212
212
#endif
213
213
}
214
214
@@ -218,20 +218,12 @@ class atomic {
218
218
addressSpace == access::address_space::global_space>::type>
219
219
atomic (const atomic<T, access::address_space::global_device_space> &&RHS) {
220
220
#ifdef __SYCL_DEVICE_ONLY__
221
- Ptr = RHS.getPtr () ;
221
+ Ptr = RHS.Ptr ;
222
222
#else
223
- Ptr = reinterpret_cast <std::atomic<T> *>(RHS.getPtr () );
223
+ Ptr = reinterpret_cast <std::atomic<T> *>(RHS.Ptr );
224
224
#endif
225
225
}
226
226
227
- private:
228
- #ifdef __SYCL_DEVICE_ONLY__
229
- AtomicPtrType *getPtr () const { return Ptr; }
230
- #else
231
- std::atomic<T> *getPtr () const { return Ptr; }
232
- #endif
233
-
234
- public:
235
227
void store (T Operand, memory_order Order = memory_order::relaxed) {
236
228
__spirv_AtomicStore (
237
229
Ptr, SpirvScope, detail::getSPIRVMemorySemanticsMask (Order), Operand);
You can’t perform that action at this time.
0 commit comments