Skip to content

Commit

Permalink
[SYCL] Align usm_allocator ctor and operators with SYCL2020 (#6867)
Browse files Browse the repository at this point in the history
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
  • Loading branch information
KseniyaTikhomirova authored Sep 27, 2022
1 parent 3aa48db commit 7b02697
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sycl/include/sycl/usm/usm_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class usm_allocator {
AllocKind != usm::alloc::device,
"usm_allocator does not support AllocKind == usm::alloc::device");

usm_allocator() noexcept = delete;
usm_allocator() = delete;
usm_allocator(const context &Ctxt, const device &Dev,
const property_list &PropList = {}) noexcept
const property_list &PropList = {})
: MContext(Ctxt), MDevice(Dev), MPropList(PropList) {}
usm_allocator(const queue &Q, const property_list &PropList = {}) noexcept
usm_allocator(const queue &Q, const property_list &PropList = {})
: MContext(Q.get_context()), MDevice(Q.get_device()),
MPropList(PropList) {}
usm_allocator(const usm_allocator &) noexcept = default;
usm_allocator(const usm_allocator &) = default;
usm_allocator(usm_allocator &&) noexcept = default;
usm_allocator &operator=(const usm_allocator &Other) {
MContext = Other.MContext;
Expand Down

0 comments on commit 7b02697

Please sign in to comment.