Skip to content

Commit f2e545b

Browse files
committed
[SYCL][NFC] Add user-defined destructor and assignment operator
1 parent 127a2c4 commit f2e545b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sycl/source/detail/graph/memory_pool.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class graph_mem_pool {
7373
/// Memory pool cannot be copied
7474
graph_mem_pool(graph_mem_pool &) = delete;
7575

76+
/// Memory pool cannot be assigned
77+
graph_mem_pool &operator=(const graph_mem_pool &) = delete;
78+
7679
/// Get a pointer to a new allocation. For device allocations these are
7780
/// virtual reservations which must be later mapped to allocated physical
7881
/// memory before use by calling allocateAndMapAll()

sycl/source/detail/graph/node_impl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ class node_impl : public std::enable_shared_from_this<node_impl> {
183183
}
184184
return *this;
185185
}
186+
187+
~node_impl() {}
188+
186189
/// Checks if this node should be a dependency of another node based on
187190
/// accessor requirements. This is calculated using access modes if a
188191
/// requirement to the same buffer is found inside this node.

0 commit comments

Comments
 (0)