@@ -37,13 +37,13 @@ std::vector<std::shared_ptr<detail::node_impl>> getDepGraphNodes(
37
37
sycl::handler &Handler, detail::queue_impl *Queue,
38
38
const std::shared_ptr<detail::graph_impl> &Graph,
39
39
const std::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
40
- auto HandlerImpl = detail::getSyclObjImpl (Handler);
40
+ detail::handler_impl & HandlerImpl = * detail::getSyclObjImpl (Handler);
41
41
// Get dependent graph nodes from any events
42
42
auto DepNodes = Graph->getNodesForEvents (DepEvents);
43
43
// If this node was added explicitly we may have node deps in the handler as
44
44
// well, so add them to the list
45
- DepNodes.insert (DepNodes.end (), HandlerImpl-> MNodeDeps .begin (),
46
- HandlerImpl-> MNodeDeps .end ());
45
+ DepNodes.insert (DepNodes.end (), HandlerImpl. MNodeDeps .begin (),
46
+ HandlerImpl. MNodeDeps .end ());
47
47
// If this is being recorded from an in-order queue we need to get the last
48
48
// in-order node if any, since this will later become a dependency of the
49
49
// node being processed here.
@@ -119,7 +119,7 @@ __SYCL_EXPORT void *async_malloc_from_pool(sycl::handler &h, size_t size,
119
119
const memory_pool &pool) {
120
120
121
121
auto &Adapter = h.getContextImpl ().getAdapter ();
122
- auto &memPoolImpl = sycl:: detail::getSyclObjImpl (pool);
122
+ detail::memory_pool_impl &memPoolImpl = * detail::getSyclObjImpl (pool);
123
123
124
124
// Get CG event dependencies for this allocation.
125
125
const auto &DepEvents = h.impl ->CGData .MEvents ;
@@ -135,12 +135,12 @@ __SYCL_EXPORT void *async_malloc_from_pool(sycl::handler &h, size_t size,
135
135
136
136
// Memory pool is passed as the graph may use some properties of it.
137
137
alloc = Graph->getMemPool ().malloc (size, pool.get_alloc_kind (), DepNodes,
138
- sycl:: detail::getSyclObjImpl (pool));
138
+ detail::getSyclObjImpl (pool). get ( ));
139
139
} else {
140
140
ur_queue_handle_t Q = h.impl ->get_queue ().getHandleRef ();
141
141
Adapter->call <sycl::errc::runtime,
142
142
sycl::detail::UrApiKind::urEnqueueUSMDeviceAllocExp>(
143
- Q, memPoolImpl.get ()-> get_handle (), size, nullptr , UREvents.size (),
143
+ Q, memPoolImpl.get_handle (), size, nullptr , UREvents.size (),
144
144
UREvents.data (), &alloc, &Event);
145
145
}
146
146
// Async malloc must return a void* immediately.
0 commit comments