File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
sycl/include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,14 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(work_group_memory) work_group_memory
49
49
using decoratedPtr = typename sycl::detail::DecoratedType<
50
50
value_type, access::address_space::local_space>::type *;
51
51
52
- // Frontend requires special types to have a default constructor in device
53
- // compilation mode in order to have a uniform way of initializing an object of
54
- // special type to then call the __init method on it. This is purely an
55
- // implementation detail and not part of the spec.
56
- #ifdef __SYCL_DEVICE_ONLY__
52
+ // Frontend requires special types to have a default constructor in order to
53
+ // have a uniform way of initializing an object of special type to then call
54
+ // the __init method on it. This is purely an implementation detail and not
55
+ // part of the spec.
57
56
work_group_memory () = default ;
58
- #endif
59
57
60
58
public:
61
- work_group_memory (const indeterminate_t &) {};
59
+ work_group_memory (const indeterminate_t &){};
62
60
work_group_memory (const work_group_memory &rhs) = default ;
63
61
work_group_memory &operator =(const work_group_memory &rhs) = default ;
64
62
template <typename T = DataT,
You can’t perform that action at this time.
0 commit comments